public class CSROrderCommentsAddCmdImpl extends ToolsControllerCommandImpl implements CSROrderCommentsAddCmd
CSROrderCommentsAddCmd
command.
This command calls the following command:
This command uses the following AccessBeans:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
CSROrderCommentsAddCmdImpl()
CSROrderCommentsAddCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
callCSROrderCommentsNotifyCmd(java.lang.Long orderId)
Calls CSROrderCommentsNotify command to send comment to a specified email address.
|
java.lang.String |
getInComment()
Returns the order comment.
|
java.lang.String |
getIsNotifyShopper()
Returns the flag to indicate if there is a need to send the comment to the email address.
|
java.util.Hashtable |
getNLS()
Returns NLS properties.
|
java.lang.Long[] |
getOrderIds()
Returns the list of orders IDs which need to be added the order comments.
|
CommandContext |
getOrgCmdContext()
Returns original command context.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.lang.String |
getXmlfile()
Return the XML file.
|
void |
performExecute()
This method performs the execution to add comment to orders.
|
void |
setInComment(java.lang.String newInComment)
Set order comment.
|
void |
setIsNotifyShopper(java.lang.String notifyShopper)
Set the flag to indicate if the order comment needs to be emailed.
|
void |
setOrderIds(java.lang.Long[] newOrderIds)
Set Order IDs which needs to be canceled.
|
void |
setReceiverEmailAddress(java.lang.String newReceiverEmailAddr)
Set the email address.
|
void |
validateParameters()
Sets the NLS properties and parse the input XML parameters.
|
getViewInputProperties, setRequestProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public CSROrderCommentsAddCmdImpl()
public void callCSROrderCommentsNotifyCmd(java.lang.Long orderId) throws ECException
orderId
- The order ID.ECException
- if the comment can not be sent.public java.lang.String getInComment()
public java.lang.String getIsNotifyShopper()
public java.util.Hashtable getNLS()
public java.lang.Long[] getOrderIds()
public CommandContext getOrgCmdContext()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
- If the resource can not be retrieved.public java.lang.String getXmlfile()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- if comment can not be sent.public void setInComment(java.lang.String newInComment)
newInComment
- The order comment.public void setIsNotifyShopper(java.lang.String notifyShopper)
notifyShopper
- The flag to indicate if the order comment needs to be emailed.public void setOrderIds(java.lang.Long[] newOrderIds)
newOrderIds
- The order IDs.public void setReceiverEmailAddress(java.lang.String newReceiverEmailAddr)
newReceiverEmailAddr
- The email address.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- if parameter is invalid.