public class CSROrderPrepareCmdImpl extends CSRBaseControllerCommandImpl implements CSROrderPrepareCmd
CSROrderPrepareCmd command.
This command calls the following Commands:
OrderCalculateCmdOrderPrepareCmdThis command uses the following AccessBean:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
ERRTASK_NAME
Error handling view name for this command.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
CSROrderPrepareCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCustomerId()
Returns customer ID.
|
java.lang.String |
getFirstOrderId()
Returns first order ID.
|
java.util.Hashtable |
getNLS()
Returns NLS properties.
|
CommandContext |
getOrgCmdContext()
Returns original 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 |
getRedirectURL()
Returns redirect URL.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.lang.String |
getSecondOrderId()
Returns the ID of the second order.
|
void |
performExecute()
This method prepares the orders that have at least one item.
|
void |
validateParameters()
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, reset, 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 java.lang.String ERRTASK_NAME
public java.lang.String getCustomerId()
getCustomerId in interface CSROrderPrepareCmdpublic java.lang.String getFirstOrderId()
getFirstOrderId in interface CSROrderPrepareCmdpublic 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 getSecondOrderId()
getSecondOrderId in interface CSROrderPrepareCmdpublic void performExecute()
throws ECException
It first calls the callPreCommands method in the super class to execute
all pre-commands and then prepares the orders.
If there are any temporary addresses used in the order items, they will be converted into permanent addresses first before calling OrderPrepareCmd. Then these address will be changed back into temporary addresses.
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - if orders can not be prepared.public void validateParameters()
throws ECApplicationException
validateParameters in interface ECCommandvalidateParameters in class CSRBaseControllerCommandImplECApplicationException - If the XML does not contain the required parameters.