public class OrderCancelCmdImpl extends OrderBaseCmdImpl implements OrderCancelCmd
OrderCancelCmd controller command.
| Name | Description |
|---|---|
langId |
Sets or resets the preferred language for the duration of the session; the supported languages for a store are found in the STORELANG table. |
forUser |
The logon ID of the user on whose behalf the command runs; only a person with the authority to process orders can specify this parameter. |
URL |
(Required) The URL that is called when the command completes successfully. |
storeId |
The store that is associated with the order. |
orderId |
(Required) The reference number of the order to cancel. |
forcedCancel |
(Optional) This parameter is used by payment rule to perform a refund. If there are some deposit transactions for the order, the order cannot be canceled except when the parameter is made forcedCancel=true. The default value is false. |
NAMEdefaultCommandClassName| Constructor and Description |
|---|
OrderCancelCmdImpl()
This method is the default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getForcedCancel()
This method returns an indicator to force cancellation.
|
java.lang.Long |
getOrderId()
This method returns the identifier of the Order to cancel.
|
AccessVector |
getResources()
This method returns an
AccessVector containing the OrderAccessBean to be canceled. |
java.lang.String |
getUrl()
This method returns the redirection URL to be called when the command completes successfully.
|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
reset()
Resets instance variables to their initial values.
|
void |
setForcedCancel(java.lang.Boolean forceCancel)
This method sets an indicator to force cancellation.
|
void |
setOrderId(java.lang.Long anOrderId)
This method sets the identifier of the Order to cancel.
|
void |
setRequestProperties(TypedProperty aReqParms)
The WebController calls the setRequestProperties method before invoking
the execute method in this command.
|
void |
setUrl(java.lang.String astrUrl)
This method sets the redirection URL to be called when the command completes successfully.
|
void |
validateParameters()
This method extracts and validates the input parameters of this command implementation.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, 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, 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 OrderCancelCmdImpl()
public java.lang.Long getOrderId()
public AccessVector getResources() throws ECException
AccessVector containing the OrderAccessBean to be canceled.
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandAccessVector containing the OrderAccessBean to be canceled..ECExceptionECCommand#getResources()public java.lang.String getUrl()
public void performExecute()
throws ECException
status attribute value of A, M, P, E, B, C, W, or X.
status attribute value is set to X.status attribute values of its OrderItems are set to X.viewTaskName response property is set to the value "RedirectView".performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setOrderId(java.lang.Long anOrderId)
setOrderId in interface OrderCancelCmdanOrderId - A Long that specifies the Order identifier.public void setRequestProperties(TypedProperty aReqParms) throws ECApplicationException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplaReqParms - A TypedProperty that represents the details of request properties.ECExceptionECApplicationExceptionControllerCommand#setRequestProperties(TypedProperty)public void setUrl(java.lang.String astrUrl)
setUrl in interface OrderCancelCmdastrUrl - A String that specifies the redirection URL string.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECExceptionECCommand#validateParameters()public java.lang.Boolean getForcedCancel()
public void setForcedCancel(java.lang.Boolean forceCancel)
forceCancel - A Boolean whose value is true if cancel is to be forced.