|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap<String,Serializable> org.nuxeo.common.collections.ScopedMap
public class ScopedMap
Scoped map holding data for a given scope.
Used to store context data and invalidate some data given its scope. Implements Map for easier use from interface.
ScopeType
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
ScopedMap()
|
Method Summary | |
---|---|
void |
clearScope(ScopeType scopeType)
Removes all mappings for given scope. |
Map<String,Serializable> |
getDefaultScopeValues()
Creates a Map with entries from DEFAULT scope. |
Serializable |
getScopedValue(ScopeType scope,
String key)
Gets value for given scope and given key. |
Serializable |
getScopedValue(String key)
Gets value for given key using default scope. |
Map<String,Serializable> |
getScopeValues(ScopeType scopeType)
Creates a Map with entries from specified scope. |
void |
putScopedValue(ScopeType scope,
String key,
Serializable value)
Sets value for given scope and given key. |
void |
putScopedValue(String key,
Serializable value)
Sets key using default scope. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public ScopedMap()
Method Detail |
---|
public Serializable getScopedValue(ScopeType scope, String key)
public Serializable getScopedValue(String key)
public Map<String,Serializable> getDefaultScopeValues()
public Map<String,Serializable> getScopeValues(ScopeType scopeType)
public void putScopedValue(ScopeType scope, String key, Serializable value)
public void putScopedValue(String key, Serializable value)
public void clearScope(ScopeType scopeType)
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |