|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
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.ControllerCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand |
COPYRIGHT |
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()
This method should be called after a command has been executed to reset its states 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 requestProperties for the command. |
protected void |
setRequisitionListId(java.lang.Long id)
Sets the id 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 |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
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, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Field Detail |
protected java.lang.Long iOrderId
protected java.lang.Long iRequisitionListId
protected java.lang.String iRequisitionListName
protected java.lang.String iRequisitionListStatus
Constructor Detail |
public RequisitionListBaseCmdImpl()
Method Detail |
protected java.lang.Long copyOrder(java.lang.Long fromOrderId) throws java.sql.SQLException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected OrderAccessBean copyOrder(OrderAccessBean fromOrderAB) throws java.sql.SQLException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected OrderAccessBean copyOrderAccessBean(OrderAccessBean fromOrderAB) throws java.sql.SQLException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected OrderItemAccessBean copyOrderItemAccessBean(OrderItemAccessBean fromOrderItemAB, java.lang.Long toOrderId) throws java.sql.SQLException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected void copyOrderPayInfo(java.lang.Long fromOrderId, java.lang.Long toOrderId) throws java.sql.SQLException, javax.ejb.CreateException, javax.ejb.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()
AbstractECTargetableCommand
reset
in class AbstractECTargetableCommand
protected void setDefaultRequisitionListStatus()
protected void setName(java.lang.String name)
protected void setOrderId(java.lang.Long id)
public void setRequestProperties(TypedProperty reqProperties) throws ECException
ControllerCommandImpl
setRequestProperties
in class ControllerCommandImpl
com.ibm.commerce.command.ControllerCommandImpl
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.
- protected void setRequisitionListId(java.lang.Long id)
protected void setStatus(java.lang.String status)
protected void updateResponseView()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |