public class CSROrderProcessCmdImpl extends CSRBaseControllerCommandImpl implements CSROrderProcessCmd
CSROrderProcessCmd command.
This command calls the following Commands:
CSROrderAdjustmentUpdateCmdCSROrderCommentsNotifyCmdDoCancelCmdCSROrderPrepareCmdOrderProcessCmdThis command uses the following AccessBeans:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
NOTEBOOK_URL
The return url for a notebook widget.
|
static java.lang.String |
WIZARD_URL
The return url for a wizard widget.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
CSROrderProcessCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdminId()
Returns the administrator's ID.
|
java.lang.String |
getBackupOrderId()
Returns backup order ID.
|
java.util.Hashtable |
getComment()
Returns comment as a Hashtable.
|
java.lang.String |
getCustomerId()
Returns customer ID.
|
java.lang.String |
getEditOrderInfo()
Returns "true" if it is called from an edit order notebook.
|
java.lang.String |
getFirstBillingAddressId()
Returns first billing address ID.
|
java.lang.String |
getFirstDirtyBit()
Returns the first order dirty status.
|
java.lang.String |
getFirstOrderId()
Returns first order ID.
|
java.util.Hashtable |
getFirstPayment()
Returns the payment information for the first order as a Hashtable.
|
java.util.Hashtable |
getNLS()
Returns the properties containing all translatable messages for this command.
|
java.lang.String |
getNotifyMerchant()
Gets notify merchant option.
|
java.lang.String |
getNotifyOrderSubmitted()
Gets order submitted notification option.
|
java.lang.String |
getNotifyShopper()
Gets notify customer option.
|
CommandContext |
getOrgCmdContext()
Returns the original commandContext (administrator's command context).
|
java.lang.Integer |
getOrgLangId()
Returns original language ID.
|
java.util.Locale |
getOrgLocale()
Returns original locale.
|
TypedProperty |
getOrgReqProperties()
Returns original request properties.
|
java.lang.String |
getPoNumber()
Get the PO number
|
java.lang.String |
getRedirectURL()
Returns the redirect URL that is to be executed after this controller command
terminates.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.lang.String |
getSecondBillingAddressId()
Returns second billing address ID.
|
java.lang.String |
getSecondOrderId()
Returns second order ID.
|
java.util.Hashtable |
getSecondPayment()
Returns the payment information for the second order as a Hashtable.
|
java.lang.String |
getXMLFile()
Returns XML file.
|
boolean |
isBackupOrderDeleteError()
Returns error flag for deleting backup order error.
|
boolean |
isEmailError()
Returns error flag for email comment error.
|
boolean |
isFirstOrderExist()
Returns true if the first order exits.
|
boolean |
isSecondOrderExist()
Returns true if the Second order exits.
|
void |
performExecute()
This method performs the execution for process the new order(s) and cancel old order if necessary.
|
void |
reset()
This method should be called after a command has been executed to reset its states variables.
|
void |
setNotifyMerchant(java.lang.String notifyMerchant)
Sets notify merchant option.
|
void |
setNotifyOrderSubmitted(java.lang.String notifyOrderSubmitted)
Sets order submitted notification option.
|
void |
setNotifyShopper(java.lang.String notifyShopper)
Sets notify customer option.
|
void |
setPoNumber(java.lang.String string)
Set the PO number
|
void |
validateParameters()
This method gets XMLObject from the GUI Notebook or Wizard and get ready to parse it.
|
getIfExePreCmdChains, getPreCmdChain, setIfExePreCmdChains, setPreCmdChaingetViewInputProperties, setRequestPropertiescheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public static final java.lang.String NOTEBOOK_URL
public static final java.lang.String WIZARD_URL
public java.lang.String getAdminId()
public java.lang.String getBackupOrderId()
public java.util.Hashtable getComment()
public java.lang.String getCustomerId()
public java.lang.String getEditOrderInfo()
public java.lang.String getFirstBillingAddressId()
public java.lang.String getFirstDirtyBit()
public java.lang.String getFirstOrderId()
public java.util.Hashtable getFirstPayment()
public java.util.Hashtable getNLS()
public CommandContext getOrgCmdContext()
public java.lang.Integer getOrgLangId()
public java.util.Locale getOrgLocale()
public TypedProperty getOrgReqProperties()
public java.lang.String getRedirectURL()
public AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECException - If the resource can not be retrieved.public java.lang.String getSecondBillingAddressId()
public java.lang.String getSecondOrderId()
public java.util.Hashtable getSecondPayment()
public java.lang.String getXMLFile()
public boolean isBackupOrderDeleteError()
public boolean isEmailError()
public boolean isFirstOrderExist()
public boolean isSecondOrderExist()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - if unable to process the orders.public void validateParameters()
throws ECApplicationException
validateParameters in interface ECCommandvalidateParameters in class CSRBaseControllerCommandImplECException - If the XMLObject cannot be parsed, throw ECApplicationExceptionECApplicationExceptionpublic java.lang.String getNotifyMerchant()
public void setNotifyMerchant(java.lang.String notifyMerchant)
notifyMerchant - "1" to notify merchant; "0" not to notify merchant.public java.lang.String getNotifyShopper()
public void setNotifyShopper(java.lang.String notifyShopper)
notifyShopper - "1" to notify customer; "0" not to notify customer.public java.lang.String getNotifyOrderSubmitted()
public void setNotifyOrderSubmitted(java.lang.String notifyOrderSubmitted)
notifyOrderSubmitted - "1" to notify order submission; "0" not to notify order submission.public java.lang.String getPoNumber()
public void setPoNumber(java.lang.String string)
string - PO numberpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommand