com.ibm.commerce.returns.commands
Class ReturnItemComponentDisposeCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
|
+--com.ibm.commerce.returns.commands.ReturnItemComponentDisposeCmdImpl
- All Implemented Interfaces:
-
AccCommand,
ControllerCommand,
ECCommand,
ECTargetableCommand,
ReturnItemComponentDisposeCmd,
ToolsControllerCommand
- public class ReturnItemComponentDisposeCmdImpl
- extends
ToolsControllerCommandImpl
- implements
ReturnItemComponentDisposeCmd
Default implementation of the controller command
ReturnItemComponentDisposeCmd
interface.
Record disposition of a returned item.
Behaviour
- The amount being disposed is recorded against a return receipt
(DISPOSITIONEDQTY field of the RTNRECEIPT table).
- A record is created in the RTNRCPTDSP table for the disposed amount.
- If the disposition code indicates that the item is to be returned to the
inventory (the RETURNTOINVENTORY field is set to 'Y') then the task
command ReturnItemToInventoryCmd is called.
- The URL is setup for redirection.
*
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,
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,
setRequestProperties,
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 |
ReturnItemComponentDisposeCmdImpl
public ReturnItemComponentDisposeCmdImpl()
- ReturnItemComponentDisposeCmdImpl constructor.
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.
-
ECException
public void performExecute()
throws ECException
- Execute the command.
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
-
ECException
reset
public void reset()
- Reset the command.
-
- Overrides:
-
reset
in class
AbstractECTargetableCommand
validateParameters
public void validateParameters()
throws ECException
- Check parameters.
- storeid (required)
- receiptId (required)
- quantity (required)
- reason (optional)
- dispositonCode (required)
- comment (optional)
- date disposed (optional)
- URL (required)
- XML (optional)
-
- Specified by:
-
validateParameters
in interface
ECCommand
- Overrides:
-
validateParameters
in class
AbstractECTargetableCommand
-
- Throws:
-
ECApplicationException
- If required parameters not specified or
parameters are invalid, throws
com.ibm.commerce.exception.ECApplicationException with
ECMessage._ERR_BAD_MISSING_CMD_PARAMETER
-
ECException