Package org.nuxeo.ecm.localconf
Class SimpleConfigurationAdapter
java.lang.Object
org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration<SimpleConfiguration>
org.nuxeo.ecm.localconf.SimpleConfigurationAdapter
- All Implemented Interfaces:
- DetachedAdapter,- LocalConfiguration<SimpleConfiguration>,- SimpleConfiguration
- Direct Known Subclasses:
- SimpleUserPreferences
public class SimpleConfigurationAdapter
extends AbstractLocalConfiguration<SimpleConfiguration>
implements SimpleConfiguration
Default implementation of 
SimpleConfiguration.- Since:
- 5.5
- Author:
- Thomas Roger
- See Also:
- 
Field SummaryFieldsFields inherited from interface org.nuxeo.ecm.localconf.SimpleConfigurationSIMPLE_CONFIGURATION_FACET, SIMPLE_CONFIGURATION_PARAMETER_KEY, SIMPLE_CONFIGURATION_PARAMETER_VALUE, SIMPLE_CONFIGURATION_PARAMETERS_PROPERTY, SIMPLE_CONFIGURATION_SCHEMA
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanMerge()Returnstrueif thisLocalConfigurationaccepted to be merged with a parent configuration,falseotherwise.computeParametersForDocument(Map<String, String> parameters) Returns the value to which the specifiedkeyis mapped, ornullif there is no mapping for thekey.Returns the value to which the specified key is mapped, or the given default value if there is no mapping for the key.Returns the relatedDocumentRefof this local configuration.protected voidmerge(SimpleConfiguration other) Merge thisLocalConfigurationwith another one.Associates the specified value with the specified key.voidCopies all of the parameters from the specified map to this Simple configurationvoidsave(CoreSession session) Save this LocalConfiguration.
- 
Field Details- 
detachedDocument
- 
parameters
 
- 
- 
Constructor Details- 
SimpleConfigurationAdapter
 
- 
- 
Method Details- 
loadFromDocument
- 
computeParametersFromDocument
- 
getDescription copied from interface:SimpleConfigurationReturns the value to which the specifiedkeyis mapped, ornullif there is no mapping for thekey.- Specified by:
- getin interface- SimpleConfiguration
- Parameters:
- key- the key whose associated value is to be returned
 
- 
getDescription copied from interface:SimpleConfigurationReturns the value to which the specified key is mapped, or the given default value if there is no mapping for the key.- Specified by:
- getin interface- SimpleConfiguration
- Parameters:
- key- the key whose associated value is to be returned
- defaultValue- the value returned if there is no mapping for the key
 
- 
putDescription copied from interface:SimpleConfigurationAssociates the specified value with the specified key.If the map previously contained a mapping for the key, the old value is replaced by the specified value. - Specified by:
- putin interface- SimpleConfiguration
- Parameters:
- key- key with which the specified value is to be associated
- value- value to be associated with the specified key
- Returns:
- the previous value associated with key, ornullif there was no mapping forkey.
 
- 
putAllDescription copied from interface:SimpleConfigurationCopies all of the parameters from the specified map to this Simple configuration- Specified by:
- putAllin interface- SimpleConfiguration
- Parameters:
- parameters- parameters to be stored in this Simple configuration
 
- 
getDocumentRefDescription copied from interface:LocalConfigurationReturns the relatedDocumentRefof this local configuration.- Specified by:
- getDocumentRefin interface- LocalConfiguration<SimpleConfiguration>
 
- 
canMergepublic boolean canMerge()Description copied from interface:LocalConfigurationReturnstrueif thisLocalConfigurationaccepted to be merged with a parent configuration,falseotherwise.- Specified by:
- canMergein interface- LocalConfiguration<SimpleConfiguration>
- Overrides:
- canMergein class- AbstractLocalConfiguration<SimpleConfiguration>
 
- 
mergeDescription copied from interface:LocalConfigurationMerge thisLocalConfigurationwith another one.- Specified by:
- mergein interface- LocalConfiguration<SimpleConfiguration>
- Overrides:
- mergein class- AbstractLocalConfiguration<SimpleConfiguration>
 
- 
saveDescription copied from interface:LocalConfigurationSave this LocalConfiguration.- Specified by:
- savein interface- LocalConfiguration<SimpleConfiguration>
- Overrides:
- savein class- AbstractLocalConfiguration<SimpleConfiguration>
 
- 
computeParametersForDocument
 
-