java.lang.ObjectCacheableCommandImpl
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 |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
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
protected boolean isValidStatus(OrderAccessBean orderAB) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public void performExecute() throws ECException
public void reset()
public void setCatEntryId(java.lang.String[] ids)
public void setOrderId(java.lang.String[] numbers)
public void setOrderItemId(java.lang.String[] numbers)
public void setOutOrderName(java.lang.String[] names)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
protected void unLockOrder(java.lang.String orderId) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.