|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.inventory.commands.ReturnReasonCodeCreateCmdImpl
Create a new return reason.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
Fields inherited from interface com.ibm.commerce.inventory.commands.ReturnReasonCodeCreateCmd |
defaultCommandClassName, NAME |
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 interface com.ibm.commerce.command.ControllerCommand |
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, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public ReturnReasonCodeCreateCmdImpl()
Method Detail |
protected java.lang.String getLanguageId()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
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 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.public void performExecute() throws ECException
performExecute
in interface ECCommand
ECException
- 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
com.ibm.commerce.exception.ECApplicationException.
- If the
XMLObject cannot be parsed as expected, throw ECApplicationException.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |