public class RequisitionListSubmitCmdImpl extends RequisitionListBaseCmdImpl implements RequisitionListSubmitCmd
RequisitionListSubmitCmd controller command.
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:
OrderItemAddCmdOrderPrepareCmd| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
RequisitionListSubmitCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getMergeToCurrentPendingOrder()
This method returns the indicator to represent whether the requisition list is to be merged into current pending order.
|
java.lang.Long |
getOrderId()
This method returns the order id.
|
AccessVector |
getResources()
This method returns the store access bean and the order access bean.
|
void |
performExecute()
This method is the main execution of the command.
|
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.
|
void |
validateParameters()
This method validates the input parameters.
|
deleteRequisitionListHelper, getStatus, getType, reset, setRequisitionListStatus, setRequisitionListTypecheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public java.lang.String getMergeToCurrentPendingOrder()
public void setMergeToCurrentPendingOrder(java.lang.String flag)
flag - the String value "Y" to merge the requisition list into current pending order; "N" not to merge.public void addOrderItemNVPs(TypedProperty req, OrderItemAccessBean orderItemAB, int i) throws java.sql.SQLException, ECException
req - request propertiesorderItemAB - OrderItemAccessBeani - intECExceptionjava.sql.SQLExceptionpublic java.lang.Long getOrderId()
public AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECExceptionpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void setContractId(java.lang.Long[] id)
setContractId in interface RequisitionListSubmitCmdid - an array of contract ids.public void setOfferId(java.lang.Long[] id)
setOfferId in interface RequisitionListSubmitCmdid - an array of offer ids.public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties in interface ControllerCommandsetRequestProperties in class RequisitionListBaseCmdImplreqProperties - request properties.ECExceptionpublic void setRequisitionListId(java.lang.Long id)
setRequisitionListId in interface RequisitionListSubmitCmdid - requisition list idpublic void validateParameters()
throws ECException
It checks the following mandatory parameters:
Exception:
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException