|
||||||||||
| 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 java.util.Hashtable |
m_Attributes
|
protected EntityIdentifier |
m_eid
|
protected java.lang.String |
m_FullName
|
protected int |
m_ID
|
protected ISecurityContext |
m_securityContext
|
| Fields inherited from interface org.jasig.portal.security.IPerson |
|---|
USERNAME |
| Constructor Summary | |
|---|---|
PersonImpl()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String key)
Returns an attribute for a key. |
java.util.Enumeration |
getAttributeNames()
Returns an enumeration of all of the attribute names associated with the user |
java.util.Enumeration |
getAttributes()
Returns a java.util.Enumeration of all the attribute values. |
java.lang.Object[] |
getAttributeValues(java.lang.String key)
Returns multiple attributes for a key. |
EntityIdentifier |
getEntityIdentifier()
Returns an EntityIdentifier for this person. |
java.lang.String |
getFullName()
Returns the user's name that was established during authentication. |
int |
getID()
Returns the user's ID that was used for authentication. |
ISecurityContext |
getSecurityContext()
Gets the security context object associated with the user |
boolean |
isGuest()
Determines whether or not this person is a "guest" user. |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
Sets the specified attribute to a value. |
void |
setAttributes(java.util.Map attrs)
Sets the specified attributes. |
void |
setFullName(java.lang.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 |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable m_Attributes
protected java.lang.String m_FullName
protected int m_ID
protected ISecurityContext m_securityContext
protected EntityIdentifier m_eid
| Constructor Detail |
|---|
public PersonImpl()
| Method Detail |
|---|
public ISecurityContext getSecurityContext()
IPerson
getSecurityContext in interface IPersonpublic void setSecurityContext(ISecurityContext securityContext)
IPerson
setSecurityContext in interface IPersonpublic java.lang.Object getAttribute(java.lang.String key)
java.lang.String will be returned. Binary values will
be represented as byte arrays.
getAttribute in interface IPersonkey - the attribute name.
public java.lang.Object[] getAttributeValues(java.lang.String key)
getAttributeValues in interface IPersonkey - the attribute name
public java.util.Enumeration getAttributes()
java.util.Enumeration of all the attribute values.
getAttributes in interface IPersonjava.util.Enumeration of the attributes.public java.util.Enumeration getAttributeNames()
getAttributeNames in interface IPerson
public void setAttribute(java.lang.String key,
java.lang.Object value)
setAttribute in interface IPersonkey - Attribute's namevalue - Attribute's valuepublic void setAttributes(java.util.Map 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 java.lang.String getFullName()
getFullName in interface IPersonpublic void setFullName(java.lang.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 java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||