|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.tools.optools.order.commands.CSRBaseControllerCommandImpl | +--com.ibm.commerce.tools.optools.order.commands.CSROrderItemDeleteCmdImpl
Deletes one or more order items from an order.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
ERRTASK_NAME
|
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.tools.optools.order.commands.CSROrderItemDeleteCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
CSROrderItemDeleteCmdImpl()
|
Method Summary | |
protected TypedProperty |
exceptionUtil(TypedProperty prop,
java.lang.Exception ex,
java.lang.String methodName,
java.lang.String cmdName)
Generates common exception code. |
protected void |
executeOrderItemDelete()
Calls OrderItemDeleteCmd to delete the order item from the order with the following parameters: orderItemId shopperId |
java.util.Vector |
getDeleteItems()
Gets the items to be deleted. |
java.lang.String |
getFirstOrderId()
Gets the first order ID |
java.util.Vector |
getItems()
Gets the items in the order |
java.util.Hashtable |
getNLS()
Returns NLS properties. |
java.lang.String |
getOrderId()
Gets the order ID for which the items are to be deleted |
CommandContext |
getOrgCmdContext()
Gets the original command context |
TypedProperty |
getOrgReqProperties()
Gets the original request properties |
java.lang.String |
getRedirectURL()
Gets the redirect URL |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
java.lang.String |
getSecondOrderId()
Gets the second order ID |
java.lang.String |
getShopperId()
Gets the shopper ID for which the order is to be added |
void |
performExecute()
Delete the order items from the order |
void |
setDeleteItems(java.util.Vector newDeleteItems)
Sets the items to be deleted from the order |
void |
setFirstOrderId(java.lang.String newFirstOrderId)
Sets the first order ID |
void |
setItems(java.util.Vector newItems)
Sets the items of the order |
protected void |
setNLS(java.util.Hashtable newNLS)
Sets NLS properties. |
void |
setOrderId(java.lang.String newOrderId)
Sets the order ID into which the items are added |
void |
setOrgCmdContext(CommandContext newOrgCmdContext)
Sets the original command context |
void |
setOrgReqProperties(TypedProperty newOrgReqProperties)
Sets the original request properties |
void |
setRedirectURL(java.lang.String newRedirectURL)
Sets the redirect URL |
void |
setSecondOrderId(java.lang.String newSecondOrderId)
Sets the second order ID |
void |
setShopperId(java.lang.String newShopperId)
Sets the shopper ID for which the items are deleted |
void |
validateParameters()
Gets XMLObject from the GUI Notebook or Wizard and get ready to parse it. |
Methods inherited from class com.ibm.commerce.tools.optools.order.commands.CSRBaseControllerCommandImpl |
callPreCommands, findCmdInterfaceName, getIfExePreCmdChains, getPreCmdChain, setIfExePreCmdChains, setPreCmdChain |
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl |
getViewInputProperties, setRequestProperties |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
public static java.lang.String ERRTASK_NAME
Constructor Detail |
public CSROrderItemDeleteCmdImpl()
Method Detail |
protected TypedProperty exceptionUtil(TypedProperty prop, java.lang.Exception ex, java.lang.String methodName, java.lang.String cmdName)
prop
- The response typed property.ex
- The catched exception.methodName
- The method that generates the exceptioncmdName
- The command that generates the exceptionprotected void executeOrderItemDelete() throws ECException
ECException
- If the order item cannot be deletedpublic java.util.Vector getDeleteItems()
public java.lang.String getFirstOrderId()
public java.util.Vector getItems()
public java.util.Hashtable getNLS()
public java.lang.String getOrderId()
public CommandContext getOrgCmdContext()
public TypedProperty getOrgReqProperties()
public java.lang.String getRedirectURL()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
public java.lang.String getSecondOrderId()
public java.lang.String getShopperId()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If the items cannot be deletedpublic void setDeleteItems(java.util.Vector newDeleteItems)
newAddItems
- The vector of items to be deleted from the orderpublic void setFirstOrderId(java.lang.String newFirstOrderId)
newFirstOrderId
- The first order IDpublic void setItems(java.util.Vector newItems)
newItems
- The vector of items in the orderprotected void setNLS(java.util.Hashtable newNLS)
newNLS
- The NLS propertiespublic void setOrderId(java.lang.String newOrderId)
newOrderId
- The order IDpublic void setOrgCmdContext(CommandContext newOrgCmdContext)
newOrgCmdContext
- The original command contextpublic void setOrgReqProperties(TypedProperty newOrgReqProperties)
newOrgReqProperties
- The original request propertiespublic void setRedirectURL(java.lang.String newRedirectURL)
newRedirectURL
- The redirect URLpublic void setSecondOrderId(java.lang.String newSecondOrderId)
newSecondOrderId
- The second order IDpublic void setShopperId(java.lang.String newShopperId)
newShopperId
- The shopper IDpublic void validateParameters() throws ECApplicationException
validateParameters
in interface ECCommand
validateParameters
in class CSRBaseControllerCommandImpl
ECApplicationException
- If the XML does not contain the required parameters
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |