com.ibm.commerce.tools.optools.returns.commands
Class CSRReturnRestoreCopyCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
|
+--com.ibm.commerce.tools.optools.order.commands.CSRBaseControllerCommandImpl
|
+--com.ibm.commerce.tools.optools.returns.commands.CSRReturnBaseCmdImpl
|
+--com.ibm.commerce.tools.optools.returns.commands.CSRReturnRestoreCopyCmdImpl
- All Implemented Interfaces:
-
AccCommand,
ControllerCommand,
CSRReturnRestoreCopyCmd,
ECCommand,
ECTargetableCommand,
ToolsControllerCommand
- public class CSRReturnRestoreCopyCmdImpl
- extends
CSRReturnBaseCmdImpl
- implements
CSRReturnRestoreCopyCmd
Attempts to revert return to its pre-edit state. Called from the edit return
notebook when the user presses the cancel button.
Utilizes these access beans
- See Also:
-
CSRReturnCreateCopyCmdImpl
,
Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
protected
RMAStorage |
savedRMAStorage
Data structure that stores the return data. |
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,
reset,
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,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
-
Constant Field Values
savedRMAStorage
protected RMAStorage savedRMAStorage
- Data structure that stores the return data.
CSRReturnRestoreCopyCmdImpl
public CSRReturnRestoreCopyCmdImpl()
executeReturnRestoreCopy
protected void executeReturnRestoreCopy()
throws java.lang.Exception
- Restores copies of access beans for a Return. Loads return data into
various access beans from the cached version of the return data in the wcs
session. If restore fails, return data may be corrupted.
-
- Throws:
java.lang.Exception
protected void parseInputXMLObject(java.util.Hashtable xmlRoot)
throws ECApplicationException
- Extracts and stores data passed in the XML parameter. Calls setReturnId
with returnId.
-
- Specified by:
-
parseInputXMLObject
in class
CSRReturnBaseCmdImpl
-
- Parameters:
xmlRoot
- Representation of the xml data stream as a java
Hashtable
- Throws:
-
ECApplicationException
- If returnId is null or
empty
public void performExecute()
throws ECException
- Calls executeReturnRestoreCopy. Sets up the redirect url by putting the
redirect url parameter into the response property
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
- Throws:
-
ECException
- If a general exception occurs.