public class CSROrderRollBackCmdImpl extends ToolsControllerCommandImpl implements CSROrderRollBackCmd
CSROrderProcessCmd
command.
Behavior
OrderItemDeleteCmd
to delete this order item from the first order.OrderItemAddCmd
to add the order item to the first order.OrderItemUpdateCmd
to update
the order item of the first order.OrderPrepareCmd
to prepare the first order.OrderProcessCmd
to process the first order.This command calls the following Commands:
AdminOrderCancelCmd
DoCancelCmd
GetOrderLevelParameterCmd
OrderItemAddCmd
OrderItemDeleteCmd
OrderItemUpdateCmd
OrderPrepareCmd
OrderProcessCmd
SetOrderLevelParameterCmd
UseCouponIdTaskCmd
This command uses the following AccessBeans:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
ERRTASK_NAME
Error handling view name for this command.
|
static java.lang.String |
NOTEBOOK_URL
The return url for a notebook widget.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
CSROrderRollBackCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBackupOrderId()
Returns backup order ID.
|
java.lang.String |
getCustomerId()
Returns customer ID.
|
java.lang.String |
getFirstOrderId()
Returns first order ID.
|
java.util.Hashtable |
getNLS()
Returns NLS properties.
|
CommandContext |
getOrgCmdContext()
Returns original command context.
|
java.lang.Integer |
getOrgLangId()
Returns original language ID.
|
java.util.Locale |
getOrgLocale()
Returns original Locale.
|
TypedProperty |
getOrgReqProperties()
Returns original request properties.
|
java.lang.String |
getOrigOrderCouponIds()
Returns the string of coupons IDs used in the original order.
|
java.math.BigDecimal |
getOrigOrderGrandTotal()
Returns original order grand total.
|
java.lang.String |
getOrigOrderLastUpdate()
Returns the origOrderLastUpdate.
|
java.math.BigDecimal |
getOrigOrderLevelMenuAdjustment()
Returns original order level menu adjustment.
|
java.lang.String |
getOrigOrderStatus()
Returns the origOrderStatus.
|
java.math.BigDecimal |
getOrigShippingCharge()
Returns the original shipping charge.
|
java.lang.String |
getRedirectURL()
Returns redirect URL.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.lang.String |
getSecondOrderId()
Returns the ID of the second order.
|
java.lang.String |
getXMLFile()
Returns XML file.
|
void |
performExecute()
This method performs rollback changes done to the first order from the data in the backup order.
|
void |
setOrigOrderCouponIds(java.lang.String newOrigOrderCouponIds)
Sets the list of coupons used in the original order
|
void |
setOrigOrderLastUpdate(java.lang.String inOrigOrderLastUpdate)
Sets the origOrderLastUpdate.
|
void |
setOrigOrderLevelMenuAdjustment(java.lang.String tmpValue)
Sets original order level menu adjustment.
|
void |
setOrigOrderStatus(java.lang.String inOrigOrderStatus)
Sets the origOrderStatus.
|
void |
setOrigShippingCharge(java.lang.String tmpValue)
Sets original order shipping charge.
|
void |
validateParameters()
Sets the NLS properties, the redirect URL and parse the input XML parameters.
|
getViewInputProperties, setRequestProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, 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, reset, 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, setRequestProperties, 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 static final java.lang.String NOTEBOOK_URL
public static java.lang.String ERRTASK_NAME
public java.lang.String getBackupOrderId()
public java.lang.String getCustomerId()
public java.lang.String getFirstOrderId()
public java.util.Hashtable getNLS()
public CommandContext getOrgCmdContext()
public java.lang.Integer getOrgLangId()
public java.lang.String getOrigOrderLastUpdate()
public java.util.Locale getOrgLocale()
public TypedProperty getOrgReqProperties()
public java.lang.String getOrigOrderCouponIds()
public java.math.BigDecimal getOrigOrderGrandTotal()
public java.math.BigDecimal getOrigOrderLevelMenuAdjustment()
public java.lang.String getOrigOrderStatus()
public java.math.BigDecimal getOrigShippingCharge()
public java.lang.String getRedirectURL()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
- If the resource can not be retrieved.public java.lang.String getSecondOrderId()
public java.lang.String getXMLFile()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If fails to roll back order.public void setOrigOrderLastUpdate(java.lang.String inOrigOrderLastUpdate)
inOrigOrderLastUpdate
- The origOrderLastUpdate to setpublic void setOrigOrderCouponIds(java.lang.String newOrigOrderCouponIds)
newOrigOrderCouponIds
- IDs of coupons used in the original orderpublic void setOrigOrderLevelMenuAdjustment(java.lang.String tmpValue)
tmpValue
- The original order level menu adjustment.public void setOrigShippingCharge(java.lang.String tmpValue)
tmpValue
- The original order shipping charge.public void setOrigOrderStatus(java.lang.String inOrigOrderStatus)
inOrigOrderStatus
- The origOrderStatus to setpublic void validateParameters() throws ECApplicationException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException