public class OrderTransferCheckCmdImpl extends ControllerCommandImpl implements OrderTransferCheckCmd
OrderTransferCheckCmd
controller command.
defaultCommandClassName, NAME
Constructor and Description |
---|
OrderTransferCheckCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorUrl()
Gets the error url.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
void |
performExecute()
Performs the main business logic of the command.
|
void |
reset()
Resets the instance variables of the command.
|
void |
setErrorUrl(java.lang.String astrErrorUrl)
Sets the error url.
|
void |
setOkUrl(java.lang.String url)
Sets the okURL property of the command.
|
void |
setOrderIds(java.lang.Long[] orderIds)
Sets the orderIds property of the command.
|
void |
setOutOkOrderIdNames(java.lang.String[] outOkOrderIdNames)
Sets the outOkOrderIdNames property of the command.
|
void |
setOutTimeoutOrderIdNames(java.lang.String[] outTimeoutOrderIdNames)
Sets the outTimeoutOrderIdNames property of the command.
|
void |
setOutWaitOrderIdNames(java.lang.String[] outWaitOrderIdNames)
Sets the outWaitOrderIdNames property of the command.
|
void |
setRequestProperties(TypedProperty reqParms)
The WebController calls the setRequestProperties method before invoking the execute method in this command.
|
void |
setTimeoutUrl(java.lang.String url)
Sets the timeoutURL property of the command.
|
void |
setTransferMode(java.lang.String transferMode)
Sets the transferMode property of the command.
|
void |
setWaitUrl(java.lang.String url)
Sets the waitURL property of the command.
|
void |
validateParameters()
Checks the validity of supplied parameters.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, 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, 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 void setOrderIds(java.lang.Long[] orderIds)
setOrderIds
in interface OrderTransferCheckCmd
orderIds
- the order reference number of the Order for which the
confirmation will be checked.public void setTransferMode(java.lang.String transferMode)
setTransferMode
in interface OrderTransferCheckCmd
transferMode
- - 0 - order has been transferred without the payment information (shopping cart transfer).
1 - order has been transferred with the payment information (purchase order transfer).public void setOkUrl(java.lang.String url)
setOkUrl
in interface OrderTransferCheckCmd
url
- - The redirection URL that is returned if transfer confirmation for specified oder have been received.public void setTimeoutUrl(java.lang.String url)
setTimeoutUrl
in interface OrderTransferCheckCmd
url
- - The redirection URL that is returned if transfer confirmation has not yet been received,
and a timeoutInterval+orderLastUpdateTime is bigger or equal to the current time.public void setWaitUrl(java.lang.String url)
setWaitUrl
in interface OrderTransferCheckCmd
url
- - The redirection URL that is returned if transfer confirmation has not yet been received,
and a timeoutInterval+orderLastUpdateTime is less than the current time.public void setOutOkOrderIdNames(java.lang.String[] outOkOrderIdNames)
setOutOkOrderIdNames
in interface OrderTransferCheckCmd
outOkOrderIdNames
- The names of name value pairs that should be added to the redirection URL.
The values of the added name value pairs are the identifiers of the checked orders that have
transfer confirmations.public void setOutWaitOrderIdNames(java.lang.String[] outWaitOrderIdNames)
setOutWaitOrderIdNames
in interface OrderTransferCheckCmd
outWaitOrderIdNames
- The names of name value pairs that should be added to the redirection URL.
The values of the added name value pairs are the identifiers of the checked orders that do not yet have
transfer confirmations. But whose timeoutInterval+orderLastUpdateTime values are not less than the current time.public void setOutTimeoutOrderIdNames(java.lang.String[] outTimeoutOrderIdNames)
setOutTimeoutOrderIdNames
in interface OrderTransferCheckCmd
outTimeoutOrderIdNames
- The names of name value pairs that should be added to the redirection URL.
The values of the added name value pairs are the identifiers of the checked orders that do not yet have
transfer confirmations. But whose timeoutInterval+orderLastUpdateTime values are less than the current time.public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- The request propertiesECApplicationException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
This is useful if the command instance is to be called multiple times with different command parameters.
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException.
ECException
public java.lang.String getErrorUrl()
public void setErrorUrl(java.lang.String astrErrorUrl)
setErrorUrl
in interface OrderTransferCheckCmd
astrErrorUrl
- The error url to set