com.ibm.commerce.order.commands
Class SetPendingOrderCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.order.commands.SetPendingOrderCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, SetPendingOrderCmd
- public class SetPendingOrderCmdImpl
- extends ControllerCommandImpl
- implements SetPendingOrderCmd
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
|
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 1. |
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 |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
SetPendingOrderCmdImpl
public SetPendingOrderCmdImpl()
checkIsAllowed
public void checkIsAllowed(AccessVector resource,
java.lang.String action)
throws ECException
- Check if the access control by calling checkIsAllowed() in the super classes
getField1
protected java.lang.Integer getField1()
- Returns the customizable field 1.
- Returns:
- The customizable field 1.
getField2
protected java.lang.String getField2()
- Returns the customizable field 1.
- Returns:
- The customizable field 1.
performExecute
public void performExecute()
throws ECException
- Executes main business logic of the command.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
reset
public void reset()
- Resets the instance fields.
- Overrides:
reset
in class AbstractECTargetableCommand
setField1
public void setField1(java.lang.Integer aField1)
- Sets the customizable field 1.
- Specified by:
setField1
in interface SetPendingOrderCmd
- Following copied from interface:
com.ibm.commerce.order.commands.SetPendingOrderCmd
- Parameters:
anField1
- The customizable field.
setField2
public void setField2(java.lang.String aField2)
- Sets the customizable field 2.
- Specified by:
setField2
in interface SetPendingOrderCmd
- Following copied from interface:
com.ibm.commerce.order.commands.SetPendingOrderCmd
- Parameters:
astrField2
- The customizable field.
setOrderIds
public void setOrderIds(java.lang.String[] aNumbers)
- Specifies zero or more orders, using order reference numbers or one of
the special abbreviations "**", ".", "*", ".t", "*t" etc.
See OrderItem Commands for a description of these abbreviations.
- Specified by:
setOrderIds
in interface SetPendingOrderCmd
- Following copied from interface:
com.ibm.commerce.order.commands.SetPendingOrderCmd
- Parameters:
aarrNumbers
- A list of order reference numbers or special abbreviation.
setOutOrderNames
public void setOutOrderNames(java.lang.String[] aNames)
- Specifies the names of the name-value pairs to be added to the redirection URL.
The values of the added name-value pairs are the reference numbers of the input
orders.
- Specified by:
setOutOrderNames
in interface SetPendingOrderCmd
- Following copied from interface:
com.ibm.commerce.order.commands.SetPendingOrderCmd
- Parameters:
aarrNames
- A list of names for the name-value pairs.
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties)
throws ECApplicationException
- Sets the request properties.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Parameters:
requestProperties
- the request properties.
setStoreId
public void setStoreId(java.lang.Integer anStoreId)
- Specifies the stores of the orders that are listed.
- Specified by:
setStoreId
in interface SetPendingOrderCmd
- Following copied from interface:
com.ibm.commerce.order.commands.SetPendingOrderCmd
- Parameters:
anStoreId
- java.lang.Integer
validateParameters
public void validateParameters()
throws ECException
- Checks mandatory parameters.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-