java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.requisitionlist.commands.RequisitionListBaseCmdImpl
com.ibm.commerce.requisitionlist.commands.RequisitionListUpdateCmdImpl
Update information for a requisition list. This command uses the following AccessBeans:
Field Summary | |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
protected java.lang.Long | iBilltoAddressId The bill to address id. |
Fields inherited from class com.ibm.commerce.requisitionlist.commands.RequisitionListBaseCmdImpl |
iOrderId, iRequisitionListId, iRequisitionListName, iRequisitionListStatus |
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.requisitionlist.commands.RequisitionListUpdateCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
RequisitionListUpdateCmdImpl() |
Method Summary | |
protected void | action() The main action of the command. |
protected java.lang.Long | getBilltoAddressId() Return the billing address id. |
protected TypedProperty | getPayNVPsFromRequestProperties() This is a helper method that merges the ShopperPay information |
AccessVector | getResources() It returns the order access bean. |
protected void | mergeNVPs(TypedProperty hshFrom, TypedProperty hshTo) This is a helper method that merges new nvps (hshFrom) with old nvps (hshTo) if value of a new nvp is null or empty string remove nvp with this name from an old set (hshTo). |
protected void | mergeShopperPayInfo(OrderAccessBean aabOrder) This is a helper method that merges the ShopperPay information |
void | performExecute() The main execution of the command. |
void | reset() Reset all instance variables. |
void | setBilltoAddressId(java.lang.Long id) Updates the billing address of the requisition list to the new address id. |
void | setName(java.lang.String name) Updates the name of the requisition list to the new name. |
void | setRequestProperties(TypedProperty reqProperties) Sets the request properties. |
void | setRequisitionListId(java.lang.Long id) Specifies the requisition list id to be updated. |
void | setStatus(java.lang.String status) Updates the status of the requisition list to the new status. |
void | validateParameters() Validate the input parameters. |
Methods inherited from class com.ibm.commerce.requisitionlist.commands.RequisitionListBaseCmdImpl |
copyOrder, copyOrder, copyOrderAccessBean, copyOrderItemAccessBean, copyOrderPayInfo, getName, getOrderId, getRequisitionListId, getStatus, setDefaultRequisitionListStatus, setOrderId, setRequisitionListStatus, updateResponseView |
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, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
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 |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
protected java.lang.Long iBilltoAddressId
Constructor Detail |
public RequisitionListUpdateCmdImpl()
Method Detail |
protected void action() throws java.sql.SQLException, CreateException, FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
It updates the requisition list and calls mergeShopperPayInfo() to update the order pay info.
protected java.lang.Long getBilltoAddressId()
protected TypedProperty getPayNVPsFromRequestProperties()
public AccessVector getResources() throws ECException
protected void mergeNVPs(TypedProperty hshFrom, TypedProperty hshTo) throws ParameterNotFoundException, InvalidParameterValueException
protected void mergeShopperPayInfo(OrderAccessBean aabOrder) throws ECApplicationException, ECException, javax.naming.NamingException, FinderException, java.rmi.RemoteException, CreateException
public void performExecute() throws ECException
public void reset()
public void setBilltoAddressId(java.lang.Long id)
public void setName(java.lang.String name)
public void setRequestProperties(TypedProperty reqProperties) throws ECException
public void setRequisitionListId(java.lang.Long id)
public void setStatus(java.lang.String status)
public void validateParameters() throws ECException
It checks the following mandatory parameters:
Exception:
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.