org.jasig.services.persondir.support
Class BasePersonImpl

java.lang.Object
  extended by org.jasig.services.persondir.support.BasePersonImpl
All Implemented Interfaces:
Serializable, Principal, IPersonAttributes
Direct Known Subclasses:
AttributeNamedPersonImpl, NamedPersonImpl

public abstract class BasePersonImpl
extends Object
implements IPersonAttributes

Version:
$Revision$
Author:
Eric Dalquist
See Also:
Serialized Form

Constructor Summary
BasePersonImpl(Map<String,List<Object>> attributes)
           
 
Method Summary
protected  Map<String,List<Object>> buildImmutableAttributeMap(Map<String,List<Object>> attributes)
          Take the constructor argument and convert the Map and List values into read-only form
protected  Map<String,List<Object>> createImmutableAttributeMap(int size)
          Create the Map used to store the attributes internally for this IPersonAttributes
 boolean equals(Object object)
           
 Map<String,List<Object>> getAttributes()
           
 Object getAttributeValue(String name)
           
 List<Object> getAttributeValues(String name)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
getName
 

Constructor Detail

BasePersonImpl

public BasePersonImpl(Map<String,List<Object>> attributes)
Method Detail

buildImmutableAttributeMap

protected Map<String,List<Object>> buildImmutableAttributeMap(Map<String,List<Object>> attributes)
Take the constructor argument and convert the Map and List values into read-only form


createImmutableAttributeMap

protected Map<String,List<Object>> createImmutableAttributeMap(int size)
Create the Map used to store the attributes internally for this IPersonAttributes


getAttributeValue

public Object getAttributeValue(String name)
Specified by:
getAttributeValue in interface IPersonAttributes

getAttributeValues

public List<Object> getAttributeValues(String name)
Specified by:
getAttributeValues in interface IPersonAttributes

getAttributes

public Map<String,List<Object>> getAttributes()
Specified by:
getAttributes in interface IPersonAttributes

equals

public boolean equals(Object object)
Specified by:
equals in interface Principal
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Specified by:
toString in interface Principal
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2012 Jasig. All Rights Reserved.