org.mmbase.security.implementation.basic
Class NameContext

java.lang.Object
  extended by org.mmbase.security.BasicUser
      extended by org.mmbase.security.implementation.basic.NameContext
All Implemented Interfaces:
Serializable, Comparable<Object>, 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 41924 2010-04-13 17:27:30Z michiel $
Author:
Eduard Witteveen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.security.BasicUser
authentication, authenticationType
 
Constructor Summary
NameContext(Authentication auth, Rank rank, String authenticationType)
           
 
Method Summary
 String getIdentifier()
          Gets the unique identifier for this user.
 Rank getRank()
          Gets the rank of this user.
(package private)  void setIdentifier(String ident)
           
(package private)  void setRank(Rank r)
           
 
Methods inherited from class org.mmbase.security.BasicUser
compareTo, 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(Authentication auth,
                   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

setRank

void setRank(Rank r)
Since:
MMBase-1.8

setIdentifier

void setIdentifier(String ident)


MMBase 2.0-SNAPSHOT - null