public class ValidateShippingAdjustmentCmdImpl extends TaskCommandImpl implements ValidateShippingAdjustmentCmd
(abOrderItem.getPrepareFlagsInEntityType().intValue() & OrderConstants.PREPAGEFLAGS_SHIPPING_ADJUSTED) != OrderConstants.PREPAGEFLAGS_SHIPPING_ADJUSTED
,
this mean the shopping cart changed after the CSR gave the shipping adjustment.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ValidateShippingAdjustmentCmdImpl()
The default constructor of ValidateShippingAdjustmentCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasShoppingCartChanged()
Gets the flag which indicates whether the Service Representative should be warned,
that items have been added to the cart since the shipping adjustment has been applied.
|
void |
performExecute()
The main business logic to execute the command.
|
void |
setOrder(java.lang.Long orderId)
Sets the OrderId for which this command will evaluate for shipping adjustment inconsistencies.
|
void |
validateParameters()
Validates input parameters.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, 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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public ValidateShippingAdjustmentCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- for any kind of adjustment exceptionpublic void setOrder(java.lang.Long orderId)
setOrder
in interface ValidateShippingAdjustmentCmd
orderId
- public boolean hasShoppingCartChanged()
hasShoppingCartChanged
in interface ValidateShippingAdjustmentCmd
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException