public interface SimpleConfiguration extends LocalConfiguration<SimpleConfiguration>
The mappings can be stored on documents with the facet SimpleConfiguration
.
Modifier and Type | Field and Description |
---|---|
static String |
SIMPLE_CONFIGURATION_FACET |
static String |
SIMPLE_CONFIGURATION_PARAMETER_KEY |
static String |
SIMPLE_CONFIGURATION_PARAMETER_VALUE |
static String |
SIMPLE_CONFIGURATION_PARAMETERS_PROPERTY |
static String |
SIMPLE_CONFIGURATION_SCHEMA |
Modifier and Type | Method and Description |
---|---|
String |
get(String key)
Returns the value to which the specified
key is mapped, or null if there is no mapping for the
key . |
String |
get(String key,
String defaultValue)
Returns the value to which the specified key is mapped, or the given default value if there is no mapping for the
key.
|
String |
put(String key,
String value)
Associates the specified value with the specified key.
|
void |
putAll(Map<String,String> parameters)
Copies all of the parameters from the specified map to this Simple configuration
|
canMerge, getDocumentRef, merge, save
static final String SIMPLE_CONFIGURATION_FACET
static final String SIMPLE_CONFIGURATION_SCHEMA
static final String SIMPLE_CONFIGURATION_PARAMETERS_PROPERTY
static final String SIMPLE_CONFIGURATION_PARAMETER_KEY
static final String SIMPLE_CONFIGURATION_PARAMETER_VALUE
String get(String key)
key
is mapped, or null
if there is no mapping for the
key
.key
- the key whose associated value is to be returnedString get(String key, String defaultValue)
key
- the key whose associated value is to be returneddefaultValue
- the value returned if there is no mapping for the keyString put(String key, String value)
If the map previously contained a mapping for the key, the old value is replaced by the specified value.
key
- key with which the specified value is to be associatedvalue
- value to be associated with the specified keykey
, or null
if there was no mapping for key
.Copyright © 2015 Nuxeo SA. All rights reserved.