public class InheritedPropertiesServiceImpl extends DefaultComponent implements InheritedPropertiesService
InheritedPropertiesService
.Modifier and Type | Field and Description |
---|---|
static String |
INHERITED_PROPERTIES_EP |
Constructor and Description |
---|
InheritedPropertiesServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
Map<String,InheritedPropertiesDescriptor> |
getInheritedPropertiesDescriptors()
Returns an immutable
Map containing the registered InheritedPropertiesDescriptor s |
void |
inheritProperties(DocumentModel from,
DocumentModel to)
Inherits the registered properties from one
DocumentModel to
another. |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
applicationStarted, deactivate, getAdapter, registerExtension, unregisterExtension
public static final String INHERITED_PROPERTIES_EP
public void activate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
public Map<String,InheritedPropertiesDescriptor> getInheritedPropertiesDescriptors()
InheritedPropertiesService
Map
containing the registered InheritedPropertiesDescriptor
sgetInheritedPropertiesDescriptors
in interface InheritedPropertiesService
public void inheritProperties(DocumentModel from, DocumentModel to) throws ClientException
InheritedPropertiesService
DocumentModel
to
another. It copies the properties only if the two DocumentModel
s
contains the concerned schemas / properties.inheritProperties
in interface InheritedPropertiesService
from
- the DocumentModel
from which get the inherited
propertiesto
- the DocumentModel
where to set the inherited propertiesClientException
- in case of any error setting the propertiesCopyright © 2011 Nuxeo SA. All Rights Reserved.