com.ibm.commerce.returns.commands
Class ReturnItemComponentReceiveCmdImpl
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.ReturnItemComponentReceiveCmdImpl
- All Implemented Interfaces:
-
AccCommand,
ControllerCommand,
ECCommand,
ECTargetableCommand,
ReturnItemComponentReceiveCmd,
ToolsControllerCommand
- public class ReturnItemComponentReceiveCmdImpl
- extends
ToolsControllerCommandImpl
- implements
ReturnItemComponentReceiveCmd
Default implementation of the controller command
ReturnItemComponentReceiveCmd
interface.
Record the receipt of a returned item.
Behaviour
- Create a record in the RTNRECEIPT table.
- 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 |
ReturnItemComponentReceiveCmdImpl
public ReturnItemComponentReceiveCmdImpl()
- ReturnItemComponentReceiveCmdImpl 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 parseInputNameValuePairs()
throws ECException
- Parse input name value pairs.
-
-
ECException
parseMultiplesFromXML
protected void parseMultiplesFromXML(java.util.Hashtable xmlRoot)
throws ECApplicationException
- Extract the paramter which are specified with "_i" in the name
value pair arguments, and put them in a common format
-
- Parameters:
xmlRoot
- the base of the XML input
-
ECApplicationException
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 mandatory parameters.
- storeid (required)
- RMAItemCmpId (required)
- quantity (required)
- versionSpcID (optional)
- 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