|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.security.provider.PersonImpl
This is a reference IPerson implementation.
Field Summary |
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 |
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PersonImpl()
Method Detail |
public ISecurityContext getSecurityContext()
IPerson
getSecurityContext
in interface IPerson
public void setSecurityContext(ISecurityContext securityContext)
IPerson
setSecurityContext
in interface IPerson
securityContext
- public 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 IPerson
key
- the attribute name.
public java.lang.Object[] getAttributeValues(java.lang.String key)
getAttributeValues
in interface IPerson
key
- the attribute name
public java.util.Enumeration getAttributes()
java.util.Enumeration
of all the attribute values.
getAttributes
in interface IPerson
java.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 IPerson
key
- Attribute's namevalue
- Attribute's valuepublic int getID()
getID
in interface IPerson
public void setID(int sID)
setID
in interface IPerson
sID
- 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 IPerson
public void setFullName(java.lang.String sFullName)
setFullName
in interface IPerson
sFullName
- 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 IPerson
true
if person is a guest, otherwise false
public EntityIdentifier getEntityIdentifier()
getEntityIdentifier
in interface IBasicEntity
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |