gate.security
Interface User


public interface User


Field Summary
static int OBJECT_CHANGE_NAME
          subtype for ObjectModificationEvent of type OBJECT_MODIFIED
 
Method Summary
 List getGroups()
          returns a list with the groups that the user is member of
 Long getID()
          returns the ID of the user user IDs are uniques in the same data store
 String getName()
          returns the name of the user user names are unique in the same data store
 void setName(String newName, Session s)
          changes user name Only members of the ADMIN group have sufficient privileges.
 void setPassword(String newPass, Session s)
          changes user password Only members of the ADMIN group and the user himself have sufficient privileges
 

Field Detail

OBJECT_CHANGE_NAME

static final int OBJECT_CHANGE_NAME
subtype for ObjectModificationEvent of type OBJECT_MODIFIED

See Also:
the event is sent when the name of the user is changed, Constant Field Values
Method Detail

getID

Long getID()
returns the ID of the user user IDs are uniques in the same data store


getName

String getName()
returns the name of the user user names are unique in the same data store


getGroups

List getGroups()
returns a list with the groups that the user is member of


setName

void setName(String newName,
             Session s)
             throws PersistenceException,
                    SecurityException
changes user name Only members of the ADMIN group have sufficient privileges. fires ObjectModificationEvent

Throws:
PersistenceException
SecurityException

setPassword

void setPassword(String newPass,
                 Session s)
                 throws PersistenceException,
                        SecurityException
changes user password Only members of the ADMIN group and the user himself have sufficient privileges

Throws:
PersistenceException
SecurityException