|
||||||||
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.CSROrderAdjustmentUpdateCmdImpl
Updates the order level menu adjustments, eCoupons, and overrides the shipping charges for the order(s). Old coupons specified will be removed and replaced by the new ones.
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.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)
Generates common exception code. |
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 |
isSecondDirtyBit()
Returns true if any adjustment field in second order has been changed. |
void |
performExecute()
Performs the execution for creating a manual adjustment orderitem for order. |
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 |
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 |
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 |
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 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 overridenECException
- 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 order cannot be retrievedpublic 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 isSecondDirtyBit()
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 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 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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |