Nuxeo Enterprise Platform 5.4

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(org.nuxeo.ecm.core.api.DocumentModel from, org.nuxeo.ecm.core.api.DocumentModel to)
          Inherits the registered properties from one DocumentModel to another.
 

Method Detail

inheritProperties

void inheritProperties(org.nuxeo.ecm.core.api.DocumentModel from,
                       org.nuxeo.ecm.core.api.DocumentModel to)
                       throws org.nuxeo.ecm.core.api.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:
org.nuxeo.ecm.core.api.ClientException - in case of any error setting the properties

getInheritedPropertiesDescriptors

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


Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.