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

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

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

A Request to set a MachineScore record as invalid (or valid). By default, if no value is recorded in the MachineScores table IsInvalid column, the MachineScore record is assumed to be valid. MachineScores are marked as invalid because sometimes MachineScores will get data that is blatantly wrong. For example, a column such as RedIntensity should have values between appx. between 1 and 1000, and there might be a record that has a value of 5000000.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.jhu.tmaj.servlet.request.BaseRequest
password, username
 
Constructor Summary
InvalidateMachineScoresRequest(java.util.List<java.lang.Integer> machineScoreIDsList, boolean isInvalid)
          Constructs this object.
 
Method Summary
 CommandResponse processRequest(UserBean userBean)
          This request is executed on the server assuming the username and password returns a valid UserBean.
 
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, toString, wait, wait, wait
 

Constructor Detail

InvalidateMachineScoresRequest

public InvalidateMachineScoresRequest(java.util.List<java.lang.Integer> machineScoreIDsList,
                                      boolean isInvalid)
Constructs this object.

Parameters:
machineScoreIDsList - a List of MachineScoreIDs (the primary key in table MachineScores).
isInvalid - true if these machineScores are invalid, false to undo and set the machineScores to valid.
Method Detail

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