public class OrderCreateCmdImpl extends OrderBaseCmdImpl implements OrderCreateCmd
Name | Description |
---|---|
URL | The URL to be called when the command completes successfully.This parameter is mandatory. |
description | The description of Order.This parameter is optional. |
outOrderName | Specifies the names of name-value pairs to be added to the redirection URL. |
Name | Description |
---|---|
the value of outOrderName specified, default it is orderId | the orderId which was created just now. |
editorId | The editorId of the order. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
OrderCreateCmdImpl()
The default Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | getDescription() |
java.lang.Long | getEditorId()
Get the editor Id
|
java.lang.String | getOrderId()
returns the new OrderId.
|
java.lang.String | getOutputOrderName()
Returns the outputOrderName.
|
AccessVector | getResources()
Gets the resources.
|
java.lang.Long | getTheUserId()
Returns super.getUserId().
|
java.lang.String | getUrl()
Gets the redirection URL to be called when the command completes successfully.
|
void | performExecute()
The main business logic of this command implementation.
|
protected void | raiseBusinessEvent(OrderAccessBean orderAB)
Raises the business event for the newly created order.
|
void | reset()
Reset the command state to the initial state
|
void | setDescription(java.lang.String string) |
void | setEditor(OrderAccessBean anOrder)
Sets the editor ID with the value.
|
void | setEditorId(java.lang.Long newEditor_id)
Set the editor Id
|
void | setOrderId(java.lang.String string)
Set the orderId that is being created
|
void | setOutputOrderName(java.lang.String anOutputOrderName)
Sets the outputOrderName.
|
void | setRequestProperties(TypedProperty aReqParms)
Sets the request properties.
|
void | setUrl(java.lang.String astrUrl)
Sets the redirection URL to be called when the command completes successfully.
|
protected void | updateCurrency(OrderAccessBean orderAB)
Update the currency of the order if it has not be set already.
|
void | validateParameters()
Validates the parameters.
|
public static final java.lang.String COPYRIGHT
public java.lang.String getOrderId()
public java.lang.String getUrl()
public void performExecute() throws ECException
protected void updateCurrency(OrderAccessBean orderAB) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public void setRequestProperties(TypedProperty aReqParms) throws ECApplicationException
public void setUrl(java.lang.String astrUrl)
public void validateParameters() throws ECException
public java.lang.Long getTheUserId()
public java.lang.String getOutputOrderName()
public void setOutputOrderName(java.lang.String anOutputOrderName)
public java.lang.String getDescription()
public void setDescription(java.lang.String string)
protected void raiseBusinessEvent(OrderAccessBean orderAB) throws ECSystemException
public void reset()
public void setOrderId(java.lang.String string)
public AccessVector getResources() throws ECException
public void setEditor(OrderAccessBean anOrder) throws ECException, java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Long getEditorId()
public void setEditorId(java.lang.Long newEditor_id)