Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.localconfiguration
Class LocalConfigurationServiceImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.core.api.localconfiguration.LocalConfigurationServiceImpl
All Implemented Interfaces:
LocalConfigurationService, Adaptable, Component, Extensible

public class LocalConfigurationServiceImpl
extends DefaultComponent
implements LocalConfigurationService

Default implementation of LocalConfigurationService.

Since:
5.4.2
Author:
Thomas Roger

Constructor Summary
LocalConfigurationServiceImpl()
           
 
Method Summary
<T extends LocalConfiguration>
T
getConfiguration(Class<T> configurationClass, String configurationFacet, DocumentModel currentDoc)
          Returns the first LocalConfiguration accessible from the currentDoc, null otherwise.
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, applicationStarted, deactivate, getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalConfigurationServiceImpl

public LocalConfigurationServiceImpl()
Method Detail

getConfiguration

public <T extends LocalConfiguration> T getConfiguration(Class<T> configurationClass,
                                                         String configurationFacet,
                                                         DocumentModel currentDoc)
Description copied from interface: LocalConfigurationService
Returns the first LocalConfiguration accessible from the currentDoc, null otherwise.

Find the first parent of the currentDoc having the given configurationFacet, if any, and adapt it on the configurationClass.

Specified by:
getConfiguration in interface LocalConfigurationService

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.