java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.inventory.commands.ReturnReasonCodeUpdateCmdImpl
Update an existing return reason.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.inventory.commands. ReturnReasonCodeUpdateCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.tools.common. ECToolsConstants |
EC_LINE_SEPARATOR,
EC_TOOLS_FULFILLMENT_CENTER_ID,
EC_TOOLS_MERCHANT_CENTER_URL,
EC_TOOLS_STORE_LANGUAGE_URL,
EC_TOOLS_STORES_ACCESS_CONTROL_REQUIRED,
EC_TOOLS_STORES_EMPTY,
EC_TOOLS_STORES_NO_ACCESS,
EC_TOOLS_STORES_NOT_ADMINISTRATOR,
EC_XML,
EC_XMLFILE,
EC_XMLFILEOBJECT,
EC_XMLOBJECT,
EC_XMLSTRING |
Constructor Summary | |
---|---|
ReturnReasonCodeUpdateCmdImpl() |
Method Summary | |
---|---|
protected
java.lang.String |
getLanguageId() Return the language identifier. |
AccessVector |
getResources() Gets the access vector accessed by this command. |
protected
java.lang.String |
getReturnReasonCode() Return the return reason code. |
protected
java.lang.String |
getReturnReasonDescription() Return the description of the reason for the return. |
protected
java.lang.String |
getReturnReasonId() Return the return reason code identifier. |
protected
java.lang.String |
getStoreentId() Return the store entity identifer. |
protected
void |
handleException(java.lang.Exception e,
java.lang.String methodName) Formats an ECException based on the input exception value. |
protected
void |
handleSubmitError(
ECException e) This method constructs and returns the error message. |
void |
performExecute() This method performs the execution of updating the return reason. |
protected
void |
setLanguageId(java.lang.String newLanguageId) Set the language identifier. |
void |
setReturnReasonCode(java.lang.String newReturnReasonCode) Set the return reason code. |
void |
setReturnReasonDescription(java.lang.String newReturnReasonDescription) Set the description of the reason for the return. |
void |
setReturnReasonId(java.lang.String newReturnReasonId) Return the return reason code identifier. |
protected
void |
setStoreentId(java.lang.String newStoreentId) Set the store entity identifer. |
void |
validateParameters() This method gets the information of the return reason to be updated and sets the information into the command local variable. |
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl |
getViewInputProperties,
setRequestProperties |
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. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public ReturnReasonCodeUpdateCmdImpl()
Method Detail |
---|
protected java.lang.String getLanguageId()
protected java.lang.String getReturnReasonCode()
protected java.lang.String getReturnReasonDescription()
protected java.lang.String getReturnReasonId()
protected java.lang.String getStoreentId()
protected void setLanguageId(java.lang.String newLanguageId)
newLanguageId
- java.lang.Stringpublic void setReturnReasonCode(java.lang.String newReturnReasonCode)
setReturnReasonCode
in interface
ReturnReasonCodeUpdateCmd
newReturnReasonCode
- java.lang.Stringpublic void setReturnReasonDescription(java.lang.String newReturnReasonDescription)
setReturnReasonDescription
in interface
ReturnReasonCodeUpdateCmd
newReturnReasonDescription
-
java.lang.Stringpublic void setReturnReasonId(java.lang.String newReturnReasonId)
setReturnReasonId
in interface
ReturnReasonCodeUpdateCmd
newReturnReasonId
- java.lang.Stringprotected void setStoreentId(java.lang.String newStoreentId)
newStoreentId
- java.lang.Stringpublic void validateParameters() throws ECException
Exceptions:
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
com.ibm.commerce.exception.ECApplicationException.
- If the
XMLObject cannot be parsed as expected, throw ECApplicationException.ECException
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
Exceptions:
com.ibm.commmerce.exception.ECException
- which can be thrown
for several reasons such as FinderException, CreateException, RemoteException,
NamingExceptionECException
public void performExecute() throws ECException
This method uses the following AccessBean:
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- if receive a FinderExceptionprotected void handleException(java.lang.Exception e, java.lang.String methodName) throws ECException
e
- Exception - The exception instance to be formatted.methodName
- String - The name of the method from which this
method was called.ECException
- - could be one of many different exceptions: ECApplicationException.
RemoteException, CreateException, FinderException, or
NamingException.protected void handleSubmitError(ECException e) throws ECApplicationException
com.ibm.commerce.exception.ECApplicationException.
- Throw
ECApplicationException with the newly constructed message.
ECApplicationException