public class SubmitShoppingCartCmdImpl extends ControllerCommandImpl implements SubmitShoppingCartCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copyright statement.
|
protected static java.lang.String | ERROR_TASK
The error task view used when an error has occurred.
|
protected static java.lang.String | VIEW_TASK
The task view used after successful command completion.
|
Constructor and Description |
---|
SubmitShoppingCartCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getErrorTask()
This method gets the error task name.
|
java.lang.Long | getOrderId()
This method gets the order ID.
|
AccessVector | getResources()
This method gets an AccessVector that contain OrderAccessBeans.
|
java.lang.String | getViewTask()
This method gets the view task name.
|
void | performExecute()
This method changes the status order in the orders and order items table from status pending (P) to waiting approval (W).
|
void | setOrderId(java.lang.Long orderId)
This method sets the order ID.
|
void | setRequestProperties(TypedProperty p)
The Web controller calls the setRequestProperties method before invoking the execute method in this command.
|
void | validateParameters()
This method checks for the existence of the order ID.
|
public static final java.lang.String COPYRIGHT
protected static final java.lang.String ERROR_TASK
protected static final java.lang.String VIEW_TASK
public java.lang.String getErrorTask()
public java.lang.Long getOrderId()
public AccessVector getResources() throws ECException
public java.lang.String getViewTask()
public void performExecute() throws ECException
public void setOrderId(java.lang.Long orderId)
public void setRequestProperties(TypedProperty p) throws ECException
1. orderRefNumber 2. userID 3. password
public void validateParameters() throws ECException