Class LocalConfigurationServiceImpl
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.ecm.core.api.localconfiguration.LocalConfigurationServiceImpl
-
- All Implemented Interfaces:
LocalConfigurationService
,Adaptable
,Component
,Extensible
,TimestampedService
public class LocalConfigurationServiceImpl extends DefaultComponent implements LocalConfigurationService
Default implementation ofLocalConfigurationService
.- Since:
- 5.4.2
- Author:
- Thomas Roger
-
-
Field Summary
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description LocalConfigurationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends LocalConfiguration>
TgetConfiguration(Class<T> configurationClass, String configurationFacet, DocumentModel currentDoc)
Returns the firstLocalConfiguration
accessible from thecurrentDoc
,null
otherwise.-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Method Detail
-
getConfiguration
public <T extends LocalConfiguration> T getConfiguration(Class<T> configurationClass, String configurationFacet, DocumentModel currentDoc)
Description copied from interface:LocalConfigurationService
Returns the firstLocalConfiguration
accessible from thecurrentDoc
,null
otherwise.Find the first parent of the
currentDoc
having the givenconfigurationFacet
, if any, and adapt it on theconfigurationClass
.- Specified by:
getConfiguration
in interfaceLocalConfigurationService
-
-