org.nuxeo.dam.core.service
Class InheritedPropertiesServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.dam.core.service.InheritedPropertiesServiceImpl
- All Implemented Interfaces:
- InheritedPropertiesService, org.nuxeo.runtime.model.Adaptable, org.nuxeo.runtime.model.Component, org.nuxeo.runtime.model.Extensible
public class InheritedPropertiesServiceImpl
- extends org.nuxeo.runtime.model.DefaultComponent
- implements InheritedPropertiesService
Default implementation of InheritedPropertiesService
.
- Author:
- Thomas Roger
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
applicationStarted, deactivate, getAdapter, registerExtension, unregisterExtension |
INHERITED_PROPERTIES_EP
public static final String INHERITED_PROPERTIES_EP
- See Also:
- Constant Field Values
InheritedPropertiesServiceImpl
public InheritedPropertiesServiceImpl()
activate
public void activate(org.nuxeo.runtime.model.ComponentContext context)
throws Exception
- Specified by:
activate
in interface org.nuxeo.runtime.model.Component
- Overrides:
activate
in class org.nuxeo.runtime.model.DefaultComponent
- Throws:
Exception
registerContribution
public void registerContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor)
throws Exception
- Overrides:
registerContribution
in class org.nuxeo.runtime.model.DefaultComponent
- Throws:
Exception
unregisterContribution
public void unregisterContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor)
throws Exception
- Overrides:
unregisterContribution
in class org.nuxeo.runtime.model.DefaultComponent
- Throws:
Exception
getInheritedPropertiesDescriptors
public Map<String,InheritedPropertiesDescriptor> getInheritedPropertiesDescriptors()
- Description copied from interface:
InheritedPropertiesService
- Returns an immutable
Map
containing the registered InheritedPropertiesDescriptor
s
- Specified by:
getInheritedPropertiesDescriptors
in interface InheritedPropertiesService
inheritProperties
public void inheritProperties(org.nuxeo.ecm.core.api.DocumentModel from,
org.nuxeo.ecm.core.api.DocumentModel to)
throws org.nuxeo.ecm.core.api.ClientException
- Description copied from interface:
InheritedPropertiesService
- Inherits the registered properties from one
DocumentModel
to
another. It copies the properties only if the two DocumentModel
s
contains the concerned schemas / properties.
- Specified by:
inheritProperties
in interface InheritedPropertiesService
- Parameters:
from
- the DocumentModel
from which get the inherited
propertiesto
- the DocumentModel
where to set the inherited properties
- Throws:
org.nuxeo.ecm.core.api.ClientException
- in case of any error setting the properties
Copyright © 2011 Nuxeo SAS. All Rights Reserved.