public abstract class CalculateReturnItemAdjustmentPolicyCmdImpl extends BusinessPolicyCommandImpl implements CalculateReturnItemAdjustmentPolicyCmd
Behaviour
defaultCommandClassName, NAME
Constructor and Description |
---|
CalculateReturnItemAdjustmentPolicyCmdImpl()
ReturnItemCreditCalculateCmdImpl constructor comment.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getAdjustment()
Get the automatically calculated adjustment for the returned/refunded item.
|
void |
performExecute()
Execute the command.
|
void |
reset()
reset the command.
|
void |
setOrderItemAB(OrderItemAccessBean anOrderItemAB)
(Optional) Set the orderItem being returned/refunded.
|
void |
setRequestProperties(TypedProperty requestProperties)
Set the request properties for the policy.
|
void |
setRMAItemAB(RMAItemAccessBean anRMAItemAB)
Set the RMA Item access bean which will have its adjustment updated.
|
void |
validateParameters()
Check mandatory parameters.
|
getPolicyId, getRequestProperties, setPolicyId
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, 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
getPolicyId, getRequestProperties, setPolicyId
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 CalculateReturnItemAdjustmentPolicyCmdImpl()
public java.math.BigDecimal getAdjustment()
getAdjustment
in interface CalculateReturnItemAdjustmentPolicyCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setOrderItemAB(OrderItemAccessBean anOrderItemAB)
setOrderItemAB
in interface CalculateReturnItemAdjustmentPolicyCmd
anOrderItemAB
- the orderItem access bean.public void setRequestProperties(TypedProperty requestProperties)
setRequestProperties
in interface BusinessPolicyCommand
setRequestProperties
in class BusinessPolicyCommandImpl
requestProperties
- The request propertiespublic void setRMAItemAB(RMAItemAccessBean anRMAItemAB)
setRMAItemAB
in interface CalculateReturnItemAdjustmentPolicyCmd
anRMAItemAB
- RMA item access bean.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException