java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.tools.optools.order.commands.CSROrderAdjustmentUpdateCmdImpl
This is the default implementation of the
CSROrderAdjustmentUpdateCmd
command.
This command calls the following command(s):
This command uses the following AccessBean(s):
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
ERRTASK_NAME Error handling viewname for this command. |
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. CSROrderAdjustmentUpdateCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
CSROrderAdjustmentUpdateCmdImpl() |
Method Summary | |
---|---|
protected
TypedProperty |
exceptionUtil(
TypedProperty prop, java.lang.Exception ex, java.lang.String methodName,
java.lang.String cmdName) This method sets up the response property when an excetion occurs. |
protected
void |
executeCSROrderPrepare() Calls CSROrderPrepareCmd to parepare order(s). |
protected
void |
executeSetOrderLevelAdjustmentCmd(java.lang.String orderId,
java.math.BigDecimal menuAdjustment,
java.math.BigDecimal shippingCharge) Calls SetOrderLevelParameterCmd to set adjustments. |
java.math.BigDecimal |
getFirstManuAdjust() Returns manual adjustment for first order. |
java.lang.String |
getFirstOrderCouponIds() Returns the string of coupon IDs used in the first order. |
java.lang.String |
getFirstOrderId() Returns first order ID. |
java.math.BigDecimal |
getFirstShip() Returns the shipping charge for first order. |
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 |
getRedirectURL() Gets the URL to be redirected to. |
AccessVector |
getResources() Gets the access vector accessed by this command. |
java.math.BigDecimal |
getSecondManuAdjust() Returns manual adjustment for second order. |
java.lang.String |
getSecondOrderCouponIds() Returns the string of coupon IDs used in the second order. |
java.lang.String |
getSecondOrderId() Returns second order ID. |
java.math.BigDecimal |
getSecondShip() Returns the shipping charge for second order. |
java.lang.String |
getShopperId() Returns shopper ID. |
boolean |
isFirstDirtyBit() Returns true if any adjustment field in first order has been changed. |
boolean |
isFirstShippingOverride() Returns true if shipping charge field in first order has been overridden. |
boolean |
isSecondDirtyBit() Returns true if any adjustment field in second order has been changed. |
boolean |
isSecondShippingOverride() Returns true if shipping charge field in second order has been overridden. |
void |
performExecute() Performs the execution for updating the order level CSR adjustments, eCoupons, and overrides the shipping charges for the order(s) |
protected
void |
setFirstDirtyBit(java.lang.String newFirstDirtyBit) Sets true if any adjustment field in first order has been changed. |
protected
void |
setFirstManuAdjust(java.lang.String newFirstManuAdjust) Sets manual adjustment for first order.. |
void |
setFirstOrderCouponIds(java.lang.String newFirstOrderCouponIds) Sets the list of coupons used in the first order |
protected
void |
setFirstOrderId(java.lang.String newFirstOrderId) Sets first order ID. |
protected
void |
setFirstShip(java.lang.String newFirstShip) Sets the shipping charge for the first order. |
protected
void |
setFirstShippingOverride(java.lang.String newFirstShippingOverride) Sets true if shipping charge field in first order has been overridden. |
protected
void |
setNLS(java.util.Hashtable newNLS) Sets NLS properties. |
protected
void |
setOrgCmdContext(
CommandContext newOrgCmdContext) Sets original command context. |
protected
void |
setOrgLangId(java.lang.Integer newOrgLangId) Sets original language ID. |
protected
void |
setOrgLocale(java.util.Locale newOrgLocale) Sets original Locale. |
protected
void |
setOrgReqProperties(
TypedProperty newOrgReqProperties) Sets original request properties. |
void |
setRedirectURL(java.lang.String newRedirectURL) Sets the redirect URL |
protected
void |
setSecondDirtyBit(java.lang.String newSecondDirtyBit) Returns true if any adjustment field in second order has been changed. |
protected
void |
setSecondManuAdjust(java.lang.String newSecondManuAdjust) Sets manual adjustment for second order. |
void |
setSecondOrderCouponIds(java.lang.String newSecondOrderCouponIds) Sets the string having the coupon IDs of the coupons used in the second order |
protected
void |
setSecondOrderId(java.lang.String newSecondOrderId) Sets second order ID. |
protected
void |
setSecondShip(java.lang.String newSecondShip) Sets the shipping charge for second order. |
protected
void |
setSecondShippingOverride(java.lang.String newSecondShippingOverride) Returns true if shipping charge field in second order has been overridden. |
protected
void |
setShopperId(java.lang.String newShopperId) Sets shopper ID. |
void |
validateParameters() Gets XMLObject from the GUI Notebook or Wizard and get ready to parse it. |
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl |
getViewInputProperties,
setRequestProperties |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
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,
reset,
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,
setRequestProperties,
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
public static java.lang.String ERRTASK_NAME
Constructor Detail |
---|
public CSROrderAdjustmentUpdateCmdImpl()
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 executeCSROrderPrepare() throws ECException
ECException
- If the order cannot be prepared.protected void executeSetOrderLevelAdjustmentCmd(java.lang.String orderId, java.math.BigDecimal menuAdjustment, java.math.BigDecimal shippingCharge) throws ECException, java.lang.Exception
orderId
- The ID of the order which will be applied the
adjustmentsmenuAdjustment
- The order level menu adjustmentshippingCharge
- The shipping charge needs to be
overriden
ECException
- If the order level adjustments cannot be updatedjava.lang.Exception
- If the order level adjustments cannot be
updatedpublic java.math.BigDecimal getFirstManuAdjust()
public java.lang.String getFirstOrderCouponIds()
public java.lang.String getFirstOrderId()
public java.math.BigDecimal getFirstShip()
public java.util.Hashtable getNLS()
public CommandContext getOrgCmdContext()
public java.lang.Integer getOrgLangId()
public java.util.Locale getOrgLocale()
public TypedProperty getOrgReqProperties()
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.math.BigDecimal getSecondManuAdjust()
public java.lang.String getSecondOrderCouponIds()
public java.lang.String getSecondOrderId()
public java.math.BigDecimal getSecondShip()
public java.lang.String getShopperId()
public boolean isFirstDirtyBit()
public boolean isFirstShippingOverride()
public boolean isSecondDirtyBit()
public boolean isSecondShippingOverride()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- If the order adjustments cannot be
updatedprotected void setFirstDirtyBit(java.lang.String newFirstDirtyBit)
newFirstDirtyBit
- The flag indicating whether the first order
is changedprotected void setFirstManuAdjust(java.lang.String newFirstManuAdjust)
newFirstManuAdjust
- The value of the manual adjustment for
the first orderpublic void setFirstOrderCouponIds(java.lang.String newFirstOrderCouponIds)
newFirstOrderCouponIds
- IDs of coupons used in the first
orderprotected void setFirstOrderId(java.lang.String newFirstOrderId)
newFirstOrderId
- The first order IDprotected void setFirstShip(java.lang.String newFirstShip)
newFirstShip
- The value of the shipping charge for the first
orderprotected void setFirstShippingOverride(java.lang.String newFirstShippingOverride)
newFirstShippingOverride
- The flag indicating whether the
shipping charge field of first order is overridden.protected void setNLS(java.util.Hashtable newNLS)
newNLS
- The NLS propertiesprotected void setOrgCmdContext(CommandContext newOrgCmdContext)
newOrgCmdContext
- The command contextprotected void setOrgLangId(java.lang.Integer newOrgLangId)
newOrgLangId
- The original language IDprotected void setOrgLocale(java.util.Locale newOrgLocale)
newOrgLocale
- The original Localeprotected void setOrgReqProperties(TypedProperty newOrgReqProperties)
newOrgReqProperties
- The original request
propertiespublic void setRedirectURL(java.lang.String newRedirectURL)
newRedirectURL
- The redirect URLprotected void setSecondDirtyBit(java.lang.String newSecondDirtyBit)
newSecondDirtyBit
- The flag indicating whether the second
order is changedprotected void setSecondManuAdjust(java.lang.String newSecondManuAdjust)
newSecondManuAdjust
- The value of the manual adjustment for
hte second orderpublic void setSecondOrderCouponIds(java.lang.String newSecondOrderCouponIds)
newSecondOrderCouponIds
- IDs of coupons used in the second
orderprotected void setSecondOrderId(java.lang.String newSecondOrderId)
newSecondOrderId
- The second order IDprotected void setSecondShip(java.lang.String newSecondShip)
newSecondShip
- The shipping charge for the second
orderprotected void setSecondShippingOverride(java.lang.String newSecondShippingOverride)
newSecondShippingOverride
- The flag indicating whether the
shipping charge field of second order is overridden.protected void setShopperId(java.lang.String newShopperId)
newShopperId
- The shopper IDpublic void validateParameters() throws ECApplicationException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If the XML does not contain the required
parameters