HashMap
instead@Deprecated public class ScopedMap extends HashMap<String,Serializable>
Used to store context data and invalidate some data given its scope. Implements Map for easier use from interface.
ScopeType
,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ScopedMap()
Deprecated.
|
ScopedMap(Map<String,Serializable> map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clearScope(ScopeType scopeType)
Deprecated.
Removes all mappings for given scope.
|
protected String |
compatKey(String key)
Deprecated.
Removes the prefix default/ or request/ from the key.
|
Serializable |
get(Object key)
Deprecated.
|
Map<String,Serializable> |
getDefaultScopeValues()
Deprecated.
Creates a Map with entries from DEFAULT scope.
|
Serializable |
getScopedValue(ScopeType scope,
String key)
Deprecated.
Gets value for given scope and given key.
|
Serializable |
getScopedValue(String key)
Deprecated.
Gets value for given key using default scope.
|
Map<String,Serializable> |
getScopeValues(ScopeType scopeType)
Deprecated.
Creates a Map with entries from specified scope.
|
Serializable |
put(String key,
Serializable value)
Deprecated.
|
void |
putScopedValue(ScopeType scope,
String key,
Serializable value)
Deprecated.
Sets value for given scope and given key.
|
void |
putScopedValue(String key,
Serializable value)
Deprecated.
Sets key using default scope.
|
protected Serializable |
superGet(Object key)
Deprecated.
|
protected Serializable |
superPut(String key,
Serializable value)
Deprecated.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public ScopedMap()
public ScopedMap(Map<String,Serializable> map)
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)
protected Serializable superGet(Object key)
protected Serializable superPut(String key, Serializable value)
public Serializable get(Object key)
get
in interface Map<String,Serializable>
get
in class HashMap<String,Serializable>
public Serializable put(String key, Serializable value)
put
in interface Map<String,Serializable>
put
in class HashMap<String,Serializable>
Copyright © 2018 Nuxeo. All rights reserved.