public class ReturnItemDeleteCmdImpl extends ReturnBaseCmdImpl implements ReturnItemDeleteCmd
ReturnItemDeleteCmd interface.
It deletes a return merchandise authorization (RMA) item.
| Name | Description |
|---|---|
RMAItemId(required) |
RMA item ID (this can be specified multiple times). |
outRMAName(optional) |
the name to use for the name-value pair which will be passed to the redirected URL. |
URL (required) |
the URL to be called when the command completes successfully. |
forUserId (optional) |
it is specified when it is called by a CSR. |
defaultCommandClassName, NAME| Constructor and Description |
|---|
ReturnItemDeleteCmdImpl()
This is the ReturnItemDeleteCmdImpl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AccessVector |
getResources()
This method gets the vector of resources accessed by this command.
|
void |
performExecute()
This method executes the main logic of the command.
|
void |
reset()
This method resets the command.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
This method sets the request properties of this command implementation.
|
void |
validateParameters()
This method checks the mandatory parameters.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic ReturnItemDeleteCmdImpl()
public AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECException.ECExceptionpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECApplicationException - If the RMA item has credits or receipts against it,
throws com.ibm.commerce.exception.ECApplicationException
with ECMessage.ECMessage._ERR_CANNOT_DELETE_RETURN_ITEMECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplaRequestProperties - the request properties.ECApplicationException.ECApplicationExceptionpublic void validateParameters()
throws ECException
Parameters
storeid
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECApplicationException - If there is no store id specified or there is no RMA item array or there is no
RMA item id is invalid, throws com.ibm.commerce.exception.ECApplicationException
with ECMessage._ERR_BAD_MISSING_CMD_PARAMETERInvalidParameterValueException - If there is no URL to be called on completion of the command, throws com.ibm.commerce.exception.InvalidParameterValueException
with ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECException