|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.opensymphony.user.Entity
Superclass for User and Group.
Methods common to both User and Group are defined here.
When an entity is modified the store() method has to be called to force the provider to persist changes. This is a convenience for Providers and they may choose to write data before then.
| Nested Class Summary | |
class |
Entity.Accessor
This inner class can be passed by Entity to a Accessor to allow private fields to be accessed from an external object. |
| Field Summary | |
protected Entity.Accessor |
accessor
|
protected boolean |
mutable
Whether this entity is mutable (i.e. |
protected java.lang.String |
name
Name of entity (unique). |
| Constructor Summary | |
protected |
Entity(java.lang.String name,
UserManager.Accessor managerAccessor)
Constructor to be called by User or Group. |
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare name. |
AccessProvider |
getAccessProvider()
Retrieve pluggable AccessProvider for this entity. |
CredentialsProvider |
getCredentialsProvider()
Retrieve pluggable CredentialsProvider for this entity. |
java.lang.String |
getName()
Name (unique identifier) of entity. |
ProfileProvider |
getProfileProvider()
Retrieve pluggable ProfileProvider for this entity. |
com.opensymphony.module.propertyset.PropertySet |
getPropertySet()
Extra properties associated with entity. |
UserManager |
getUserManager()
Retrieve underlying UserManager that this User is handled by. |
int |
hashCode()
Hashcode of name. |
boolean |
isMutable()
Determine if entity is mutable. |
abstract void |
remove()
Remove this entity from existence. |
void |
store()
Force update to underlying data-stores. |
java.lang.String |
toString()
String representation returns name. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Entity.Accessor accessor
protected java.lang.String name
protected boolean mutable
| Constructor Detail |
protected Entity(java.lang.String name,
UserManager.Accessor managerAccessor)
| Method Detail |
public CredentialsProvider getCredentialsProvider()
public java.lang.String getName()
public ProfileProvider getProfileProvider()
public com.opensymphony.module.propertyset.PropertySet getPropertySet()
public abstract void remove()
throws ImmutableException
ImmutableExceptionpublic AccessProvider getAccessProvider()
public boolean isMutable()
public UserManager getUserManager()
public boolean equals(java.lang.Object obj)
public int hashCode()
public void store()
throws ImmutableException
ImmutableExceptionpublic java.lang.String toString()
|
See www.opensymphony.com for more information. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||