uPortal 2.4.1
API Documentation

org.jasig.portal.security.provider
Class RestrictedPerson

java.lang.Object
  extended byorg.jasig.portal.security.provider.RestrictedPerson
All Implemented Interfaces:
IAdditionalDescriptor, IBasicEntity, IPerson, java.io.Serializable

public class RestrictedPerson
extends java.lang.Object
implements IPerson

An IPerson object that wraps another IPerson object and prevents access to the underlying sercurity context.

Version:
$Revision: 1.2 $
Author:
Ken Weiner, kweiner@unicon.net
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jasig.portal.security.IPerson
USERNAME
 
Constructor Summary
RestrictedPerson(IPerson person)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String key)
          Gets an attribute associated with the user
 java.util.Enumeration getAttributeNames()
          Returns the names of all of the attributes stored for the user
 java.util.Enumeration getAttributes()
          Gets all of the attributes associated with the user
 java.lang.Object[] getAttributeValues(java.lang.String key)
          Gets multiple values of an attribute associated with the user
 EntityIdentifier getEntityIdentifier()
           
 java.lang.String getFullName()
          Gets the full name of the user
 int getID()
          Gets the ID of the user
 ISecurityContext getSecurityContext()
          Prevents access to the security context
 boolean isGuest()
          Checks to see if this user is considered a guest
 void setAttribute(java.lang.String key, java.lang.Object value)
          Associates an attribute with the user
 void setFullName(java.lang.String sFullName)
          Sets the full name of the user
 void setID(int sID)
          Sets the ID of the user
 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

RestrictedPerson

public RestrictedPerson(IPerson person)
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String key)
Description copied from interface: IPerson
Gets an attribute associated with the user

Specified by:
getAttribute in interface IPerson
Parameters:
key -
Returns:
attribute associated with the user

getAttributeValues

public java.lang.Object[] getAttributeValues(java.lang.String key)
Description copied from interface: IPerson
Gets multiple values of an attribute associated with the user

Specified by:
getAttributeValues in interface IPerson
Parameters:
key -
Returns:
attributes associated with the user

getAttributeNames

public java.util.Enumeration getAttributeNames()
Description copied from interface: IPerson
Returns the names of all of the attributes stored for the user

Specified by:
getAttributeNames in interface IPerson
Returns:
names of all of the attributes stored for the user

getAttributes

public java.util.Enumeration getAttributes()
Description copied from interface: IPerson
Gets all of the attributes associated with the user

Specified by:
getAttributes in interface IPerson
Returns:
all of the attributes associated with the user

getFullName

public java.lang.String getFullName()
Description copied from interface: IPerson
Gets the full name of the user

Specified by:
getFullName in interface IPerson
Returns:
full name of the user

getID

public int getID()
Description copied from interface: IPerson
Gets the ID of the user

Specified by:
getID in interface IPerson
Returns:
ID of the user

isGuest

public boolean isGuest()
Description copied from interface: IPerson
Checks to see if this user is considered a guest

Specified by:
isGuest in interface IPerson
Returns:
true if user is considered a guest

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.Object value)
Description copied from interface: IPerson
Associates an attribute with the user

Specified by:
setAttribute in interface IPerson
Parameters:
key -
value -

setFullName

public void setFullName(java.lang.String sFullName)
Description copied from interface: IPerson
Sets the full name of the user

Specified by:
setFullName in interface IPerson
Parameters:
sFullName -

setID

public void setID(int sID)
Description copied from interface: IPerson
Sets the ID of the user

Specified by:
setID in interface IPerson
Parameters:
sID -

getSecurityContext

public ISecurityContext getSecurityContext()
Prevents access to the security context

Specified by:
getSecurityContext in interface IPerson
Returns:
null

setSecurityContext

public void setSecurityContext(ISecurityContext securityContext)
Description copied from interface: IPerson
Associates a security context object with the user

Specified by:
setSecurityContext in interface IPerson
Parameters:
securityContext -

getEntityIdentifier

public EntityIdentifier getEntityIdentifier()
Specified by:
getEntityIdentifier in interface IBasicEntity
Returns:
EntityIdentifier

uPortal 2.4.1
API Documentation