com.ibm.commerce.returns.commands
Class CalculateReturnItemCreditForCatEntryCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.returns.commands.CalculateReturnItemCreditForCatEntryCmdImpl
All Implemented Interfaces:
CalculateReturnItemCreditForCatEntryCmd, ECCommand, TaskCommand

public class CalculateReturnItemCreditForCatEntryCmdImpl
extends TaskCommandImpl
implements CalculateReturnItemCreditForCatEntryCmd

Calculate the CREDITAMOUNT, the ADJUSTMENTCREDIT and any charges against a catalog entry return mechandise authorization (RMA) item. This applies to both RMA items which don't reference an order item and RMA items which are kit parts. This implementation calculates the following values:


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.returns.commands.CalculateReturnItemCreditForCatEntryCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
CalculateReturnItemCreditForCatEntryCmdImpl()
          CalculateReturnItemCreditForCatEntryCmdImpl constructor.
 
Method Summary
protected  java.lang.Long getCatEntryId()
          Returns catalog entry Id.
protected  java.lang.Double getQuantity()
          Get the quantity.
protected  RMAAccessBean getRMAAB()
          Get the RMA access bean..
protected  RMAItemAccessBean getRMAItemAB()
          Get the RMA item access bean.
 void performExecute()
          Execute the command.
 void reset()
          Reset the command.
 void setCatEntryId(java.lang.Long aCatEntryId)
          Set the catEntry Id.
 void setQuantity(java.lang.Double aQuantity)
          Set the quantity to be credited.
 void setRMAAB(RMAAccessBean newRMAAB)
          Set the RMA for which the refund is being requested.
 void setRMAItemAB(RMAItemAccessBean newRMAItemAB)
          Set the RMA Item access bean which will have its amounts updated.
 void validateParameters()
          Check mandatory parameters.
 
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
 

Constructor Detail

CalculateReturnItemCreditForCatEntryCmdImpl

public CalculateReturnItemCreditForCatEntryCmdImpl()
CalculateReturnItemCreditForCatEntryCmdImpl constructor.
Method Detail

getCatEntryId

protected java.lang.Long getCatEntryId()
Returns catalog entry Id.
Returns:
catalog entry ID

getQuantity

protected java.lang.Double getQuantity()
Get the quantity.
Returns:
The quantity being returned.

getRMAAB

protected RMAAccessBean getRMAAB()
Get the RMA access bean..
Returns:
The RMA access bean.

getRMAItemAB

protected RMAItemAccessBean getRMAItemAB()
Get the RMA item access bean.
Returns:
The RMA item access bean.

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

setCatEntryId

public void setCatEntryId(java.lang.Long aCatEntryId)
Set the catEntry Id.
Specified by:
setCatEntryId in interface CalculateReturnItemCreditForCatEntryCmd
Parameters:
aCatEntryId - The catalog entry Id.

setQuantity

public void setQuantity(java.lang.Double aQuantity)
Set the quantity to be credited.
Specified by:
setQuantity in interface CalculateReturnItemCreditForCatEntryCmd
Parameters:
aQuantity - The quantity to be credited.

setRMAAB

public void setRMAAB(RMAAccessBean newRMAAB)
Set the RMA for which the refund is being requested.
Specified by:
setRMAAB in interface CalculateReturnItemCreditForCatEntryCmd
Parameters:
newRMAAB - The RMA access bean.

setRMAItemAB

public void setRMAItemAB(RMAItemAccessBean newRMAItemAB)
Set the RMA Item access bean which will have its amounts updated.
Specified by:
setRMAItemAB in interface CalculateReturnItemCreditForCatEntryCmd
Parameters:
newRMAItemAB - Tha RMA item access bean.

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. -