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:
java.util.Map<UserAttribute,java.util.List<java.lang.Object>>
public class CustomUserAttributesMap<VALUE extends IMonitorUserAttributeValue> extends java.lang.Object implements java.util.Map<UserAttribute,java.util.List<java.lang.Object>>
A map for handle with monitor user attribute.- Since:
- 14.0.0
- Version:
- $Revision$ $Date$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CustomUserAttributesMap.Constructor
-
Constructor Summary
Constructors Constructor Description CustomUserAttributesMap(MonitorUser monitorUser, java.util.Map<java.lang.String,VALUE> untrustedAttributes, CustomUserAttributesMap.Constructor constructor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<UserAttribute,java.util.List<java.lang.Object>>>
entrySet()
java.util.List<java.lang.Object>
get(java.lang.Object key)
boolean
isEmpty()
java.util.Set<UserAttribute>
keySet()
java.util.List<java.lang.Object>
put(UserAttribute userAttribute, java.util.List<java.lang.Object> value)
void
putAll(java.util.Map<? extends UserAttribute,? extends java.util.List<java.lang.Object>> m)
java.util.List<java.lang.Object>
remove(java.lang.Object key)
void
replaceBy(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<java.lang.Object>>> sourceMap)
Delete all attributes that isn't in given map parameter and put all values form given map parameter.int
size()
java.util.Collection<java.util.List<java.lang.Object>>
values()
-
-
-
Constructor Detail
-
CustomUserAttributesMap
public CustomUserAttributesMap(MonitorUser monitorUser, java.util.Map<java.lang.String,VALUE> untrustedAttributes, CustomUserAttributesMap.Constructor constructor)
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
get
public java.util.List<java.lang.Object> get(java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
put
public java.util.List<java.lang.Object> put(UserAttribute userAttribute, java.util.List<java.lang.Object> value)
- Specified by:
put
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
remove
public java.util.List<java.lang.Object> remove(java.lang.Object key)
- Specified by:
remove
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
putAll
public void putAll(java.util.Map<? extends UserAttribute,? extends java.util.List<java.lang.Object>> m)
- Specified by:
putAll
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
keySet
public java.util.Set<UserAttribute> keySet()
- Specified by:
keySet
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
values
public java.util.Collection<java.util.List<java.lang.Object>> values()
- Specified by:
values
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
entrySet
public java.util.Set<java.util.Map.Entry<UserAttribute,java.util.List<java.lang.Object>>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<UserAttribute,java.util.List<java.lang.Object>>
-
replaceBy
public void replaceBy(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<java.lang.Object>>> sourceMap)
Delete all attributes that isn't in given map parameter and put all values form given map parameter.- Parameters:
sourceMap
- map source to be cloned.- Since:
- 14.0.0
-
-