com.ibm.commerce.returns.commands
Class ApproveRefundAlwaysPolicyCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.command.BusinessPolicyCommandImpl
|
+--com.ibm.commerce.returns.commands.ApproveRefundAlwaysPolicyCmdImpl
- All Implemented Interfaces:
- ApproveRefundPolicyCmd, BusinessPolicyCommand, ECCommand, TaskCommand
- public class ApproveRefundAlwaysPolicyCmdImpl
- extends BusinessPolicyCommandImpl
- implements ApproveRefundPolicyCmd
Check to see if the refund for a return mechandise authorization (RMA) and its set of RMA items is approved.
This implementation always returns true.
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, 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.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
ApproveRefundAlwaysPolicyCmdImpl
public ApproveRefundAlwaysPolicyCmdImpl()
- ApproveRefundAlwaysPolicyCmdImpl constructor.
getRMAAB
protected RMAAccessBean getRMAAB()
- Get the RMA access bean.
- Returns:
- The RMA access bean.
getRMAItemABs
protected java.util.List getRMAItemABs()
- Get the RMA item access bean list.
- Returns:
- The list of RMA item access beans.
isApproved
public boolean isApproved()
- Returns whether the refund is approved or not.
- Specified by:
isApproved
in interface ApproveRefundPolicyCmd
- Returns:
- true if the refund is approved; false otherwise.
performExecute
public void performExecute()
throws ECException
- Execute the command.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
reset
public void reset()
- Reset the command.
- Overrides:
reset
in class AbstractECCommand
setRMAAB
public void setRMAAB(RMAAccessBean newRMAAB)
- Set the RMA being returned/refunded.
- Specified by:
setRMAAB
in interface ApproveRefundPolicyCmd
- Parameters:
anRMAAB
- The RMA access bean.
setRMAItemABs
public void setRMAItemABs(java.util.List RMAItemABs)
- Set the RMA items being refunded.
- Specified by:
setRMAItemABs
in interface ApproveRefundPolicyCmd
- Parameters:
RMAItemABs
- The list of RMA item access beans.
validateParameters
public void validateParameters()
throws ECException
- Check mandatory parameters.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-