java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.returns.commands.ReturnItemDeleteCmdImpl
Default implementation of the controller command
ReturnItemDeleteCmd
interface. Delete a return mechandise
authorization (RMA) item.
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. ReturnItemDeleteCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Constructor Summary | |
---|---|
ReturnItemDeleteCmdImpl() ReturnItemDeleteCmdImpl constructor. |
Method Summary | |
---|---|
protected
void |
extendCommand() Extend the command here. |
protected
int |
getMe() This method is reserved for IBM internal use only. |
AccessVector |
getResources() Gets the vector of resources accessed by this command. |
protected
java.lang.String[] |
getRMAIds() Get the array of RMA ids being used. |
protected
boolean |
isAdminCommand() Is this command being called by a CSR (with forUser/forUserId)? |
void |
performExecute() Execute the command. |
void |
reset() Reset the command. |
void |
setRequestProperties(
TypedProperty aRequestProperties) Sets the request properties. |
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,
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,
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 ReturnItemDeleteCmdImpl()
Method Detail |
---|
protected void extendCommand() throws ECException
ECException
protected int getMe()
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
protected java.lang.String[] getRMAIds()
protected boolean isAdminCommand()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
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 class
AbstractECTargetableCommand
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
ControllerCommand
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
aRequestProperties
- request properties
ECApplicationException
public void validateParameters() throws ECException
Parameters
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_PARAMETER
InvalidParameterValueException
- 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