java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.requisitionlist.commands.RequisitionListBaseCmdImpl
This is the base command implementation for the subclass requisition list commands. It has some common used instance variables and methods for the subclass requisition list commands. It defines the common ways for the execution of the subclass requisition list commands.
When the command is called from the URL, the web controller will call the following methods in sequence:
Field Summary | |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
protected java.lang.Long | iOrderId The id of the order. |
protected java.lang.Long | iRequisitionListId The id of the requisition list. |
protected java.lang.String | iRequisitionListName The name of the requisition list. |
protected java.lang.String | iRequisitionListStatus The status of the requisition list. |
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
RequisitionListBaseCmdImpl() |
Method Summary | |
protected java.lang.Long | copyOrder(java.lang.Long fromOrderId) Copy an order (id = fromOrderId) and return the order id of the new created order. |
protected OrderAccessBean | copyOrder(OrderAccessBean fromOrderAB) Copy the OrderAccessBean fromOrderAB and return a new created OrderAccessBean which is a clone of fromOrderAB. |
protected OrderAccessBean | copyOrderAccessBean(OrderAccessBean fromOrderAB) Copy the OrderAccessBean fromOrderAB and return a new created OrderAccessBean which is a clone of fromOrderAB. |
protected OrderItemAccessBean | copyOrderItemAccessBean(OrderItemAccessBean fromOrderItemAB, java.lang.Long toOrderId) Copy the OrderItemAccessBean fromOrderItemAB and return a new created OrderItemAccessBean which is a clone of fromOrderItemAB and with order id = toOrderId. |
protected void | copyOrderPayInfo(java.lang.Long fromOrderId, java.lang.Long toOrderId) Copy the order pay info from the order (id = fromOrderId) to the order (id = toOrderId). |
protected java.lang.String | getName() Returns the name of the requisition list. |
protected java.lang.Long | getOrderId() Returns the id of the order. |
protected java.lang.Long | getRequisitionListId() Returns the id of the requisition list. |
protected java.lang.String | getStatus() Returns the status of the requisition list. |
void | reset() Reset all instance variables. |
protected void | setDefaultRequisitionListStatus() Sets the default requisition list status - 'Y'. |
protected void | setName(java.lang.String name) Sets the name of the requisition list. |
protected void | setOrderId(java.lang.Long id) Sets the id of the order. |
void | setRequestProperties(TypedProperty reqProperties) Sets the request properties. |
protected void | setRequisitionListId(java.lang.Long id) Sets the id of the requisition list. |
static void | setRequisitionListStatus(java.lang.String status, OrderAccessBean orderAB, CommandContext commandContext) Sets the status of the requisition list. |
protected void | setStatus(java.lang.String status) Sets the status of the requisition list. |
protected void | updateResponseView() Sets the default response view - Redirect View. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, setAccCheck |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
Field Detail |
public static final java.lang.String COPYRIGHT
protected java.lang.Long iOrderId
protected java.lang.Long iRequisitionListId
protected java.lang.String iRequisitionListStatus
protected java.lang.String iRequisitionListName
Constructor Detail |
public RequisitionListBaseCmdImpl()
Method Detail |
protected OrderAccessBean copyOrder(OrderAccessBean fromOrderAB) throws java.sql.SQLException, CreateException, FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected java.lang.Long copyOrder(java.lang.Long fromOrderId) throws java.sql.SQLException, CreateException, FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected OrderAccessBean copyOrderAccessBean(OrderAccessBean fromOrderAB) throws java.sql.SQLException, CreateException, FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected OrderItemAccessBean copyOrderItemAccessBean(OrderItemAccessBean fromOrderItemAB, java.lang.Long toOrderId) throws java.sql.SQLException, CreateException, FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected void copyOrderPayInfo(java.lang.Long fromOrderId, java.lang.Long toOrderId) throws java.sql.SQLException, CreateException, FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected java.lang.String getName()
protected java.lang.Long getOrderId()
protected java.lang.Long getRequisitionListId()
protected java.lang.String getStatus()
public void reset()
protected void setDefaultRequisitionListStatus()
protected void setName(java.lang.String name)
protected void setOrderId(java.lang.Long id)
public void setRequestProperties(TypedProperty reqProperties) throws ECException
protected void setRequisitionListId(java.lang.Long id)
protected void setStatus(java.lang.String status)
public static void setRequisitionListStatus(java.lang.String status, OrderAccessBean orderAB, CommandContext commandContext) throws CreateException, FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected void updateResponseView()
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.