public class RequisitionListItemUpdateCmdImpl extends OrderItemUpdateCmdImpl implements RequisitionListItemUpdateCmd
RequisitionListItemUpdateCmd
controller command.
Input parameters:
Name | Type | Requirement | Description |
---|---|---|---|
requisitionListId |
Long | optional | The requisition list ID |
name | String | optional | The requisition list name |
... | The name value pairs similar to OrderItemUpdate |
Output parameters:
Name | Type | Description |
---|---|---|
... | The output similar to OrderItemUpdate |
Behavior:
OrderItemUpdate
command
is replaced by requisitionListId
.requisitionListId
does not support abbreviation. It must
be a number.RequisitionListItemUpdate
and
OrderItemUpdate:
RequisitionListItemUpdate
does not take parameter
offerId
and contractId
because there is no price
calculation for the requisition list item.
catEntryId
and quantity
.
requisitionListId
is specified, the item will be
added to the requisition list.requisitionListId
is not specified, the item will be
added to a new created private requisition list.
View:
RedirectView
.AccessBeans
:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
GENERATED_ORDERITEM, MANUAL_FULFILLMENT_CENTER, MANUAL_PRICE, NORMAL_ORDERITEM, STR_INVALID_INPUT_ERROR_VIEW
defaultCommandClassName, NAME, RLBadPartNumberErrorView, RLInvalidInputErrorView
badPartNumberErrorView, defaultCommandClassName, NAME
Constructor and Description |
---|
RequisitionListItemUpdateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
AccessVector |
getResources()
This method returns the order access bean.
|
java.lang.String |
getStatus()
This method returns the status of the requisition list.
|
java.lang.String |
getType()
This method returns the type of the requisition list.
|
void |
performExecute()
This method performs the main business logic.
|
void |
reset()
This method resets all instance variables.
|
void |
setName(java.lang.String name)
This method specifies the requisition list name.
|
void |
setRequestProperties(TypedProperty reqProperties)
This method sets the request properties.
|
void |
setRequisitionListId(java.lang.Long id)
This method specifies the requisition list ID.
|
void |
setStatus(java.lang.String status)
This method specifies the status of the requisition list.
|
void |
setType(java.lang.String type)
This method specifies the type of the created requisition list.
|
void |
validateParameters()
This method validates the input parameters.
|
getATPParms, getCalculationUsageIds, getDeletedOrderItemCatEntryIds, getDeletedOrderItemIds, getIsExpedited, getNewOrderId, getNewOrderItemIds, getNonBuyableCatentryIds, getOrderField1, getOrderField2, getOrderField3, getOrderIds, getOrderItemIds, getOutOfInvItems, getRepriceOrderFlag, getResolvedRequestProperties, getTheUser, getTheUserId, getTieShipCode, setAddressId, setATPParms, setAttrName, setAttrValue, setCalculationUsageIds, setCarrAccntNum, setCatEntryId, setChargeTypes, setComment, setComp_priceLocks, setComp_prices, setComp_quantities, setCompListId, setConfiguration, setConfigurationId, setContinue, setContractId, setCorrelationGroup, setDescription, setDk_price, setDk_priceLock, setDoPrice, setExpandConfigurationId, setField1, setField2, setFulfillmentCenterId, setIsExpedited, setListId, setMemberId, setOfferId, setOrderComment, setOrderDesc, setOrderField1, setOrderField2, setOrderField3, setOrderId, setOrderItemId, setOutOrderItemName, setOutOrderName, setPartNumber, setPhysicalStoreId, setQuantity, setQuantity, setRepriceOrderFlag, setRequestedShipDate, setShipAsComplete, setShipInstructions, setShipmodeId, setTieShipCode, setTradingId, setUom
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, 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
getDeletedOrderItemIds, getNewOrderItemIds, getOrderIds, getOrderItemIds, getOutOfInvItems, setAddressId, setAttrName, setAttrValue, setCatEntryId, setComment, setCompListId, setConfigurationId, setContinue, setContractId, setCorrelationGroup, setDescription, setExpandConfigurationId, setField1, setField2, setFulfillmentCenterId, setListId, setMemberId, setOfferId, setOrderComment, setOrderDesc, setOrderId, setOrderItemId, setOutOrderItemName, setOutOrderName, setPartNumber, setQuantity, setRequestedShipDate, setShipmodeId, setTradingId, setUom
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 static final java.lang.String CLASSNAME
public AccessVector getResources()
getResources
in interface ECCommand
getResources
in class OrderItemBaseCmdImpl
ECException
public void performExecute() throws ECException
badPartNumberErrorView
error view, it changes the error view
to RLBadPartNumberErrorView
.InvalidInputErrorView
error view, it changes the error view
to RLInvalidInputErrorView
.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class OrderItemBaseCmdImpl
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class OrderItemBaseCmdImpl
public void setName(java.lang.String name)
setName
in interface RequisitionListItemUpdateCmd
name
- The requisition list name.public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class OrderItemBaseCmdImpl
reqProperties
- The request properties.ECException
public void setRequisitionListId(java.lang.Long id)
setRequisitionListId
in interface RequisitionListItemUpdateCmd
id
- The requisition list ID.public void setStatus(java.lang.String status)
setStatus
in interface RequisitionListItemUpdateCmd
status
- The status of the requisition list.public void setType(java.lang.String type)
setType
in interface RequisitionListItemUpdateCmd
type
- The type of the created requisition list.public void validateParameters() throws ECException
It checks whether the request can cause the size of the requisition list, as well as the requested quantity, to exceed business threshold. Then it checks the validation of the following parameter values:
requisitionListId
iRequisitionListStatus
iRequisitionListType
Exception:
requisitionListId
is not a valid order ID.
InvalidInputErrorView
, it changes the error view to
RLInvalidInputErrorView.validateParameters
in interface ECCommand
validateParameters
in class OrderItemBaseCmdImpl
ECException
public java.lang.String getStatus()
public java.lang.String getType()