org.xiruss.repository.multiuser.server
Class SessionBase

java.lang.Object
  extended by org.xiruss.repository.server.RepositoryObjectBase
      extended by org.xiruss.repository.multiuser.server.SessionBase
All Implemented Interfaces:
java.lang.Comparable, Session, RepositoryObject
Direct Known Subclasses:
NullSession

public class SessionBase
extends RepositoryObjectBase
implements Session


Field Summary
protected  boolean isActive
           
 
Fields inherited from class org.xiruss.repository.server.RepositoryObjectBase
id, name, objectTypeConstant, properties, rep
 
Constructor Summary
SessionBase()
           
 
Method Summary
 void end()
          Ends a session, making it inactive
 User getUser()
          Gets the user associated with this session.
 void initialize(MultiUserRepository rep, java.lang.String objId, User user)
           
 boolean isActive()
          Returns true if the session is active (has not been closed by the user or by the server).
 
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
 

Field Detail

isActive

protected boolean isActive
Constructor Detail

SessionBase

public SessionBase()
Method Detail

getUser

public User getUser()
Description copied from interface: Session
Gets the user associated with this session.

Specified by:
getUser in interface Session

initialize

public void initialize(MultiUserRepository rep,
                       java.lang.String objId,
                       User user)
Specified by:
initialize in interface Session

isActive

public boolean isActive()
Description copied from interface: Session
Returns true if the session is active (has not been closed by the user or by the server).

Specified by:
isActive in interface Session

end

public void end()
Description copied from interface: Session
Ends a session, making it inactive

Specified by:
end in interface Session