public class OrderItemDeleteCmdImpl extends OrderBaseCmdImpl implements OrderItemDeleteCmd
OrderItemDeleteCmd
controller command.
| Name | Description |
|---|---|
orderItemId |
The orderitem Ids, the order items to be deleted. Mandatory if catEntryId
is not specified. |
catEntryId |
The catalog entry Ids, to which the order items to be deleted. Mandatory if orderItemId
is not specified. |
orderId |
The order Ids. Mandatory if orderItemId
is not specified. |
outOrderName |
The names of name-value pairs to add to the redirection URL. The values of the added name-value pairs are the reference numbers of the input orders. Optional. |
calculateOrder |
If order will be recalculated after some order items are removed.
The values can be 1 for recalculate or 0 for not recalculate.
Default value is 0 |
| Name | Description |
|---|---|
The value for outOrderName[i] |
The array of order Ids. |
orderId |
If outOrderName is empty, used as outOrderName. |
ResolveOrdersCmd task command is
invoked to obtain the current pending orders, if needed. OrderCalculateCmd to calculate the whole if the
passed parameter calculateOrder=1 for calculation usage
CalculationConstants.USAGE_DISCOUNT
View Task: RedirectView
This command uses the following AccessBeans:OrderCalculateCmd,
ResolveOrdersCmd,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
OrderItemDeleteCmdImpl()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
AccessVector |
getResources()
Gets the resources.
|
void |
performExecute()
The main entry point of the command.
|
void |
reset()
Reset all instance variables.
|
void |
setCatEntryId(java.lang.String[] ids)
set a list of catalog entry ids to be deleted
from the pending orders specified by orderId.
|
void |
setOrderId(java.lang.String[] numbers)
Specifies zero or more orders, using order ids or one of the
special abbreviations ".", "*", ".t", "*t".
|
void |
setOrderItemId(java.lang.String[] numbers)
Set an array of id of order items to be deleted.
|
void |
setOutOrderName(java.lang.String[] names)
Specifies the names of name-value pairs to add to the redirection URL.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties.
|
void |
validateParameters()
Verify the input parameters.
|
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 static final java.lang.String COPYRIGHT
public AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECExceptionpublic void performExecute()
throws ECException
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 setCatEntryId(java.lang.String[] ids)
setCatEntryId in interface OrderItemDeleteCmdids - an array of catalog entry ids.public void setOrderId(java.lang.String[] numbers)
setOrderId in interface OrderItemDeleteCmdnumbers - an array of order ids.public void setOrderItemId(java.lang.String[] numbers)
setOrderItemId in interface OrderItemDeleteCmdnumbers - an array of order item ids.public void setOutOrderName(java.lang.String[] names)
setOutOrderName in interface OrderItemDeleteCmdnames - an array of out order names.public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplaRequestProperties - request properties.ECApplicationExceptionpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException