|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.security.provider.RestrictedPerson
public class RestrictedPerson
An IPerson object that wraps another IPerson object and prevents access to the underlying sercurity context.
| Field Summary |
|---|
| Fields inherited from interface org.jasig.portal.security.IPerson |
|---|
GUEST_ID, SYSTEM_USER_ID, UNDEFINED_ID, USERNAME |
| Constructor Summary | |
|---|---|
RestrictedPerson(IPerson person)
|
|
| Method Summary | |
|---|---|
Object |
getAttribute(String key)
Gets an attribute associated with the user |
Enumeration<String> |
getAttributeNames()
Returns the names of all of the attributes stored for the user |
Enumeration<List<Object>> |
getAttributes()
Gets all of the attributes associated with the user |
Object[] |
getAttributeValues(String key)
Gets multiple values of an attribute associated with the user |
EntityIdentifier |
getEntityIdentifier()
|
String |
getFullName()
Gets the full name of the user |
int |
getID()
Gets the ID of the user |
String |
getName()
|
ISecurityContext |
getSecurityContext()
RestrictedPerson's implementation of getSecurityContext prevents access to the security context by always returning null. |
String |
getUserName()
|
boolean |
isGuest()
Checks to see if this user is considered a guest |
void |
setAttribute(String key,
List<Object> values)
|
void |
setAttribute(String key,
Object value)
Associates an attribute with the user |
void |
setAttributes(Map<String,List<Object>> attrs)
Associates attributes with the user |
void |
setEntityIdentifier(EntityIdentifier ei)
Explicitly set the entity identifier The default implementation enforces a one time setting so that the value can't be changed once explicitly set. |
void |
setFullName(String sFullName)
Sets the full name of the user |
void |
setID(int sID)
Sets the ID of the user |
void |
setSecurityContext(ISecurityContext securityContext)
RestrictedPerson's implementation of setSecurityContext does nothing. |
void |
setUserName(String userName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
|---|
equals, hashCode, toString |
| Constructor Detail |
|---|
public RestrictedPerson(IPerson person)
| Method Detail |
|---|
public Object getAttribute(String key)
IPerson
getAttribute in interface IPersonpublic Object[] getAttributeValues(String key)
IPerson
getAttributeValues in interface IPersonpublic Enumeration<String> getAttributeNames()
IPerson
getAttributeNames in interface IPersonpublic Enumeration<List<Object>> getAttributes()
IPerson
getAttributes in interface IPersonpublic String getFullName()
IPerson
getFullName in interface IPersonpublic int getID()
IPerson
getID in interface IPersonpublic String getUserName()
getUserName in interface IPersonpublic void setUserName(String userName)
setUserName in interface IPersonuserName - The userName to set for the user.public boolean isGuest()
IPerson
isGuest in interface IPerson
public void setAttribute(String key,
Object value)
IPerson
setAttribute in interface IPerson
public void setAttribute(String key,
List<Object> values)
setAttribute in interface IPersonpublic void setAttributes(Map<String,List<Object>> attrs)
IPerson
setAttributes in interface IPersonpublic void setFullName(String sFullName)
IPerson
setFullName in interface IPersonpublic void setID(int sID)
IPerson
setID in interface IPersonpublic ISecurityContext getSecurityContext()
getSecurityContext in interface IPersonpublic void setSecurityContext(ISecurityContext securityContext)
setSecurityContext in interface IPersonpublic EntityIdentifier getEntityIdentifier()
getEntityIdentifier in interface IBasicEntitypublic void setEntityIdentifier(EntityIdentifier ei)
IPerson
setEntityIdentifier in interface IPersonpublic String getName()
getName in interface Principal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||