public class CreditReturnItemCmdImpl extends TaskCommandImpl implements CreditReturnItemCmd
CreditReturnItemCmdImpl
interface.
Activate the refund for a return merchandise authorization (RMA) and its items if there is one and it is approved.
Behaviour
CREDITDATE
field of each RMA item
is filled in with the current timestamp.
Utilizes these access beans
defaultCommandClassName, NAME
Constructor and Description |
---|
CreditReturnItemCmdImpl()
CreditReturnItemCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
Execute the command.
|
void |
reset()
Reset the command.
|
void |
setRMAAB(RMAAccessBean anRMAAB)
Set the RMA being accessed.
|
void |
setRMAItemABs(java.util.Vector anRMAItemABList)
Set the RMA items being credited.
|
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 CreditReturnItemCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- Thrown if WebSphere Commerce problems happenpublic void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setRMAAB(RMAAccessBean anRMAAB)
setRMAAB
in interface CreditReturnItemCmd
anRMAAB
- The RMA access bean.public void setRMAItemABs(java.util.Vector anRMAItemABList)
setRMAItemABs
in interface CreditReturnItemCmd
anRMAItemABList
- The RMA item access bean vector.public void validateParameters() throws ECException
Parameters
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If there is no RMAABean or there is no vector of RMAItemAccessBean, throws com.ibm.commerce.exception.ECApplicationException
with ECMessage._ERR_BAD_MISSING_CMD_PARAMETER