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

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.ApproveRefundPolicyCmd
defaultCommandClassName, NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
ApproveRefundAlwaysPolicyCmdImpl()
ApproveRefundAlwaysPolicyCmdImpl constructor.
Method Summary
protected RMAAccessBean getRMAAB()
Get the RMA access bean.
protected java.util.List getRMAItemABs()
Get the RMA item access bean list.
boolean isApproved()
Returns whether the refund is approved or not.
void performExecute()
Execute the command.
void reset()
Reset the command.
void setRMAAB(RMAAccessBean newRMAAB)
Set the RMA being returned/refunded.
void setRMAItemABs(java.util.List RMAItemABs)
Set the RMA items being refunded.
void validateParameters()
Check mandatory parameters.
Methods inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
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, setRequestProperties

Constructor Detail

ApproveRefundAlwaysPolicyCmdImpl

public ApproveRefundAlwaysPolicyCmdImpl()
ApproveRefundAlwaysPolicyCmdImpl constructor.
Method Detail

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 AbstractECTargetableCommand
Throws:
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
Throws:
ECException

Feedback