edu.mssm.crover.webservices.rbde
Class DS_UserSession

java.lang.Object
  |
  +--edu.mssm.crover.scentral.UserSession
        |
        +--edu.mssm.crover.webservices.rbde.DS_UserSession
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, java.io.Serializable

public class DS_UserSession
extends UserSession
implements javax.servlet.http.HttpSessionBindingListener, java.io.Serializable

Stores the information useful for maintaining the complex state of the RbDe web service.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.mssm.crover.scentral.UserSession
menu_bar, user_record
 
Constructor Summary
DS_UserSession()
          Builds a guest session.
DS_UserSession(UserRecord ur)
          The session is initialized with the information attached to this login.
 
Method Summary
 void clearMutantSubServiceState()
           
 Color_Annotation getCheckColorAnnotation()
           
 CustomizedDiagram getCustomizedDiagram()
           
 LibraryObjectInfo getDiagramInfo()
           
 MutantSubServiceState getMutantSubServiceState()
           
 java.lang.String getUserID()
          Returns the userID of the user that owns this session.
 boolean isGuestSession()
          Is this session granted with guest privileges?
 void putCustomizedDiagram(CustomizedDiagram diagram)
           
protected  void resetAll()
          Resets state of all variables except current_page and UserRecord.
protected  void resetTransient()
          Set the state of transient variables.
protected  void saveState()
          Saves the state of this session for future reconnections.
 void setCheckColorAnnotation(Color_Annotation ca)
           
 void setDiagramInfo(LibraryObjectInfo loi)
           
 void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
           
 
Methods inherited from class edu.mssm.crover.scentral.UserSession
getCurrentPage, getMenuBarInstance, getUserRecord, setCurrentPage, setUserRecord, valueBound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.http.HttpSessionBindingListener
valueBound
 

Constructor Detail

DS_UserSession

public DS_UserSession()
Builds a guest session.


DS_UserSession

public DS_UserSession(UserRecord ur)
The session is initialized with the information attached to this login. That information is fetched from the database if it exists there.

Method Detail

resetTransient

protected void resetTransient()
Set the state of transient variables. Do not call super.resetTransient, the deserialization mechanism handles this.

Overrides:
resetTransient in class UserSession

resetAll

protected void resetAll()
Resets state of all variables except current_page and UserRecord.

Overrides:
resetAll in class UserSession

isGuestSession

public boolean isGuestSession()
Is this session granted with guest privileges?

Overrides:
isGuestSession in class UserSession
Returns:
true when the session has guest privileges, false otherwise.

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
Overrides:
valueUnbound in class UserSession

getUserID

public java.lang.String getUserID()
Returns the userID of the user that owns this session.

Overrides:
getUserID in class UserSession

getCustomizedDiagram

public CustomizedDiagram getCustomizedDiagram()

putCustomizedDiagram

public void putCustomizedDiagram(CustomizedDiagram diagram)

getDiagramInfo

public LibraryObjectInfo getDiagramInfo()

setDiagramInfo

public void setDiagramInfo(LibraryObjectInfo loi)

saveState

protected void saveState()
Description copied from class: UserSession
Saves the state of this session for future reconnections. Uses the PersistenceScheme from ServletCentral.

Specified by:
saveState in class UserSession

getMutantSubServiceState

public MutantSubServiceState getMutantSubServiceState()

clearMutantSubServiceState

public void clearMutantSubServiceState()

setCheckColorAnnotation

public void setCheckColorAnnotation(Color_Annotation ca)

getCheckColorAnnotation

public Color_Annotation getCheckColorAnnotation()


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.