public class OrderScheduleCmdImpl extends ControllerCommandImpl implements OrderScheduleCmd
OrderScheduleCmd controller command.
| Name | Description |
|---|---|
orderId |
the order ID |
storeId |
the store ID |
| Name | Description |
|---|---|
outOrderName |
the order name |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
NAMEdefaultCommandClassName| Constructor and Description |
|---|
OrderScheduleCmdImpl()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
AccountAccessBean |
getAccount()
This method gets the account.
|
AddJobCmd |
getAddJobCmd()
Gets AddJob command instance.
|
java.lang.String |
getHost()
Gets the host name responsible for processing an order.
|
java.lang.Integer |
getInterval()
Gets the number of seconds between successive executions of this order.
|
java.lang.String |
getNotifyOrderSubmitted()
Get the value of notifyOrderSubmitted flag.
|
java.lang.String |
getNotifyShopper()
Get the value of notifyShopper flag.
|
java.lang.Long |
getOrderId()
Gets the order which needs to be processed as a recurring order.
|
java.lang.String[] |
getOutOrderName()
Gets the names of the name-value pairs to be added to the redirection URL.
|
java.lang.String |
getPurchaseOrderNumber()
This method gets the purchase order number.
|
java.lang.Integer |
getRecoveryAttempts()
Gets the number of times the job scheduler will retry processing the order
should order processing failure occur.
|
java.lang.Integer |
getRecoveryDelay()
Gets the amount of time (in seconds) before order processing is retried in case of
order processing failure.
|
AccessVector |
getResources()
Gets the resources.
|
java.lang.String |
getStartTime()
The time at which the first execution of this order should occur.
|
java.lang.String |
getUrl()
Gets redirection URL.
|
void |
performExecute()
Contains the actual business logic of the command.
|
void |
reset()
This method should be called after a command has been executed to reset its state variables.
|
void |
setAccount(AccountAccessBean abAccount)
This methods sets the account.
|
void |
setAddJobCmd(AddJobCmdImpl newAddJobCmd)
Sets AddJob command instance.
|
void |
setHost(java.lang.String newHost)
Sets the host name responsible for processing an order.
|
void |
setInterval(java.lang.Integer newInterval)
Sets the number of seconds between successive executions of this order.
|
void |
setNotifyOrderSubmitted(java.lang.String notifyOrderSubmittedVal)
Set the value of notifyOrderSubmitted flag.
|
void |
setNotifyShopper(java.lang.String notifyShopperVal)
Set the value of notifyShopper flag.
|
void |
setOrderId(java.lang.Long newOrderId)
Sets the order which needs to be processed as a recurring order.
|
void |
setOutOrderName(java.lang.String[] newOutOrderName)
Sets the names of the name-value pairs to be added to the redirection URL.
|
void |
setPurchaseOrderNumber(java.lang.String strPO)
This method sets the purchase order number.
|
void |
setRecoveryAttempts(java.lang.Integer newRecoveryAttempts)
Sets the number of times the job scheduler will retry processing the order
should order processing failure occur.
|
void |
setRecoveryDelay(java.lang.Integer newRecoveryDelay)
Sets the amount of time (in seconds) before order processing is retried in case of
order processing failure.
|
void |
setRequestProperties(TypedProperty aReqParms)
The WebController calls this method before invoking the execute method in this command
to set the request properties for this command.
|
void |
setStartTime(java.lang.String newStartTime)
The time at which the first execution of this order should occur in the format
YYYY:MM:DD:hh:mm:ss.
|
void |
setUrl(java.lang.String astrUrl)
Sets redirection URL.
|
void |
validateParameters()
Performs server side parameter checking.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public AddJobCmd getAddJobCmd()
public java.lang.String getHost()
public java.lang.Integer getInterval()
public java.lang.Long getOrderId()
public java.lang.String[] getOutOrderName()
public java.lang.Integer getRecoveryAttempts()
public java.lang.Integer getRecoveryDelay()
public AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECExceptionpublic java.lang.String getStartTime()
public java.lang.String getUrl()
public java.lang.String getNotifyOrderSubmitted()
public void setNotifyOrderSubmitted(java.lang.String notifyOrderSubmittedVal)
notifyOrderSubmittedVal - The value of notifyOrderSubmitted flag.public java.lang.String getNotifyShopper()
public void setNotifyShopper(java.lang.String notifyShopperVal)
notifyShopperVal - The value of notifyShopper flag.public java.lang.String getPurchaseOrderNumber()
public AccountAccessBean getAccount()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setAddJobCmd(AddJobCmdImpl newAddJobCmd)
newAddJobCmd - add job command.public void setHost(java.lang.String newHost)
setHost in interface OrderScheduleCmdnewHost - host.public void setInterval(java.lang.Integer newInterval)
setInterval in interface OrderScheduleCmdnewInterval - java.lang.Integer - interval in secondspublic void setOrderId(java.lang.Long newOrderId)
setOrderId in interface OrderScheduleCmdnewOrderId - java.lang.Long - order identifierpublic void setOutOrderName(java.lang.String[] newOutOrderName)
setOutOrderName in interface OrderScheduleCmdnewOutOrderName - out order name.public void setRecoveryAttempts(java.lang.Integer newRecoveryAttempts)
setRecoveryAttempts in interface OrderScheduleCmdnewRecoveryAttempts - java.lang.Integer - number of recovery attemptspublic void setRecoveryDelay(java.lang.Integer newRecoveryDelay)
setRecoveryDelay in interface OrderScheduleCmdnewRecoveryDelay - java.lang.Integer - number of seconds to delay between retrying to recover
from order processing failurepublic void setRequestProperties(TypedProperty aReqParms) throws ECException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplaReqParms - request properties.ECExceptionpublic void setStartTime(java.lang.String newStartTime)
setStartTime in interface OrderScheduleCmdnewStartTime - java.lang.String - start time for order processingpublic void setUrl(java.lang.String astrUrl)
astrUrl - URL.public void setPurchaseOrderNumber(java.lang.String strPO)
strPO - The purchase order number to set.public void setAccount(AccountAccessBean abAccount)
abAccount - The account access bean to be set.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException