org.mmbase.security.implementation.aselect
Class ASelectUser

java.lang.Object
  extended byorg.mmbase.security.BasicUser
      extended byorg.mmbase.security.implementation.aselect.ASelectUser
All Implemented Interfaces:
Serializable, UserContext

public class ASelectUser
extends BasicUser

UserContext implementation for the ASelectAuthentiction implementation. Currently this implementation is about the most straight-forward user implementation possible: (A user has an identifier and a rank, both specified by the constructor).

Since:
MMBase-1.7
Version:
$Id: ASelectUser.java,v 1.3 2006/02/13 18:21:38 michiel Exp $
Author:
Arnout Hannink (Alfa & Ariss), Michiel Meeuwissen (Publieke Omroep)
See Also:
ASelectAuthentication, Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.security.BasicUser
authenticationType
 
Constructor Summary
protected ASelectUser(String name, Rank r, long uniqueNumber, String app)
           
 
Method Summary
 boolean equals(Object o)
           
 String getIdentifier()
          Gets the unique identifier for this user.
 String getOwnerField()
          Gets the owner field value of new objects created by this user.
 Rank getRank()
          Gets the rank of this user.
 
Methods inherited from class org.mmbase.security.BasicUser
getAuthenticationType, hashCode, isValid, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASelectUser

protected ASelectUser(String name,
                      Rank r,
                      long uniqueNumber,
                      String app)
Method Detail

getIdentifier

public String getIdentifier()
Description copied from class: BasicUser
Gets the unique identifier for this user. This should be unique for every different user on the system.

Specified by:
getIdentifier in interface UserContext
Overrides:
getIdentifier in class BasicUser
Returns:
A unique identifier for this user.

getOwnerField

public String getOwnerField()
Description copied from class: BasicUser
Gets the owner field value of new objects created by this user. The default implementation returns the user's identifier. This can be changed if the authorization implementation does not attribute rights to users directly ('context' implementations).

Specified by:
getOwnerField in interface UserContext
Overrides:
getOwnerField in class BasicUser
Returns:
A possible value for the owner field

getRank

public Rank getRank()
             throws SecurityException
Description copied from class: BasicUser
Gets the rank of this user.

Specified by:
getRank in interface UserContext
Overrides:
getRank in class BasicUser
Returns:
the user rank
Throws:
SecurityException

equals

public boolean equals(Object o)
Overrides:
equals in class BasicUser


MMBase build 1.8.1.20060716