com.opensymphony.user
Class Entity

java.lang.Object
  extended by com.opensymphony.user.Entity
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Group, User

Deprecated.

@Deprecated
public abstract class Entity
extends Object
implements Serializable

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.

Version:
$Revision: 1.2 $
Author:
Joe Walnes
See Also:
Serialized Form

Field Summary
protected  boolean mutable
          Deprecated. Whether this entity is mutable (i.e.
protected  String name
          Deprecated. Name of entity (unique).
 
Constructor Summary
protected Entity(String name, ProviderAccessor providerAccessor)
          Deprecated. Constructor to be called by User or Group.
 
Method Summary
 boolean equals(Object obj)
          Deprecated. Compare name.
 AccessProvider getAccessProvider()
          Deprecated. Retrieve pluggable AccessProvider for this entity.
 CredentialsProvider getCredentialsProvider()
          Deprecated. Retrieve pluggable CredentialsProvider for this entity.
 String getName()
          Deprecated. Name (unique identifier) of entity.
 ProfileProvider getProfileProvider()
          Deprecated. Retrieve pluggable ProfileProvider for this entity.
 com.opensymphony.module.propertyset.PropertySet getPropertySet()
          Deprecated. Extra properties associated with entity.
 UserManager getUserManager()
          Deprecated. Retrieve underlying UserManager that this User is handled by.
 int hashCode()
          Deprecated. Hashcode of name.
 boolean isMutable()
          Deprecated. Determine if entity is mutable.
abstract  void remove()
          Deprecated. Remove this entity from existence.
 void store()
          Deprecated. Force update to underlying data-stores.
 String toString()
          Deprecated. String representation returns name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name
Deprecated. 
Name of entity (unique).


mutable

protected boolean mutable
Deprecated. 
Whether this entity is mutable (i.e. can be modifed).

Constructor Detail

Entity

protected Entity(String name,
                 ProviderAccessor providerAccessor)
Deprecated. 
Constructor to be called by User or Group. Should pass across name of Entity and UserManager.Accessor for priveleged access to the UserManager.

Method Detail

getCredentialsProvider

public CredentialsProvider getCredentialsProvider()
Deprecated. 
Retrieve pluggable CredentialsProvider for this entity.


getName

public String getName()
Deprecated. 
Name (unique identifier) of entity. This cannot be changed once the entity has been created.


getProfileProvider

public ProfileProvider getProfileProvider()
Deprecated. 
Retrieve pluggable ProfileProvider for this entity.


getPropertySet

public com.opensymphony.module.propertyset.PropertySet getPropertySet()
Deprecated. 
Extra properties associated with entity. This is managed by ProfileProvider.


remove

public abstract void remove()
                     throws ImmutableException
Deprecated. 
Remove this entity from existence. If a provider does not allow removal, ImmutableException shall be thrown.

Throws:
ImmutableException

getAccessProvider

public AccessProvider getAccessProvider()
Deprecated. 
Retrieve pluggable AccessProvider for this entity.


isMutable

public boolean isMutable()
Deprecated. 
Determine if entity is mutable. If entity is read-only, false is returned.


getUserManager

public UserManager getUserManager()
Deprecated. 
Retrieve underlying UserManager that this User is handled by.


equals

public boolean equals(Object obj)
Deprecated. 
Compare name.

Overrides:
equals in class Object

hashCode

public int hashCode()
Deprecated. 
Hashcode of name.

Overrides:
hashCode in class Object

store

public void store()
           throws ImmutableException
Deprecated. 
Force update to underlying data-stores. This allows providers that do not update persistent data on the fly to store changes. If any of the providers are immutable and fields that cannot be updated have changed, ImmutableException shall be thrown.

Throws:
ImmutableException

toString

public String toString()
Deprecated. 
String representation returns name.

Overrides:
toString in class Object


Copyright © 2002-2011 Atlassian. All Rights Reserved.