org.xiruss.repository.multiuser.server
Class UserBase

java.lang.Object
  extended by org.xiruss.repository.server.RepositoryObjectBase
      extended by org.xiruss.repository.multiuser.server.UserBase
All Implemented Interfaces:
java.lang.Comparable, User, RepositoryObject

public class UserBase
extends RepositoryObjectBase
implements User

Represents a user of the system.


Field Summary
 
Fields inherited from class org.xiruss.repository.server.RepositoryObjectBase
id, name, objectTypeConstant, properties, rep
 
Constructor Summary
UserBase(java.lang.String userId, java.lang.String userName)
          Create a new user with ID and name.
 
Method Summary
 void endSession()
           
 Session getSession()
           
 java.lang.String getUserId()
           
 java.lang.String getUserName()
           
 void startSession(Session session)
           
 
Methods inherited from class org.xiruss.repository.server.RepositoryObjectBase
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, initialize, isNull, setId, setName, setProperties, setProperty, setRepository, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xiruss.snapcm.api.RepositoryObject
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty, toString
 

Constructor Detail

UserBase

public UserBase(java.lang.String userId,
                java.lang.String userName)
Create a new user with ID and name.

Parameters:
userId - Invariant system-level ID for this user.
userName - Variable presentation name for the user.
Method Detail

getUserId

public java.lang.String getUserId()
Specified by:
getUserId in interface User
Returns:

getUserName

public java.lang.String getUserName()
Specified by:
getUserName in interface User
Returns:

getSession

public Session getSession()
Specified by:
getSession in interface User

startSession

public void startSession(Session session)
Specified by:
startSession in interface User

endSession

public void endSession()
Specified by:
endSession in interface User