org.mmbase.security.implementation.cloudcontext
Class User

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

public class User
extends BasicUser
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.21 2006/02/20 18:34:16 michiel Exp $
Author:
Eduard Witteveen, Pierre van Rooden, Michiel Meeuwissen
See Also:
Users, Serialized Form

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

Field Detail

node

protected MMObjectNode node

key

protected long key
Constructor Detail

User

protected User(MMObjectNode n,
               long l,
               String app)
Warning: No Java Documentation Available.
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()
             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

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

getKey

protected long getKey()
Warning: No Java Documentation Available.

isValidNode

public boolean isValidNode()
Warning: No Java Documentation Available.

getGroups

public 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(String machine,
                                 String number,
                                 String builder,
                                 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(String machine,
                                String number,
                                String builder,
                                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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class BasicUser


MMBase build 1.8.1.20060716