org.mmbase.security.implementation.cloudcontext
Class User

java.lang.Object
  extended byorg.mmbase.security.UserContext
      extended byorg.mmbase.security.implementation.cloudcontext.User
All Implemented Interfaces:
MMBaseObserver
Direct Known Subclasses:
Authenticate.LocalAdmin

public class User
extends UserContext
implements MMBaseObserver

Implementation of UserContext (the security presentation of a User). Most implementation is delegated to the Users builder.

Version:
$Id: User.java,v 1.11 2004/01/19 17:27:24 michiel Exp $
Author:
Eduard Witteveen, Pierre van Rooden, Michiel Meeuwissen
See Also:
Users

Field Summary
protected  MMObjectNode node
           
 
Method Summary
 java.util.SortedSet getGroups()
           
 java.lang.String getIdentifier()
          Gets the unique identifier for this user.
 MMObjectNode getNode()
          An MMObjectNode (of type 'mmbaseusers') is associated with this User object.
 java.lang.String getOwnerField()
          Gets the owner field value of new objects created by this user.
 Rank getRank()
          Gets the rank of this user.
 boolean nodeLocalChanged(java.lang.String machine, java.lang.String number, java.lang.String builder, java.lang.String ctype)
          Called when a local node is changed.
 boolean nodeRemoteChanged(java.lang.String machine, java.lang.String number, java.lang.String builder, java.lang.String ctype)
          Called when a remote node is changed.
 
Methods inherited from class org.mmbase.security.UserContext
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

node

protected MMObjectNode node
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()
             throws SecurityException
Description copied from class: UserContext
Gets the rank of this user.

Overrides:
getRank in class UserContext
Returns:
the user rank
Throws:
SecurityException

getOwnerField

public java.lang.String getOwnerField()
Description copied from class: UserContext
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).

Overrides:
getOwnerField in class UserContext
Returns:
A possible value for the owner field

getGroups

public java.util.SortedSet getGroups()

getNode

public MMObjectNode getNode()
An MMObjectNode (of type 'mmbaseusers') is associated with this User object. This function returns it.


nodeRemoteChanged

public boolean nodeRemoteChanged(java.lang.String machine,
                                 java.lang.String number,
                                 java.lang.String builder,
                                 java.lang.String ctype)
Description copied from interface: MMBaseObserver
Called when a remote node is changed.

Specified by:
nodeRemoteChanged in interface MMBaseObserver
Parameters:
machine - Name of the machine that changed the node.
number - Number of the changed node as a String
builder - Type of the changed node
ctype - command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=new
Returns:
always true

nodeLocalChanged

public boolean nodeLocalChanged(java.lang.String machine,
                                java.lang.String number,
                                java.lang.String builder,
                                java.lang.String ctype)
Description copied from interface: MMBaseObserver
Called when a local node is changed.

Specified by:
nodeLocalChanged in interface MMBaseObserver
Parameters:
machine - Name of the machine that changed the node.
number - Number of the changed node as a String
builder - Type of the changed node
ctype - command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=new
Returns:
always true


MMBase build 1.7.1.20041002