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 of
LocalConfigurationService
.- Since:
- 5.4.2
- Author:
- Thomas Roger
-
Field Summary
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<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
getApplicationStartedOrder
-
Constructor Details
-
LocalConfigurationServiceImpl
public LocalConfigurationServiceImpl()
-
-
Method Details
-
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
-