org.mmbase.security.implementation.basic
Class NameContext

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

public class NameContext
extends BasicUser

A UserContext implementation based only on user name, which serves as the identifier for the user.

Version:
$Id: NameContext.java,v 1.6 2005/03/01 14:08:33 michiel Exp $
Author:
Eduard Witteveen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.security.BasicUser
authenticationType
 
Constructor Summary
NameContext(Rank rank, String authenticationType)
           
 
Method Summary
 String getIdentifier()
          Gets the unique identifier for this user.
 Rank getRank()
          Gets the rank of this user.
 
Methods inherited from class org.mmbase.security.BasicUser
equals, getAuthenticationType, getOwnerField, hashCode, isValid, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameContext

public NameContext(Rank rank,
                   String authenticationType)
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.

getRank

public Rank getRank()
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


MMBase build 1.8.1.20060716