Package lumis.portal.monitor.impl
Class CustomUserAttributesMap<VALUE extends IMonitorUserAttributeValue>
- java.lang.Object
-
- lumis.portal.monitor.impl.CustomUserAttributesMap<VALUE>
-
- Type Parameters:
VALUE
- may be trusted or untrusted attribute.
- All Implemented Interfaces:
Map<UserAttribute,List<Object>>
public class CustomUserAttributesMap<VALUE extends IMonitorUserAttributeValue> extends Object implements Map<UserAttribute,List<Object>>
A map for handle with monitor user attribute.- Since:
- 14.0.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
Constructor Summary
Constructors Constructor Description CustomUserAttributesMap(MonitorUser monitorUser, Map<String,VALUE> untrustedAttributes, CustomUserAttributesMap.Constructor constructor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<UserAttribute,List<Object>>>
entrySet()
List<Object>
get(Object key)
boolean
isEmpty()
Set<UserAttribute>
keySet()
List<Object>
put(UserAttribute userAttribute, List<Object> value)
void
putAll(Map<? extends UserAttribute,? extends List<Object>> m)
List<Object>
remove(Object key)
void
replaceBy(Map<String,Map<String,List<Object>>> sourceMap)
Delete all attributes that isn't in given map parameter and put all values form given map parameter.int
size()
Collection<List<Object>>
values()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
CustomUserAttributesMap
public CustomUserAttributesMap(MonitorUser monitorUser, Map<String,VALUE> untrustedAttributes, CustomUserAttributesMap.Constructor constructor)
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfaceMap<UserAttribute,List<Object>>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceMap<UserAttribute,List<Object>>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<UserAttribute,List<Object>>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<UserAttribute,List<Object>>
-
get
public List<Object> get(Object key)
- Specified by:
get
in interfaceMap<UserAttribute,List<Object>>
-
put
public List<Object> put(UserAttribute userAttribute, List<Object> value)
- Specified by:
put
in interfaceMap<UserAttribute,List<Object>>
-
remove
public List<Object> remove(Object key)
- Specified by:
remove
in interfaceMap<UserAttribute,List<Object>>
-
putAll
public void putAll(Map<? extends UserAttribute,? extends List<Object>> m)
- Specified by:
putAll
in interfaceMap<UserAttribute,List<Object>>
-
clear
public void clear()
- Specified by:
clear
in interfaceMap<UserAttribute,List<Object>>
-
keySet
public Set<UserAttribute> keySet()
- Specified by:
keySet
in interfaceMap<UserAttribute,List<Object>>
-
values
public Collection<List<Object>> values()
- Specified by:
values
in interfaceMap<UserAttribute,List<Object>>
-
entrySet
public Set<Map.Entry<UserAttribute,List<Object>>> entrySet()
- Specified by:
entrySet
in interfaceMap<UserAttribute,List<Object>>
-
-