|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.security.provider.PersonImpl
public class PersonImpl
This is a reference IPerson implementation.
| Field Summary | |
|---|---|
protected boolean |
entityIdentifierSet
|
protected EntityIdentifier |
m_eid
|
protected String |
m_FullName
|
protected int |
m_ID
|
protected ISecurityContext |
m_securityContext
|
protected ConcurrentMap<String,List<Object>> |
userAttributes
|
| Fields inherited from interface org.jasig.portal.security.IPerson |
|---|
GUEST_ID, SYSTEM_USER_ID, UNDEFINED_ID, USERNAME |
| Constructor Summary | |
|---|---|
PersonImpl()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Object |
getAttribute(String key)
Returns an attribute for a key. |
Enumeration<String> |
getAttributeNames()
Returns an enumeration of all of the attribute names associated with the user |
Enumeration<List<Object>> |
getAttributes()
Returns a java.util.Enumeration of all the attribute values. |
Object[] |
getAttributeValues(String key)
Returns multiple attributes for a key. |
EntityIdentifier |
getEntityIdentifier()
Returns an EntityIdentifier for this person. |
String |
getFullName()
Returns the user's name that was established during authentication. |
int |
getID()
Returns the user's ID that was used for authentication. |
String |
getName()
|
ISecurityContext |
getSecurityContext()
Gets the security context object associated with the user |
String |
getUserName()
|
int |
hashCode()
|
boolean |
isGuest()
Determines whether or not this person is a "guest" user. |
void |
setAttribute(String key,
List<Object> value)
|
void |
setAttribute(String key,
Object value)
Sets the specified attribute to a value. |
void |
setAttributes(Map<String,List<Object>> attrs)
Sets the specified attributes. |
void |
setEntityIdentifier(EntityIdentifier ei)
One time set of the entity identifier |
void |
setFullName(String sFullName)
Sets the user's full name. |
void |
setID(int sID)
Sets the user's ID. |
void |
setSecurityContext(ISecurityContext securityContext)
Associates a security context object with the user |
void |
setUserName(String userName)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ConcurrentMap<String,List<Object>> userAttributes
protected String m_FullName
protected int m_ID
protected ISecurityContext m_securityContext
protected EntityIdentifier m_eid
protected boolean entityIdentifierSet
| Constructor Detail |
|---|
public PersonImpl()
| Method Detail |
|---|
public ISecurityContext getSecurityContext()
IPerson
getSecurityContext in interface IPersonpublic void setSecurityContext(ISecurityContext securityContext)
IPerson
setSecurityContext in interface IPersonpublic Object getAttribute(String key)
java.lang.String will be returned. Binary values will
be represented as byte arrays.
getAttribute in interface IPersonkey - the attribute name.
public Object[] getAttributeValues(String key)
getAttributeValues in interface IPersonkey - the attribute name
public Enumeration<List<Object>> getAttributes()
java.util.Enumeration of all the attribute values.
getAttributes in interface IPersonjava.util.Enumeration of the attributes.public Enumeration<String> getAttributeNames()
getAttributeNames in interface IPerson
public void setAttribute(String key,
Object value)
setAttribute in interface IPersonkey - Attribute's namevalue - Attribute's value
public void setAttribute(String key,
List<Object> value)
setAttribute in interface IPersonpublic void setAttributes(Map<String,List<Object>> attrs)
setAttribute(String, Object)
to set each.
setAttributes in interface IPersonIPerson.setAttributes(java.util.Map)public int getID()
getID in interface IPersonpublic void setID(int sID)
setID in interface IPersonsID - User's ID as supplied for authentication
Does not correlate to any eduPerson attribute but is the key
for user data in uPortal reference rdbms.public String getUserName()
getUserName in interface IPersonpublic void setUserName(String userName)
setUserName in interface IPersonuserName - The userName to set for the user.public String getFullName()
getFullName in interface IPersonpublic void setFullName(String sFullName)
setFullName in interface IPersonsFullName - User's name as established during authentication
Correlates to cn (common name) in the eduPerson 1.0 specification.public boolean isGuest()
This person is a "guest" if both of the following are true:
org.jasig.portal.security.PersonImpl.guest_user_name
in portal.properties.
isGuest in interface IPersontrue if person is a guest, otherwise falsepublic EntityIdentifier getEntityIdentifier()
getEntityIdentifier in interface IBasicEntitypublic void setEntityIdentifier(EntityIdentifier ei)
setEntityIdentifier in interface IPersonei - public String getName()
getName in interface Principalpublic String toString()
toString in interface PrincipaltoString in class Objectpublic int hashCode()
hashCode in interface PrincipalhashCode in class Objectpublic boolean equals(Object obj)
equals in interface Principalequals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||