public class RequisitionListSubmitCmdImpl extends RequisitionListBaseCmdImpl implements RequisitionListSubmitCmd
Input parameters:
Name | Type | Requirement | Description |
---|---|---|---|
requisitionListId | Long | mandatory | The id of the requisition list to be submitted. |
contractId | Long[] | optional | An array of contract ids for price calculation. |
offerId | Long[] | optional | An array of offer ids for price calculation. |
Output parameters:
Name | Type | Description |
---|---|---|
orderId | Long | the created pending order list id |
Behavior:
View:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
protected java.lang.Long[] | iContractId
The contract id.
|
protected java.lang.Long[] | iOfferId
The offer id.
|
Constructor and Description |
---|
RequisitionListSubmitCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | action()
This method is the main action of the command.
|
void | addOrderItemNVPs(TypedProperty req, OrderItemAccessBean orderItemAB, int i)
This method adds some name value pairs to the request properties based on the columns in the orderItamAB.
|
protected OrderAccessBean | copyOrder(OrderAccessBean fromOrderAB)
This method copies the OrderAccessBean fromOrderAB and return a new created OrderAccessBean which is a clone of fromOrderAB.
|
protected java.lang.String[] | getContractId()
This method returns an array of contract ids.
|
java.lang.String | getMergeToCurrentPendingOrder()
This method returns the indicator to represent whether the requisition list is to be merged into current pending order.
|
protected java.lang.String[] | getOfferId()
This method returns an array of offer ids.
|
java.lang.Long | getOrderId()
This method returns the order id.
|
AccessVector | getResources()
This method returns the store access bean and the order access bean.
|
protected java.lang.Long | mergeToCurrentPendingOrder(OrderAccessBean abFromOrder)
This method is called to merge the requisition list to the current pending order.
|
void | performExecute()
This method is the main execution of the command.
|
protected void | prepareOrder(java.lang.Long orderId)
This method prepares an order.
|
void | setContractId(java.lang.Long[] id)
This method specifies an array of contract ids for price calculation.
|
void | setMergeToCurrentPendingOrder(java.lang.String flag)
This method sets the indicator to represent whether the requisition list is to be merged into current pending order.
|
void | setOfferId(java.lang.Long[] id)
This method specifies an array of offer ids for price calculation.
|
void | setRequestProperties(TypedProperty reqProperties)
This method sets the request properties.
|
void | setRequisitionListId(java.lang.Long id)
This method specifies the requisition list id to be submitted.
|
protected void | updateResponseView()
This method sets the response view - Redirect View.
|
void | validateParameters()
This method validates the input parameters.
|
public static final java.lang.String COPYRIGHT
protected java.lang.Long[] iContractId
protected java.lang.Long[] iOfferId
public java.lang.String getMergeToCurrentPendingOrder()
public void setMergeToCurrentPendingOrder(java.lang.String flag)
protected void action() throws java.sql.SQLException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
Parameter "mergeToCurrentPendingOrder" indicates whether merge the requisition list to the current pending order. If value "N", call copyOrder() to copy the requisition list and then calls prepareOrder() to prepare the order. If value "Y", call mergeToCurrentPendingOrder() to merge requisition list to the current pending order.
protected java.lang.Long mergeToCurrentPendingOrder(OrderAccessBean abFromOrder) throws ECException
public void addOrderItemNVPs(TypedProperty req, OrderItemAccessBean orderItemAB, int i) throws java.sql.SQLException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected OrderAccessBean copyOrder(OrderAccessBean fromOrderAB) throws java.sql.SQLException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected java.lang.String[] getContractId()
protected java.lang.String[] getOfferId()
public java.lang.Long getOrderId()
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
protected void prepareOrder(java.lang.Long orderId) throws java.sql.SQLException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
public void setContractId(java.lang.Long[] id)
public void setOfferId(java.lang.Long[] id)
public void setRequestProperties(TypedProperty reqProperties) throws ECException
public void setRequisitionListId(java.lang.Long id)
protected void updateResponseView()
public void validateParameters() throws ECException
It checks the following mandatory parameters:
Exception: