Nuxeo ECM Projects 5.6-RC1

org.nuxeo.dam.core.service
Interface InheritedPropertiesService

All Known Implementing Classes:
InheritedPropertiesServiceImpl

public interface InheritedPropertiesService

Service to register properties which need to be inherited from one DocumentModel to another one.

Author:
Thomas Roger

Method Summary
 Map<String,InheritedPropertiesDescriptor> getInheritedPropertiesDescriptors()
          Returns an immutable Map containing the registered InheritedPropertiesDescriptors
 void inheritProperties(DocumentModel from, DocumentModel to)
          Inherits the registered properties from one DocumentModel to another.
 

Method Detail

inheritProperties

void inheritProperties(DocumentModel from,
                       DocumentModel to)
                       throws ClientException
Inherits the registered properties from one DocumentModel to another. It copies the properties only if the two DocumentModels contains the concerned schemas / properties.

Parameters:
from - the DocumentModel from which get the inherited properties
to - the DocumentModel where to set the inherited properties
Throws:
ClientException - in case of any error setting the properties

getInheritedPropertiesDescriptors

Map<String,InheritedPropertiesDescriptor> getInheritedPropertiesDescriptors()
Returns an immutable Map containing the registered InheritedPropertiesDescriptors


Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.