public class ReturnProcessCmdImpl extends ReturnBaseCmdImpl implements ReturnProcessCmd
ReturnProcessCmd
interface.
Finalizes the agreement between the merchant and the customer as to the terms of a return merchandise authorization (RMA).
Parameters
RMAId
(mandatory)URL2
(optional)Behaviour
message_ERR_BAD_MISSING_CMD_PARAMETER
.
RMAGOODFOR
time frame has
expired for any RMA Item. If so, calls the ReturnPrepare command and a redirection will take
place to the RMAExpiryURL if it is specified. If the RMAExpiryURL parameter is not specified, then
ReturnProcess completes normally.
URL2
.
Utilizes these access beans
defaultCommandClassName, NAME
Constructor and Description |
---|
ReturnProcessCmdImpl()
ReturnProcessCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
AccessVector |
getResources()
Gets the vector of resources accessed by this command.
|
void |
performExecute()
Execute the command.
|
void |
reset()
Reset the command.
|
void |
validateParameters()
Check mandatory parameters.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, 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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public ReturnProcessCmdImpl()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
- Thrown if WebSphere Commerce problems happenpublic void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECApplicationException
- If the RMA is not in the prepared state
throws com.ibm.commerce.exception.ECApplicationException
with ECMessage.ECMessage._ERR_RMA_IN_INVALID_STATE_FOR_COMMAND
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void validateParameters() throws ECException
Parameters
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- If the RMA.status is not in the right state,(Process or edit)
throws com.ibm.commerce.exception.ECApplicationException
with ECMessage.ECMessage._ERR_RMA_IN_INVALID_STATE_FOR_COMMAND
ECApplicationException
- If there is no refundPolicyId or if no "approved" redirect URL has been specified,
throws com.ibm.commerce.exception.ECApplicationException
with ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECException