Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.core.scripting
Class PrincipalWrapper

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Serializable>
          extended by 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,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
PrincipalWrapper(NuxeoPrincipal principal)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
          property map implementation
 boolean 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)
           
 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
 
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

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()

getAllGroups

public List<String> getAllGroups()

getGroups

public List<String> getGroups()

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 interface Map<String,Serializable>
Overrides:
containsKey in class HashMap<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 interface Map<String,Serializable>
Overrides:
containsValue in class HashMap<String,Serializable>

get

public Serializable get(Object key)
Specified by:
get in interface Map<String,Serializable>
Overrides:
get in class HashMap<String,Serializable>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Serializable>
Overrides:
isEmpty in class HashMap<String,Serializable>

size

public int size()
Specified by:
size in interface Map<String,Serializable>
Overrides:
size in class HashMap<String,Serializable>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,Serializable>
Overrides:
keySet in class HashMap<String,Serializable>

values

public Collection<Serializable> values()
Specified by:
values in interface Map<String,Serializable>
Overrides:
values in class HashMap<String,Serializable>

entrySet

public Set<Map.Entry<String,Serializable>> entrySet()
Specified by:
entrySet in interface Map<String,Serializable>
Overrides:
entrySet in class HashMap<String,Serializable>

put

public Serializable put(String key,
                        Serializable value)
Specified by:
put in interface Map<String,Serializable>
Overrides:
put in class HashMap<String,Serializable>

putAll

public void putAll(Map<? extends String,? extends Serializable> m)
Specified by:
putAll in interface Map<String,Serializable>
Overrides:
putAll in class HashMap<String,Serializable>

remove

public Serializable remove(Object key)
Specified by:
remove in interface Map<String,Serializable>
Overrides:
remove in class HashMap<String,Serializable>

clear

public void clear()
Specified by:
clear in interface Map<String,Serializable>
Overrides:
clear in class HashMap<String,Serializable>

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.