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 FormModifier 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, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setCatEntryId(java.lang.String[] ids)
setCatEntryId
in interface OrderItemDeleteCmd
ids
- an array of catalog entry ids.public void setOrderId(java.lang.String[] numbers)
setOrderId
in interface OrderItemDeleteCmd
numbers
- an array of order ids.public void setOrderItemId(java.lang.String[] numbers)
setOrderItemId
in interface OrderItemDeleteCmd
numbers
- an array of order item ids.public void setOutOrderName(java.lang.String[] names)
setOutOrderName
in interface OrderItemDeleteCmd
names
- an array of out order names.public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
aRequestProperties
- request properties.ECApplicationException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException