com.ibm.commerce.quote.commands
Class AdminQuoteItemUpdateCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.ControllerCommandImpl
-
- com.ibm.commerce.order.commands.OrderBaseCmdImpl
-
- com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl
-
- com.ibm.commerce.quote.commands.QuoteItemBaseCmdImpl
-
- com.ibm.commerce.quote.commands.QuoteItemUpdateCmdImpl
-
- com.ibm.commerce.quote.commands.AdminQuoteItemUpdateCmdImpl
-
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OrderItemAddCmd, OrderItemUpdateCmd, AdminQuoteItemUpdateCmd, QuoteItemAddCmd, QuoteItemUpdateCmd, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class AdminQuoteItemUpdateCmdImpl extends QuoteItemUpdateCmdImpl implements AdminQuoteItemUpdateCmd
This is the default implementation of theAdminQuoteItemUpdateCmd
controller command.Behavior
- The command calls ResolveOrdersCmd with the orderId input parameter to get a list of orders. If the orderId is not specified, then the default is "." (The current pending orders).
-
The command can handle multiple items in one transaction. The multiple items are specified
using the enumeration group i. For example, if you want to update multiple order items,
you can specify orderItemId_i as a parameter where i can be 1, 2, 3, and so on.
- The enumeration group i must be an integer though it need not be a consecutive integer. The command will handle each enumeration group in numeric order.
- A parameter in the enumeration group i = 0 has a special meaning. That is, if a parameter with enumeration group 0, then this parameter applies to all other enumeration groups. For example, if you want to update all order items with the same shipping address where id=1001. You can specify addressId_0=1001 instead of specifying addressId_1=1001&addressId_2=1001&addressId_3=1001.
- If a parameter does not have an enumeration group, then it means that it is in enumeration group 0. So, instead of specifying addressId_0=1001, you can specify addressId=1001.
- For administration override purposes the orderItemId_i, price_i, quantity_i, overrideReasonCode_i, remark_i are expected, along with catEntryId_i and orderId .
- The orderItemId, caEntryId, partNumber, and expandConfigurationId parameters are the keys for each enumeration group. Since one orderItemId cannot apply to all enumeration groups you should not use enumeration group 0 for such parameters. If you use the enumeration group 0 or don't specify the enumeration group for these parameters, then the command will only handle one item. All parameters in other enumeration groups are ignored.
This command invokes the ValidateDelegatedPriceCmd, NotifyBlockCmd
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
CLASS_NAME
The full name of this class.static java.lang.String
COPYRIGHT
IBM copyright notice field.-
Fields inherited from class com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl
GENERATED_ORDERITEM, MANUAL_FULFILLMENT_CENTER, MANUAL_PRICE, NORMAL_ORDERITEM, STR_INVALID_INPUT_ERROR_VIEW
-
Fields inherited from interface com.ibm.commerce.quote.commands.AdminQuoteItemUpdateCmd
defaultCommandClassName, NAME
-
Fields inherited from interface com.ibm.commerce.quote.commands.QuoteItemAddCmd
defaultCommandClassName, NAME
-
Fields inherited from interface com.ibm.commerce.orderitems.commands.OrderItemAddCmd
badPartNumberErrorView, defaultCommandClassName, NAME
-
Fields inherited from interface com.ibm.commerce.orderitems.commands.OrderItemUpdateCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description AdminQuoteItemUpdateCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Long
getTheUserId()
Returns user id.void
reset()
Resets the instance variables.void
setCurrency(java.util.Hashtable ahshCurrency)
Sets the currency.void
setForUserId(java.lang.Long aForUserId)
Sets the for user id.void
setFulfillmentCenterId(java.util.Hashtable ahshFulfillmentCenterId)
Sets the fulfillment center id to be stored in OrderItem.void
setNewTradingId(java.lang.Long anTradingId)
Sets the trading id to be stored in OrderItem.void
setPrice(java.util.Hashtable ahshPrice)
Sets the price.void
setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties.-
Methods inherited from class com.ibm.commerce.quote.commands.QuoteItemBaseCmdImpl
validateParameters
-
Methods inherited from class com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl
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
-
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.quote.commands.QuoteItemUpdateCmd
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, setPartNumber, setQuantity, setShipmodeId, setTradingId, setUom
-
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setOwner
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
Methods inherited from interface com.ibm.commerce.quote.commands.QuoteItemAddCmd
getOrderIds, getOrderItemIds, setAddressId, setAttrName, setAttrValue, setCatEntryId, setComment, setConfigurationId, setContinue, setContractId, setCorrelationGroup, setDescription, setExpandConfigurationId, setField1, setField2, setListId, setMemberId, setOfferId, setOrderComment, setOrderDesc, setOrderId, setOutOrderItemName, setPartNumber, setQuantity, setShipmodeId, setTradingId, setUom
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
CLASS_NAME
public static final java.lang.String CLASS_NAME
The full name of this class.
-
-
Method Detail
-
getTheUserId
public java.lang.Long getTheUserId()
Returns user id.- Overrides:
getTheUserId
in classOrderItemBaseCmdImpl
- Returns:
- user id. if the parameter forUserId is set, return it. Otherwise return the user id in the session.
-
reset
public void reset()
Resets the instance variables.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classOrderItemBaseCmdImpl
-
setCurrency
public void setCurrency(java.util.Hashtable ahshCurrency)
Sets the currency.- Specified by:
setCurrency
in interfaceAdminQuoteItemUpdateCmd
- Parameters:
ahshCurrency
- a hashtable of currency.
-
setForUserId
public void setForUserId(java.lang.Long aForUserId)
Sets the for user id.- Specified by:
setForUserId
in interfaceAccCommand
- Specified by:
setForUserId
in interfaceAdminQuoteItemUpdateCmd
- Overrides:
setForUserId
in classControllerCommandImpl
- Parameters:
aForUserId
- the for user id.
-
setFulfillmentCenterId
public void setFulfillmentCenterId(java.util.Hashtable ahshFulfillmentCenterId)
Sets the fulfillment center id to be stored in OrderItem.- Specified by:
setFulfillmentCenterId
in interfaceOrderItemAddCmd
- Specified by:
setFulfillmentCenterId
in interfaceOrderItemUpdateCmd
- Overrides:
setFulfillmentCenterId
in classOrderItemBaseCmdImpl
- Parameters:
ahshFulfillmentCenterId
- a hashtable of fulfillment center id.
-
setPrice
public void setPrice(java.util.Hashtable ahshPrice)
Sets the price.- Specified by:
setPrice
in interfaceAdminQuoteItemUpdateCmd
- Parameters:
ahshPrice
- a hashtable of price
-
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties) throws ECException
Sets the request properties. It calls super.setRequestProperties.- Specified by:
setRequestProperties
in interfaceControllerCommand
- Overrides:
setRequestProperties
in classcom.ibm.commerce.quote.commands.QuoteItemBaseCmdImpl
- Parameters:
aRequestProperties
- request properties.- Throws:
ECException
- the exception is thrown if the super.setRequestProperties throws the exception.
-
setNewTradingId
public void setNewTradingId(java.lang.Long anTradingId)
Sets the trading id to be stored in OrderItem.- Parameters:
anTradingId
- the trading id to be stored in OrderItem.
-
-