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, Protectable, ReturnItemDeleteCmd
- public class ReturnItemDeleteCmdImpl
- extends ControllerCommandImpl
- implements ReturnItemDeleteCmd
Default implementation of the controller command ReturnItemDeleteCmd interface. Delete a return mechandise authorization (RMA) item.
- Check to see if RMA exists. If not, return an error.
- If RMA item has receipts or credits then don't delete the RMA item and throw a com.ibm.commerce.exception.ECApplicationException with ECMessage.ECMessage._ERR_CANNOT_DELETE_RETURN_ITEM
- Delete RMA item
Utilizes these access beans
- See Also:
- Serialized Form
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.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
ReturnItemDeleteCmdImpl
public ReturnItemDeleteCmdImpl()
- ReturnItemDeleteCmdImpl constructor.
extendCommand
protected void extendCommand()
throws ECException
- Extend the command here. This implementation calls the task command ExtendReturnItemDeleteCmd.
-
- Throws:
- 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.
- Throws:
- 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
-
- Throws:
- ECApplicationException
validateParameters
public void validateParameters()
throws ECException
- Check mandatory parameters. Checks the following parameters:
Parameters
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.