com.ibm.commerce.returns.commands
Class ApproveRefundAlwaysPolicyCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.command.BusinessPolicyCommandImpl
|
+--com.ibm.commerce.returns.commands.ApproveRefundAlwaysPolicyCmdImpl
- All Implemented Interfaces:
-
ApproveRefundPolicyCmd,
BusinessPolicyCommand,
ECCommand,
ECTargetableCommand,
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.
- See Also:
- Serialized
Form
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 |
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.
public void performExecute()
throws ECException
- Execute the command.
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
-
ECException
reset
public void reset()
- Reset the command.
-
- Overrides:
-
reset
in class
AbstractECTargetableCommand
setRMAAB
public void setRMAAB(RMAAccessBean newRMAAB)
- Set the RMA being returned/refunded.
-
- Specified by:
-
setRMAAB
in interface
ApproveRefundPolicyCmd
-
- Parameters:
newRMAAB
- 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
AbstractECTargetableCommand
-
-
ECException