Class PrincipalWrapper
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Serializable>
-
- org.nuxeo.ecm.automation.core.scripting.PrincipalWrapper
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Serializable>
public class PrincipalWrapper extends HashMap<String,Serializable>
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected NuxeoPrincipal
principal
-
Constructor Summary
Constructors Constructor Description PrincipalWrapper(NuxeoPrincipal principal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
property map implementationboolean
containsValue(Object value)
The behavior of this method was changed -> it is checking if an xpath has a value attached.Set<Map.Entry<String,Serializable>>
entrySet()
Serializable
get(Object key)
String
getActingUser()
List<String>
getAllGroups()
String
getCompany()
String
getEmail()
String
getFirstName()
List<String>
getGroups()
String
getLastName()
String
getName()
String
getOriginatingUser()
NuxeoPrincipal
getPrincipal()
Serializable
getProperty(String xpath)
boolean
isEmpty()
Set<String>
keySet()
Serializable
put(String key, Serializable value)
void
putAll(Map<? extends String,? extends Serializable> m)
Serializable
remove(Object key)
int
size()
Collection<Serializable>
values()
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
principal
protected NuxeoPrincipal principal
-
-
Constructor Detail
-
PrincipalWrapper
public PrincipalWrapper(NuxeoPrincipal principal)
-
-
Method Detail
-
getName
public String getName()
-
getCompany
public String getCompany()
-
getFirstName
public String getFirstName()
-
getLastName
public String getLastName()
-
getOriginatingUser
public String getOriginatingUser()
-
getActingUser
public String getActingUser()
-
getEmail
public String getEmail()
-
getPrincipal
public NuxeoPrincipal getPrincipal()
-
getProperty
public Serializable getProperty(String xpath)
-
containsKey
public boolean containsKey(Object key)
property map implementation- Specified by:
containsKey
in interfaceMap<String,Serializable>
- Overrides:
containsKey
in classHashMap<String,Serializable>
-
containsValue
public boolean containsValue(Object value)
The behavior of this method was changed -> it is checking if an xpath has a value attached.- Specified by:
containsValue
in interfaceMap<String,Serializable>
- Overrides:
containsValue
in classHashMap<String,Serializable>
-
get
public Serializable get(Object key)
- Specified by:
get
in interfaceMap<String,Serializable>
- Overrides:
get
in classHashMap<String,Serializable>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceMap<String,Serializable>
- Overrides:
isEmpty
in classHashMap<String,Serializable>
-
size
public int size()
- Specified by:
size
in interfaceMap<String,Serializable>
- Overrides:
size
in classHashMap<String,Serializable>
-
keySet
public Set<String> keySet()
- Specified by:
keySet
in interfaceMap<String,Serializable>
- Overrides:
keySet
in classHashMap<String,Serializable>
-
values
public Collection<Serializable> values()
- Specified by:
values
in interfaceMap<String,Serializable>
- Overrides:
values
in classHashMap<String,Serializable>
-
entrySet
public Set<Map.Entry<String,Serializable>> entrySet()
- Specified by:
entrySet
in interfaceMap<String,Serializable>
- Overrides:
entrySet
in classHashMap<String,Serializable>
-
put
public Serializable put(String key, Serializable value)
- Specified by:
put
in interfaceMap<String,Serializable>
- Overrides:
put
in classHashMap<String,Serializable>
-
putAll
public void putAll(Map<? extends String,? extends Serializable> m)
- Specified by:
putAll
in interfaceMap<String,Serializable>
- Overrides:
putAll
in classHashMap<String,Serializable>
-
remove
public Serializable remove(Object key)
- Specified by:
remove
in interfaceMap<String,Serializable>
- Overrides:
remove
in classHashMap<String,Serializable>
-
clear
public void clear()
- Specified by:
clear
in interfaceMap<String,Serializable>
- Overrides:
clear
in classHashMap<String,Serializable>
-
-