java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.orderitems.commands.OrderItemDeleteCmdImpl
Deletes a product from one or more pending orders.
Behavior
View Task: RedirectView
This command uses the following AccessBeans:
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.orderitems.commands. OrderItemDeleteCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
OrderItemDeleteCmdImpl() |
Method Summary | |
---|---|
protected
java.lang.String[] |
getOrderIds() Return a list of ids of the orders in which at lease one order item has been delete. |
AccessVector |
getResources() Gets the resources. |
protected
boolean |
isValidStatus(
OrderAccessBean orderAB) Checks whether the status of the order is valid when you tries to delete order items from the order. |
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. |
protected
void |
unLockOrder(java.lang.String orderId) Unlocks the order. |
void |
validateParameters() Verify the input parameters. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public OrderItemDeleteCmdImpl()
Method Detail |
---|
protected java.lang.String[] getOrderIds()
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
protected boolean isValidStatus(OrderAccessBean orderAB) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
orderAB
- OrderAccessBeanECException
FinderException
CreateException
javax.naming.NamingException
java.rmi.RemoteException
java.sql.SQLException
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
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
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
aRequestProperties
- request properties.
ECApplicationException
protected void unLockOrder(java.lang.String orderId) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
orderId
- order id.ECException
FinderException
CreateException
javax.naming.NamingException
java.rmi.RemoteException
java.sql.SQLException
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException