public class AutoApproveReturnItemByDaysPolicyCmdImpl extends BusinessPolicyCommandImpl implements AutoApproveReturnItemPolicyCmd
days
property is specified then all items will pass this approval check.
(that is, there would be no limitation on when items could be returned).
If the ship date of the item cannot be determined (from the ORDSHIPHST table). Then the item will fail this test, and not be automatically approved.
If this automatic approval test is unsuccessful then the deny reason 'EXCDATE' will be logged for the RMA item.
defaultCommandClassName, NAME
Constructor and Description |
---|
AutoApproveReturnItemByDaysPolicyCmdImpl()
AutoApproveReturnItemByDaysPolicyCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getRMAItemDenyReasonList()
Get the deny reason list.
|
void |
performExecute()
Execute the command.
|
void |
reset()
This method is called after a command has been executed.
|
void |
setRequestProperties(TypedProperty requestProperties)
This method sets the request properties for the policy.
|
void |
setRMAItemAB(RMAItemAccessBean RMAItemAB)
This method sets the RMA item being accessed.
|
void |
setRMAItemDenyReasonList(java.util.List newRMAItemDenyReasons)
This method sets the list of deny reason codes for this RMA item.
|
void |
validateParameters()
This method verifies the input 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 AutoApproveReturnItemByDaysPolicyCmdImpl()
public java.util.List getRMAItemDenyReasonList()
getRMAItemDenyReasonList
in interface AutoApproveReturnItemPolicyCmd
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()
AbstractECTargetableCommand
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setRequestProperties(TypedProperty requestProperties)
setRequestProperties
in interface BusinessPolicyCommand
setRequestProperties
in class BusinessPolicyCommandImpl
requestProperties
- The request properties.public void setRMAItemAB(RMAItemAccessBean RMAItemAB)
setRMAItemAB
in interface AutoApproveReturnItemPolicyCmd
RMAItemAB
- The RMA item access bean.public void setRMAItemDenyReasonList(java.util.List newRMAItemDenyReasons)
setRMAItemDenyReasonList
in interface AutoApproveReturnItemPolicyCmd
newRMAItemDenyReasons
- The list of deny reason codes applicable to this RMA item.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException