com.ibm.commerce.tools.optools.returns.commands
Class CSRDisplayRefundByCreditCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.command.BusinessPolicyCommandImpl
                          |
                          +--com.ibm.commerce.tools.optools.returns.commands.CSRDisplayRefundPaymentInfoCmdImpl
                                |
                                +--com.ibm.commerce.tools.optools.returns.commands.CSRDisplayRefundByCreditCmdImpl
All Implemented Interfaces:
BusinessPolicyCommand, CSRDisplayRefundPaymentInfoCmd, ECCommand, ECTargetableCommand, TaskCommand

public class CSRDisplayRefundByCreditCmdImpl
extends CSRDisplayRefundPaymentInfoCmdImpl

Policy command which retrieves credit line information for a return. This command gets executed for RMAs whose refund policy type is set to 'Credit Line' meaning the credit will go to the line of credit account of the organization who owns the RMA.

Utilizes these access beans

See Also:
CreateAccountCmdImpl, Serialized Form

Field Summary
 
Fields inherited from class com.ibm.commerce.tools.optools.returns.commands. CSRDisplayRefundPaymentInfoCmdImpl
creditAccountInformation, iRMA
 
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.tools.optools.returns.commands. CSRDisplayRefundPaymentInfoCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
CSRDisplayRefundByCreditCmdImpl()
           
 
Method Summary
 void performExecute()
          Executes the policy command.
 void populateCreditAccountInformation()
          Populates refund mechanism information with credit line specific data.
 void validateParameters()
          Validate input parameters.
 
Methods inherited from class com.ibm.commerce.tools.optools.returns.commands. CSRDisplayRefundPaymentInfoCmdImpl
addInfoToVector, getCreditAccountInformation, getRMA, setRMA
 
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, reset, 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

CSRDisplayRefundByCreditCmdImpl

public CSRDisplayRefundByCreditCmdImpl()
Method Detail

performExecute

public void performExecute()
                    throws ECException
Executes the policy command. Calls populateCreditAccountInformation.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

populateCreditAccountInformation

public void populateCreditAccountInformation()
                                      throws ECException
Populates refund mechanism information with credit line specific data.
Throws:
ECException

validateParameters

public void validateParameters()
                        throws ECException
Validate input parameters. Requires that RMA is set.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - If no RMA is passed in, throw ECApplicationException specifying _ERR_BAD_MISSING_CMD_PARAMETER
See Also:
ECCommand.validateParameters()