java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.returns.commands.ReturnCreditAndCloseScanCmdImpl
Default implementation of the controller command
ReturnCreditAndCloseScanCmd
interface.
Initiate credits and close approved (status 'APP') return mechandise authorizations (RMA). This command would typically be run as a scheduled job.
Parameters
Behaviour
Utilizes these access beans
Field Summary |
---|
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.returns.commands. ReturnCreditAndCloseScanCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Constructor Summary | |
---|---|
ReturnCreditAndCloseScanCmdImpl() ReturnCreditAndCloseScanCmdImpl constructor. |
Method Summary | |
---|---|
protected
boolean |
checkIfAllReceived(
RMAAccessBean theRMA) Check to see if all items to be received have been received. |
protected
boolean |
checkIfCredited(
RMAAccessBean anRMAAB, java.util.List theRMAItems) Check to see if the RMA has already been credited. |
protected
void |
closeRMA(
RMAAccessBean anRMAAB) Close an RMA. |
protected
void |
extendCommand() Extend the command. |
AccessVector |
getResources() Gets the vector of resources accessed by this command. |
protected
java.sql.Timestamp |
getTimestampNow() This will set the NOW timestamp. |
void |
performExecute() Execute the command. |
void |
reset() Reset the command. |
void |
validateParameters() Check mandatory parameters. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setRequestProperties,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
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 |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRequestProperties,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Constructor Detail |
---|
public ReturnCreditAndCloseScanCmdImpl()
Method Detail |
---|
protected boolean checkIfAllReceived(RMAAccessBean theRMA) throws ECSystemException
theRMA
- The RMA access bean to be checked.
ECSystemException
protected boolean checkIfCredited(RMAAccessBean anRMAAB, java.util.List theRMAItems) throws ECException
theRMAItems
- The list to be filled in with the RMA item
access beans.ECException
protected void closeRMA(RMAAccessBean anRMAAB) throws ECException
anRMAAB
- The RMA to close.ECException
protected void extendCommand() throws ECException
ECException
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
protected java.sql.Timestamp getTimestampNow()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If the StoreAccessBeanBean is not set
throws com.ibm.commerce.exception.ECApplicationException with
ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECException