org.xiruss.xirussrepository.client
Class SessionProxy

java.lang.Object
  extended by org.xiruss.xirussrepository.client.RepositoryObjectProxy
      extended by org.xiruss.xirussrepository.client.SessionProxy
All Implemented Interfaces:
Session, RepositoryObject

public class SessionProxy
extends RepositoryObjectProxy
implements Session

Trivial session object. Just used as a key for operations.


Field Summary
 
Fields inherited from class org.xiruss.xirussrepository.client.RepositoryObjectProxy
cHelper, logger, objectTypeCode, pathToMe
 
Constructor Summary
SessionProxy(XirussHttpApiClientHelper cHelper, org.w3c.dom.Element dataSource)
           
 
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.xirussrepository.client.RepositoryObjectProxy
accept, compareTo, doPost, doStringReturnPost, equals, getBooleanValue, getId, getName, getOriginalClassName, getPathToMe, getProperties, getProperty, getPropertyNames, getRepository, getStringReturnValue, getStringSetReturnValue, getType, hasProperty, initialize, initialize, isNull, loadRepositoryObjectData, setId, setName, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, 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

SessionProxy

public SessionProxy(XirussHttpApiClientHelper cHelper,
                    org.w3c.dom.Element dataSource)
             throws XirussRepositoryException
Throws:
XirussRepositoryException
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