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.ReturnReasonCodeCreateCmdImpl
Create a new 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. ReturnReasonCodeCreateCmd |
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 | |
---|---|
ReturnReasonCodeCreateCmdImpl() |
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 |
getReturnReasonType() Return the type of return reason code. |
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 creating a new 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. |
protected
void |
setReturnReasonId(java.lang.String newReturnReasonId) Set the return reason code identifier. |
void |
setReturnReasonType(java.lang.String newReturnReasonType) Set the type of return reason code. |
protected
void |
setStoreentId(java.lang.String newStoreentId) Set the store entity identifer. |
void |
validateParameters() This method gets the information of the new return reason to be created 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 ReturnReasonCodeCreateCmdImpl()
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 getReturnReasonType()
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
ReturnReasonCodeCreateCmd
newReturnReasonCode
- java.lang.Stringpublic void setReturnReasonDescription(java.lang.String newReturnReasonDescription)
setReturnReasonDescription
in interface
ReturnReasonCodeCreateCmd
newReturnReasonDescription
-
java.lang.Stringprotected void setReturnReasonId(java.lang.String newReturnReasonId)
newReturnReasonId
- java.lang.Stringpublic void setReturnReasonType(java.lang.String newReturnReasonType)
setReturnReasonType
in interface
ReturnReasonCodeCreateCmd
newReturnReasonType
- java.lang.Stringprotected void setStoreentId(java.lang.String newStoreentId)
newStoreentId
- java.lang.Stringpublic void validateParameters() throws ECException
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
This method uses the following AccessBean:
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
Exceptions
public void performExecute() throws ECException
This method uses the following AccessBean:
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
protected 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