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:
OrderItemAddCmd
OrderPrepareCmd
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, setRequisitionListType
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public 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
- intECException
java.sql.SQLException
public java.lang.Long getOrderId()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setContractId(java.lang.Long[] id)
setContractId
in interface RequisitionListSubmitCmd
id
- an array of contract ids.public void setOfferId(java.lang.Long[] id)
setOfferId
in interface RequisitionListSubmitCmd
id
- an array of offer ids.public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class RequisitionListBaseCmdImpl
reqProperties
- request properties.ECException
public void setRequisitionListId(java.lang.Long id)
setRequisitionListId
in interface RequisitionListSubmitCmd
id
- requisition list idpublic void validateParameters() throws ECException
It checks the following mandatory parameters:
Exception:
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException