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, 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, 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 ReturnItemDeleteCmdImpl()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException.
ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECApplicationException
- If the RMA item has credits or receipts against it,
throws com.ibm.commerce.exception.ECApplicationException
with ECMessage.ECMessage._ERR_CANNOT_DELETE_RETURN_ITEMECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
aRequestProperties
- the request properties.ECApplicationException.
ECApplicationException
public void validateParameters() throws ECException
Parameters
storeid
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- 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