java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.returns.commands.CalculateReturnItemCreditForCatEntryCmdImpl
Default implementation of the
CalculateReturnItemCreditForCatEntryCmd
interface. 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:
Utilizes these access beans
Field Summary |
---|
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.returns.commands. CalculateReturnItemCreditForCatEntryCmd |
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 | |
---|---|
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. 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 |
Constructor Detail |
---|
public CalculateReturnItemCreditForCatEntryCmdImpl()
Method Detail |
---|
protected java.lang.Long getCatEntryId()
protected java.lang.Double getQuantity()
protected RMAAccessBean getRMAAB()
protected RMAItemAccessBean getRMAItemAB()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
public void setCatEntryId(java.lang.Long aCatEntryId)
setCatEntryId
in interface
CalculateReturnItemCreditForCatEntryCmd
aCatEntryId
- The catalog entry Id.public void setQuantity(java.lang.Double aQuantity)
setQuantity
in interface
CalculateReturnItemCreditForCatEntryCmd
aQuantity
- The quantity to be credited.public void setRMAAB(RMAAccessBean newRMAAB)
setRMAAB
in interface
CalculateReturnItemCreditForCatEntryCmd
newRMAAB
- The RMA access bean.public void setRMAItemAB(RMAItemAccessBean newRMAItemAB)
setRMAItemAB
in interface
CalculateReturnItemCreditForCatEntryCmd
newRMAItemAB
- Tha RMA item access bean.public void validateParameters() throws ECException
Parameters
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If there is no StoreAccessBean or there is
no catalog entry id or there is no RMAItemAccessBean or there is no
RMAccessBean or a quantity has not be specified , throws
com.ibm.commerce.exception.ECApplicationException with
ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECException