edu.jhu.tmaj.servlet.request.impl
Class ArrayCoresSaveRequest
java.lang.Object
edu.jhu.tmaj.servlet.request.BaseRequest
edu.jhu.tmaj.servlet.request.impl.ArrayCoresSaveRequest
- All Implemented Interfaces:
- CommandRequest, java.io.Serializable
public final class ArrayCoresSaveRequest
- extends BaseRequest
- implements java.io.Serializable
Writes a List of ArrayCores to the database. This Request is used by ArrayBuilder. Before the
ArrayCores are written this class checks whether the user has permission for the ArrayBlock and
that the ArrayBlock is not final.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ArrayCoresSaveRequest
public ArrayCoresSaveRequest(int arrayBlockID,
java.util.List<ArrayCoreRep> arrayCoreBeansList)
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
write
public static CommandResponse write(java.util.List<ArrayCoreRep> beansList,
int arrayBlockID,
int userID)
- Writes a List of ArrayCoreBeans to the database.
- Parameters:
beansList
- a List of ArrayCoreBeansarrayBlockID
- the ArrayBlock of the ArrayCoresuserID
- the userID who is making the request. The InputLog is updated with the userID.