org.mmbase.security.implementation.basic
Class NameContext

java.lang.Object
  extended byorg.mmbase.security.UserContext
      extended byorg.mmbase.security.implementation.basic.NameContext

public class NameContext
extends UserContext

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

Version:
$Id: NameContext.java,v 1.3 2003/07/09 10:12:41 michiel Exp $
Author:
Eduard Witteveen

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

Constructor Detail

NameContext

public NameContext(Rank rank)
Method Detail

getIdentifier

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

Overrides:
getIdentifier in class UserContext
Returns:
A unique identifier for this user.

getRank

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

Overrides:
getRank in class UserContext
Returns:
the user rank


MMBase build 1.7.4.20050922