java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.order.commands.SetPendingOrderCmdImpl
Marks one or more pending orders as the current pending orders. A marked pending order is the default working pending order for a shopper.
Behavior
Calls a task SetCurrentPendingOrderCmd process task passing to it the number of the pending orders to be marked current.Exception Conditions
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.order.commands. SetPendingOrderCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
SetPendingOrderCmdImpl() |
Method Summary | |
---|---|
void |
checkIsAllowed(
AccessVector resource, java.lang.String action) Check if the access control by calling checkIsAllowed() in the super classes |
protected
java.lang.Integer |
getField1() Returns the customizable field 1. |
protected
java.lang.String |
getField2() Returns the customizable field 2. |
void |
performExecute() Executes main business logic of the command. |
void |
reset() Resets the instance fields. |
void |
setField1(java.lang.Integer aField1) Sets the customizable field 1. |
void |
setField2(java.lang.String aField2) Sets the customizable field 2. |
void |
setOrderIds(java.lang.String[] aNumbers) Specifies zero or more orders, using order reference numbers or one of the special abbreviations "**", ".", "*", ".t", "*t" etc. |
void |
setOutOrderNames(java.lang.String[] aNames) Specifies the names of the name-value pairs to be added to the redirection URL. |
void |
setRequestProperties(
TypedProperty aRequestProperties) Sets the request properties. |
void |
setStoreId(java.lang.Integer anStoreId) Specifies the stores of the orders that are listed. |
void |
validateParameters() Checks mandatory parameters. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public SetPendingOrderCmdImpl()
Method Detail |
---|
public void checkIsAllowed(AccessVector resource, java.lang.String action) throws ECException
resource
- resourceaction
- actionECException
protected java.lang.Integer getField1()
protected java.lang.String getField2()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
public void setField1(java.lang.Integer aField1)
setField1
in interface
SetPendingOrderCmd
aField1
- field1public void setField2(java.lang.String aField2)
setField2
in interface
SetPendingOrderCmd
aField2
- field2public void setOrderIds(java.lang.String[] aNumbers)
setOrderIds
in interface
SetPendingOrderCmd
aNumbers
- order ids.public void setOutOrderNames(java.lang.String[] aNames)
setOutOrderNames
in interface
SetPendingOrderCmd
aNames
- out order names.public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
aRequestProperties
- request properties
ECApplicationException
public void setStoreId(java.lang.Integer anStoreId)
setStoreId
in interface
SetPendingOrderCmd
anStoreId
- store id.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException