public class ApproveReturnItemCmdImpl extends TaskCommandImpl implements ApproveReturnItemCmd
AdminReturnItem
interface.
Change the status of a return merchandise authorization (RMA) item based on the approval type.
Behaviour
Utilizes these access beans
cAutoApproval, cManualApproval, cPendingApproval, defaultCommandClassName, NAME
Constructor and Description |
---|
ApproveReturnItemCmdImpl()
ApproveReturnItemCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
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 return RMA item deny reasons.
|
void |
setRMAItemAB(RMAItemAccessBean newRMAItemAB)
Set the RMA Item access bean which will be approved.
|
void |
validateParameters()
Check mandatory parameters.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public ApproveReturnItemCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
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