java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.command.BusinessPolicyCommandImpl
com.ibm.commerce.returns.commands.AutoApproveReturnItemByDaysPolicyCmdImpl
This is an automatic approval policy implementation based on the number of days since the item was shipped. The property passed to this policy may be of the following form:
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.
Field Summary |
Fields inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl |
policyId, requestProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.returns.commands.AutoApproveReturnItemPolicyCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
AutoApproveReturnItemByDaysPolicyCmdImpl() AutoApproveReturnItemByDaysPolicyCmdImpl constructor. |
Method Summary | |
protected void | autoApproveRMAItem() Calculate whether the RMA item can be approved programatically based on the number of days since the item was shipped. |
protected void | determineDenyReason(java.lang.String denyCode) Log a reason for autoapprove denial. |
protected java.lang.Integer | getDays() Get the number of days in the return period. |
java.util.List | getRMAItemDenyReasonList() Get the deny reason list. |
void | performExecute() Execute the command. |
void | reset() This method should be called after a command has been executed to reset its states variables. |
void | setRequestProperties(TypedProperty requestProperties) Set the request properties for the policy. |
void | setRMAItemAB(RMAItemAccessBean RMAItemAB) Set the RMA item being accessed. |
void | setRMAItemDenyReasonList(java.util.List newRMAItemDenyReasons) Set the list of deny reason codes for this RMA item. |
void | validateParameters() Performs parameter checking. |
Methods inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl |
getPolicyId, getRequestProperties, setPolicyId |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, 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.BusinessPolicyCommand |
getPolicyId, getRequestProperties, setPolicyId |
Constructor Detail |
public AutoApproveReturnItemByDaysPolicyCmdImpl()
Method Detail |
protected void autoApproveRMAItem() throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException, ECException
protected void determineDenyReason(java.lang.String denyCode)
protected java.lang.Integer getDays()
public java.util.List getRMAItemDenyReasonList()
public void performExecute() throws ECException
public void reset()
public void setRequestProperties(TypedProperty requestProperties)
public void setRMAItemAB(RMAItemAccessBean RMAItemAB)
public void setRMAItemDenyReasonList(java.util.List newRMAItemDenyReasons)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.