|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.opensymphony.user.Entity
com.opensymphony.user.User
Entity to represent an actual User of the system.
A user's profile is stored in the PropertySet of the Entity - getFullName() and getEmail() are provided for convenient access to the underlying PropertySet.
Refer to Entity for more information.
Entity,
Serialized Form| Nested Class Summary | |
class |
User.Accessor
User specific Accessor. |
| Field Summary | |
static java.lang.String |
PROPERTY_EMAIL
Key that email property is stored under in PropertySet. |
static java.lang.String |
PROPERTY_FULLNAME
Key that fullName property is stored under in PropertySet. |
| Fields inherited from class com.opensymphony.user.Entity |
accessor, mutable, name |
| Method Summary | |
boolean |
addToGroup(Group group)
Add this User as a member to supplied Group. |
boolean |
authenticate(java.lang.String password)
Verify that the supplied password matches the stored password for the user. |
java.lang.String |
getEmail()
Convenience method to access property. |
java.lang.String |
getFullName()
Convenience method to access property. |
java.util.List |
getGroups()
List all Groups that User is a member of. |
boolean |
inGroup(Group group)
Determine whether User is member of supplied Group. |
boolean |
inGroup(java.lang.String groupName)
Determine whether User is member of supplied Group. |
void |
remove()
Remove User from CredentialsProvider (providing it is mutable). |
boolean |
removeFromGroup(Group group)
Remove this User as a member from supplied Group. |
void |
setEmail(java.lang.String email)
Convenience method to access property. |
void |
setFullName(java.lang.String fullName)
Convenience method to access property. |
void |
setPassword(java.lang.String password)
Change the User's password. |
void |
store()
Force update to underlying data-stores. |
| Methods inherited from class com.opensymphony.user.Entity |
equals, getAccessProvider, getCredentialsProvider, getName, getProfileProvider, getPropertySet, getUserManager, hashCode, isMutable, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
equals, getName, hashCode, toString |
| Field Detail |
public static final java.lang.String PROPERTY_FULLNAME
public static final java.lang.String PROPERTY_EMAIL
| Method Detail |
public void setEmail(java.lang.String email)
public java.lang.String getEmail()
public void setFullName(java.lang.String fullName)
public java.lang.String getFullName()
public java.util.List getGroups()
public void setPassword(java.lang.String password)
throws ImmutableException
ImmutableExceptionpublic boolean addToGroup(Group group)
public boolean authenticate(java.lang.String password)
public boolean inGroup(Group group)
public boolean inGroup(java.lang.String groupName)
public void remove()
throws ImmutableException
remove in class EntityImmutableExceptionpublic boolean removeFromGroup(Group group)
public void store()
throws ImmutableException
store in class EntityImmutableException
|
See www.opensymphony.com for more information. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||