com.ibm.commerce.returns.commands
Class ReturnUpdateCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.returns.commands.ReturnUpdateCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ReturnUpdateCmd
- public class ReturnUpdateCmdImpl
- extends ControllerCommandImpl
- implements ReturnUpdateCmd
Default implementation of the controller command ReturnUpdateCmd interface. Update a return mechandise authorization (RMA).
Parameters
- RMAId (mandatory)
- Identifier of the RMA that is to be updated.
- URL (mandatory)
- URL to redirect to.
- storeId (mandatory)
- Identifier of the store that owns the RMA.
Behaviour
- If the comment parameter is specified then the COMMENTS field of the RMA is changed.
- 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, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, 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 |
ReturnUpdateCmdImpl
public ReturnUpdateCmdImpl()
- ReturnUpdateCmdImpl constructor.
getComment
protected java.lang.String getComment()
- Get the comments string.
-
- Returns:
- The comment.
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.
- Throws:
- ECException
performExecute
public void performExecute()
throws ECException
- Execute the command.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException
reset
public void reset()
- Reset the command.
-
- Overrides:
- reset in class AbstractECTargetableCommand
setComment
protected void setComment(java.lang.String newComment)
- Set the RMA comment.
-
- Parameters:
- newComment - The RMA comment.
validateParameters
public void validateParameters()
throws ECException
- Check mandatory parameters.
Parameters
- RMAId (mandatory)
- Identifier of the RMA that is to be updated.
- URL (mandatory)
- URL to redirect to.
- storeId (mandatory)
- Identifier of the store that owns the RMA.
-
- Specified by:
- validateParameters in interface ECCommand
- Overrides:
- validateParameters in class AbstractECTargetableCommand
-
- Throws:
- ECApplicationException - If there is no RMA id specified or there is no URL to redirect specified or there is no store id specified, throws com.ibm.commerce.exception.ECApplicationException with ECMessage._ERR_BAD_MISSING_CMD_PARAMETER
- InvalidParameterValueException - If the RMA id specified or the URL to redirect specified or the store id specified are not valid, throws com.ibm.commerce.exception.InvalidParameterValueException with ECMessage._ERR_BAD_MISSING_CMD_PARAMETER
- ECException
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.