java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.returns.commands.ApproveReturnItemCmdImpl
Default implementation of the controller command
AdminReturnItem
interface.
Change the status of a return mechandise authorization (RMA) item based on the approval type.
Behaviour
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. ApproveReturnItemCmd |
cAutoApproval,
cManualApproval,
COPYRIGHT,
cPendingApproval,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
ApproveReturnItemCmdImpl() ApproveReturnItemCmdImpl constructor. |
Method Summary | |
---|---|
void |
performExecute() Execute the command. |
void |
reset() Reset the command. |
void |
setApprovalType(java.lang.Character newApprovalType) Set the approval type. |
void |
setDenyReasons(java.util.Vector RMAItemDenyReasons) Set the existing vector of RMA item deny reasons. |
void |
setRMAItemAB(
RMAItemAccessBean newRMAItemAB) Set the RMA Item access bean which will be approved. |
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 ApproveReturnItemCmdImpl()
Method Detail |
---|
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
public void setApprovalType(java.lang.Character newApprovalType)
setApprovalType
in interface
ApproveReturnItemCmd
newApprovalType
- The approval type.public void setDenyReasons(java.util.Vector RMAItemDenyReasons)
setDenyReasons
in interface
ApproveReturnItemCmd
RMAItemDenyReasons
- The vector of return deny reason
identifiers.public void setRMAItemAB(RMAItemAccessBean newRMAItemAB)
setRMAItemAB
in interface
ApproveReturnItemCmd
newRMAItemAB
- The RMA item access bean to be
approved.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If the RMAitem is null or if the approval
type is pending and there are no deny reasons specified, throws
com.ibm.commerce.exception.ECApplicationException with
ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECException