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 FormModifier 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_VIEW
defaultCommandClassName, NAME
badPartNumberErrorView, 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, validateParameters
checkPermission, fulfills, getGeneric, getOwner, getRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, 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, 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, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getResourceOwners, setAccCheck, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public java.lang.Long getTheUserId()
getTheUserId
in class OrderItemBaseCmdImpl
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class OrderItemBaseCmdImpl
public void setCurrency(java.util.Hashtable ahshCurrency)
setCurrency
in interface AdminOrderItemUpdateCOCmd
ahshCurrency
- a hashtable of currency.public void setForUserId(java.lang.Long aForUserId)
setForUserId
in interface AccCommand
setForUserId
in interface AdminOrderItemUpdateCOCmd
setForUserId
in class ControllerCommandImpl
aForUserId
- the for user id.public java.lang.Long getForUserId()
getForUserId
in interface AccCommand
getForUserId
in class ControllerCommandImpl
public void setFulfillmentCenterId(java.util.Hashtable ahshFulfillmentCenterId)
setFulfillmentCenterId
in interface OrderItemAddCmd
setFulfillmentCenterId
in interface OrderItemUpdateCmd
setFulfillmentCenterId
in class OrderItemBaseCmdImpl
ahshFulfillmentCenterId
- a hashtable of fulfillment center id.public void setPrice(java.util.Hashtable ahshPrice)
setPrice
in interface AdminOrderItemUpdateCOCmd
ahshPrice
- a hashtable of pricepublic void setRequestProperties(TypedProperty aRequestProperties) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class OrderItemBaseCmdImpl
aRequestProperties
- 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()