org.xiruss.repository.multiuser.server
Class UserBase
java.lang.Object
org.xiruss.repository.server.RepositoryObjectBase
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.
Constructor Summary |
UserBase(java.lang.String userId,
java.lang.String userName)
Create a new user with ID and name. |
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 |
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.
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