public class AdminOrderItemUpdateCOCmdImpl extends OrderItemUpdateCmdImpl implements AdminOrderItemUpdateCOCmd
AdminOrderItemUpdateCOCmd
controller command. It allows an administrator to manually add or update a price and currency for the order item
instead of retrieving the price from catalog entry.
OrderItemUpdateCmdImpl, and below,
| Name | Description |
|---|---|
fulfillmentCenterId_i |
Fulfillment center Id related to the enumeration group i, Optional |
price_i |
Price related to the enumeration group i, Optional |
currency_i |
Currency related to the enumeration group i, Optional, but if price_i is passed, it's mandatory |
overrideReasonCode_i |
Price override reason code to the enumeration group i, Optional |
remark_i |
Remark to the enumeration group i, Optional |
forUserId |
The for User Id, the owner Id of the order, Mandatory |
contractId |
The contract Id, the owner Id of the order, Optional |
OrderItemUpdateCmdImpl
OrderItemUpdateCmdImpl and overrides the updateOrderItem and
updatePrice of the super class. It support the price override reason code, and remark.
OrderItemsCmdHelper.validatePrice(Integer, CommandContext, String, Long, Long, String)
will be called to check if the new price is valid. The order will be blocked if the price override is not valid.
Also business audit is supported for this price override.OrderItemBaseCmdImpl,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME
The full 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_VIEWdefaultCommandClassName, NAMEbadPartNumberErrorView, defaultCommandClassName, NAME| Constructor and Description |
|---|
AdminOrderItemUpdateCOCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getForUserId()
This method gets the for user id.
|
java.lang.Long |
getNewTradingId()
This method gets the trading id to be stored in OrderItem.
|
java.lang.Long |
getTheUserId()
This method returns user id.
|
void |
reset()
This method resets the instance variables.
|
void |
setCurrency(java.util.Hashtable ahshCurrency)
This method sets the currency.
|
void |
setForUserId(java.lang.Long aForUserId)
This method sets the for user id.
|
void |
setFulfillmentCenterId(java.util.Hashtable ahshFulfillmentCenterId)
This method sets the fulfillment center id to be stored in OrderItem.
|
void |
setNewTradingId(java.lang.Long anTradingId)
This method sets the trading id to be stored in OrderItem.
|
void |
setPrice(java.util.Hashtable ahshPrice)
This method sets the price.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
This method sets the request properties.
|
getATPParms, getCalculationUsageIds, getDeletedOrderItemCatEntryIds, getDeletedOrderItemIds, getIsExpedited, getNewOrderId, getNewOrderItemIds, getNonBuyableCatentryIds, getOrderField1, getOrderField2, getOrderField3, getOrderIds, getOrderItemIds, getOutOfInvItems, getRepriceOrderFlag, getResolvedRequestProperties, getResources, getTheUser, getTieShipCode, performExecute, 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, 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, validateParameterscheckPermission, fulfills, getGeneric, getOwner, getRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, 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, waitgetDeletedOrderItemIds, getNewOrderItemIds, getOrderIds, getOrderItemIds, getOutOfInvItems, setAddressId, setAttrName, setAttrValue, setCatEntryId, setComment, setCompListId, setConfigurationId, setContinue, setContractId, setCorrelationGroup, setDescription, setExpandConfigurationId, setField1, setField2, setListId, setMemberId, setOfferId, setOrderComment, setOrderDesc, setOrderId, setOrderItemId, setOutOrderItemName, setOutOrderName, setPartNumber, setQuantity, setRequestedShipDate, setShipmodeId, setTradingId, setUomcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getResourceOwners, setAccCheck, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public java.lang.Long getTheUserId()
getTheUserId in class OrderItemBaseCmdImplpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class OrderItemBaseCmdImplpublic void setCurrency(java.util.Hashtable ahshCurrency)
setCurrency in interface AdminOrderItemUpdateCOCmdahshCurrency - a hashtable of currency.public void setForUserId(java.lang.Long aForUserId)
setForUserId in interface AccCommandsetForUserId in interface AdminOrderItemUpdateCOCmdsetForUserId in class ControllerCommandImplaForUserId - the for user id.public java.lang.Long getForUserId()
getForUserId in interface AccCommandgetForUserId in class ControllerCommandImplpublic void setFulfillmentCenterId(java.util.Hashtable ahshFulfillmentCenterId)
setFulfillmentCenterId in interface OrderItemAddCmdsetFulfillmentCenterId in interface OrderItemUpdateCmdsetFulfillmentCenterId in class OrderItemBaseCmdImplahshFulfillmentCenterId - a hashtable of fulfillment center id.public void setPrice(java.util.Hashtable ahshPrice)
setPrice in interface AdminOrderItemUpdateCOCmdahshPrice - a hashtable of pricepublic void setRequestProperties(TypedProperty aRequestProperties) throws ECException
setRequestProperties in interface ControllerCommandsetRequestProperties in class OrderItemBaseCmdImplaRequestProperties - request properties.ECException - the exception is thrown if the super.setRequestProperties throws the exception.public void setNewTradingId(java.lang.Long anTradingId)
anTradingId - the trading id to be stored in OrderItem.public java.lang.Long getNewTradingId()