com.ibm.commerce.returns.commands
Class ReturnItemDeleteCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.returns.commands.ReturnItemDeleteCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ReturnItemDeleteCmd

public class ReturnItemDeleteCmdImpl
extends ControllerCommandImpl
implements ReturnItemDeleteCmd

Default implementation of the controller command ReturnItemDeleteCmd interface. Delete a return mechandise authorization (RMA) item.

Utilizes these access beans

See Also:
Serialized Form

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

ReturnItemDeleteCmdImpl

public ReturnItemDeleteCmdImpl()
ReturnItemDeleteCmdImpl constructor.
Method Detail

extendCommand

protected void extendCommand()
                      throws ECException
Extend the command here. This implementation calls the task command ExtendReturnItemDeleteCmd.
ECException

getMe

protected int getMe()
This method is reserved for IBM internal use only.

getResources

public AccessVector getResources()
                          throws ECException
Gets the vector of resources accessed by this command.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
The vector of resource action pairs - RMA access bean list.
ECException

getRMAIds

protected java.lang.String[] getRMAIds()
Get the array of RMA ids being used.
Returns:
The RMA id array.

isAdminCommand

protected boolean isAdminCommand()
Is this command being called by a CSR (with forUser/forUserId)?
Returns:
true if called by a CSR; false otherwise.

performExecute

public void performExecute()
                    throws ECException
Execute the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECApplicationException - If the RMA item has credits or receipts against it, throws com.ibm.commerce.exception.ECApplicationException with ECMessage.ECMessage._ERR_CANNOT_DELETE_RETURN_ITEM
ECException

reset

public void reset()
Reset the command.
Overrides:
reset in class AbstractECTargetableCommand

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperties)
                          throws ECApplicationException
Description copied from interface: ControllerCommand
Sets the request properties. The WebController calls this method before invoking the execute method in this command to set the request properties for this command. It is the responsibility of the implementer of the ControllerCommand to extract the required input parameters from the request properties and perform parameter checking.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Parameters:
aRequestProperties - request properties
ECApplicationException

validateParameters

public void validateParameters()
                        throws ECException
Check mandatory parameters. Checks the following parameters:

Parameters