edu.jhu.tmaj.servlet.request.impl
Class CopySessionRequest

java.lang.Object
  extended by edu.jhu.tmaj.servlet.request.BaseRequest
      extended by edu.jhu.tmaj.servlet.request.impl.CopySessionRequest
All Implemented Interfaces:
CommandRequest, java.io.Serializable

public final class CopySessionRequest
extends BaseRequest
implements java.io.Serializable

Copies the scored data from one Session to another. The destination session must exist beforehand and it must be blank. In addition, both sessions must be from the same ArrayBlock (It would not make any sense to do a copy of where the sessions have different arrayBlocks.) It's not required that both sessions be from the same ArraySlide. For example, one may wish to copy a session basefrom one stain (a cut) to another stain (another cut) and rescore the data. This feature was turned off after the SharedSessions feature was developed and it was said that duplicating a lot of data was a bad idea.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.jhu.tmaj.servlet.request.BaseRequest
password, username
 
Constructor Summary
CopySessionRequest(int sourceSessionID, int destinationSessionID)
           
 
Method Summary
static boolean isSessionBlank(int sessionID)
          Returns true if there are no records for this session in the ArrayImageData and ArrayImageTypes table
 CommandResponse processRequest(UserBean userBean)
          This request is executed on the server assuming the username and password returns a valid UserBean.
 java.lang.String toString()
           
 
Methods inherited from class edu.jhu.tmaj.servlet.request.BaseRequest
executeCommand, getPassword, getUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopySessionRequest

public CopySessionRequest(int sourceSessionID,
                          int destinationSessionID)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

processRequest

public CommandResponse processRequest(UserBean userBean)
                               throws java.sql.SQLException
Description copied from class: BaseRequest
This request is executed on the server assuming the username and password returns a valid UserBean.

Specified by:
processRequest in class BaseRequest
Throws:
java.sql.SQLException

isSessionBlank

public static boolean isSessionBlank(int sessionID)
                              throws java.sql.SQLException
Returns true if there are no records for this session in the ArrayImageData and ArrayImageTypes table

Throws:
java.sql.SQLException