Nuxeo Enterprise Platform 5.4

org.nuxeo.dam.core.service
Class InheritedPropertiesServiceImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by 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

Field Summary
static String INHERITED_PROPERTIES_EP
           
 
Constructor Summary
InheritedPropertiesServiceImpl()
           
 
Method Summary
 void activate(org.nuxeo.runtime.model.ComponentContext context)
           
 Map<String,InheritedPropertiesDescriptor> getInheritedPropertiesDescriptors()
          Returns an immutable Map containing the registered InheritedPropertiesDescriptors
 void inheritProperties(org.nuxeo.ecm.core.api.DocumentModel from, org.nuxeo.ecm.core.api.DocumentModel to)
          Inherits the registered properties from one DocumentModel to another.
 void registerContribution(Object contribution, String extensionPoint, org.nuxeo.runtime.model.ComponentInstance contributor)
           
 void unregisterContribution(Object contribution, String extensionPoint, org.nuxeo.runtime.model.ComponentInstance contributor)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
applicationStarted, deactivate, getAdapter, registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INHERITED_PROPERTIES_EP

public static final String INHERITED_PROPERTIES_EP
See Also:
Constant Field Values
Constructor Detail

InheritedPropertiesServiceImpl

public InheritedPropertiesServiceImpl()
Method Detail

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 InheritedPropertiesDescriptors

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 DocumentModels contains the concerned schemas / properties.

Specified by:
inheritProperties in interface InheritedPropertiesService
Parameters:
from - the DocumentModel from which get the inherited properties
to - the DocumentModel where to set the inherited properties
Throws:
org.nuxeo.ecm.core.api.ClientException - in case of any error setting the properties

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.