public class CSROrderCancelCmdImpl extends ToolsControllerCommandImpl implements CSROrderCancelCmd
CSROrderCancelCmd
command.
This command calls the following command(s):
This command uses the following AccessBean(s):
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
DIALOG_URL
The return url of a dialog widget.
|
java.lang.String |
xmlFile
The xmlFile of the framework widget.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
CSROrderCancelCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEmailAddress()
Gets the email address.
|
java.lang.String |
getNewComment()
Gets the comment needed to add to the order.
|
java.util.Hashtable |
getNLS()
Returns NLS properties.
|
java.lang.String |
getNotifyMerchant()
Gets the notifyMerchant value to be used in AdminOrderCancelCmd.
|
java.lang.String |
getNotifyShopper()
Gets the notifyShopper value to be used in AdminOrderCancelCmd.
|
java.util.Vector |
getOrderIds()
Returns list of order IDs.
|
CommandContext |
getOrgCmdContext()
Returns original command context.
|
java.lang.String |
getRedirectURL()
Returns the redirect URL.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.lang.String |
getSuccessMsg()
Returns the successful message.
|
java.lang.String |
getXmlFile()
Returns the XML file.
|
boolean |
isEmailError()
Returns if it is unable to send the email.
|
boolean |
isForcedCancel()
Gets the forcedCancel flag.
|
boolean |
isSendEmail()
Returns if there is a need to send the comment to the email address.
|
void |
performExecute()
This method performs the execution to cancel orders and add comment to the canceled orders.
|
void |
setForcedCancel(boolean aForcedCancel)
Sets the forcedCancel flag.
|
void |
setNewComment(java.lang.String newNewComment)
Sets the order comment.
|
void |
setNotifyMerchant(java.lang.String notifyMerchant)
Sets the notifyMerchant value.
|
void |
setNotifyShopper(java.lang.String notifyShopper)
Sets the notifyShopper value.
|
void |
setOrderIds(java.util.Vector newOrderIds)
Sets Order IDs which needs to be canceled.
|
void |
setRedirectURL(java.lang.String newRedirectURL)
Sets redirect URL.
|
void |
setRequestProperties(TypedProperty viewParm)
The WebController calls this method before invoking the execute method in this command
to set the request properties for this command.
|
void |
setXmlFile(java.lang.String newXmlFile)
Sets XML file.
|
void |
validateParameters()
Sets the NLS properties and parse the input XML parameters.
|
getViewInputProperties
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, 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 java.lang.String xmlFile
public static final java.lang.String DIALOG_URL
public java.lang.String getEmailAddress()
public java.lang.String getNewComment()
public java.util.Hashtable getNLS()
public java.util.Vector getOrderIds()
public CommandContext getOrgCmdContext()
public java.lang.String getRedirectURL()
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 getSuccessMsg()
public java.lang.String getXmlFile()
public boolean isEmailError()
public boolean isSendEmail()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- if order can not be canceled.public void setNewComment(java.lang.String newNewComment)
newNewComment
- The order comment.public void setOrderIds(java.util.Vector newOrderIds)
newOrderIds
- The order IDs.public void setRedirectURL(java.lang.String newRedirectURL)
newRedirectURL
- The redirect URL.public void setXmlFile(java.lang.String newXmlFile)
newXmlFile
- The XML file used.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- if parameter is invalid.public java.lang.String getNotifyMerchant()
public void setNotifyMerchant(java.lang.String notifyMerchant)
notifyMerchant
- The notifyMerchant value.public java.lang.String getNotifyShopper()
public void setNotifyShopper(java.lang.String notifyShopper)
notifyShopper
- The notifyShopper value.public boolean isForcedCancel()
public void setForcedCancel(boolean aForcedCancel)
aForcedCancel
- public void setRequestProperties(TypedProperty viewParm) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ToolsControllerCommandImpl
viewParm
- request properties.ECApplicationException