|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl
This is the base class for OrderItemAdd and OrderItemUpdate.
Field Summary | |
static java.lang.String |
CLASS_NAME
|
static java.lang.String |
COPYRIGHT
|
static int |
GENERATED_ORDERITEM
|
protected com.ibm.commerce.orderitems.commands.ATPParameters |
iATPParms
|
protected boolean |
iCommandExecuted
|
protected java.util.Hashtable |
ihsATPParmsDefaults
|
protected java.util.Hashtable |
ihshAddress_id
|
protected java.util.Hashtable |
ihshAttr_name
|
protected java.util.Hashtable |
ihshAttr_value
|
protected java.util.Hashtable |
ihshCatentry_id
|
protected java.util.Hashtable |
ihshComment
|
protected java.util.Hashtable |
ihshConfigurationId
|
protected java.util.Hashtable |
ihshContract_id
|
protected java.util.Hashtable |
ihshCorrelationGroup
|
protected java.util.Hashtable |
ihshDescription
|
protected java.util.Hashtable |
ihshField1
|
protected java.util.Hashtable |
ihshField2
|
protected java.util.Hashtable |
ihshKey
|
protected java.util.Hashtable |
ihshMember_id
|
protected java.util.Hashtable |
ihshOffer_id
|
protected java.util.Hashtable |
ihshOrderitem_id
|
protected java.util.Hashtable |
ihshOrderResourceList
|
protected java.util.Hashtable |
ihshOutOrderItemId
|
protected java.util.Hashtable |
ihshPart_number
|
protected java.util.Hashtable |
ihshQuantity
|
protected java.util.Hashtable |
ihshShipmode_id
|
protected java.util.Hashtable |
ihshStoreResourceList
|
protected java.util.Hashtable |
ihshUom
|
protected java.lang.String[] |
iList_id
|
protected java.lang.Long |
iList_order_id
|
protected java.lang.String |
iNew_order_id
|
protected boolean |
iNewQuantity
|
protected java.lang.Long |
inItemSpecId
|
protected java.lang.String |
iOrder_desc
|
protected TypedProperty |
iOrderIdProperty
|
protected java.lang.String[] |
iOut_order_name
|
protected java.lang.String[] |
iOut_orderitem_name
|
protected java.util.Vector |
iResolvedOrderIdList
|
protected TypedProperty |
iResolvedRequestProperties
|
protected AccessVector |
iResourcelist
|
protected java.util.Hashtable |
iUniqueOrderIdList
|
protected java.util.Hashtable |
iUniqueOrderitemIdList
|
protected java.util.Hashtable |
iUniqueStoreIdList
|
protected java.lang.String[] |
iValidInputPOrderValues
|
protected java.util.Vector |
ivecComponentList
|
static int |
MANUAL_FULFILLMENT_CENTER
|
static int |
MANUAL_PRICE
|
static int |
NORMAL_ORDERITEM
|
protected static java.lang.String |
STR_ADDRESS_ID
|
protected static java.lang.String |
STR_ATTR_NAME
|
protected static java.lang.String |
STR_ATTR_VALUE
|
protected static java.lang.String |
STR_CATENTRY_ID
|
protected static java.lang.String |
STR_COMMENT
|
protected static java.lang.String |
STR_CONFIGURATION_ID
|
protected static java.lang.String |
STR_CONTRACT_ID
|
protected static java.lang.String |
STR_CORRELATION_GROUP
|
protected static java.lang.String |
STR_DESCRIPTION
|
protected static java.lang.String |
STR_FIELD1
|
protected static java.lang.String |
STR_FIELD2
|
static java.lang.String |
STR_INVALID_INPUT_ERROR_VIEW
|
protected static java.lang.String |
STR_LIST_ID
|
protected static java.lang.String |
STR_MEMBER_ID
|
protected static java.lang.String |
STR_OFFER_ID
|
protected static java.lang.String |
STR_ORDER_DESC
|
protected static java.lang.String |
STR_ORDER_ID
|
protected static java.lang.String |
STR_ORDERITEM_ID
|
protected static java.lang.String |
STR_OUT_ORDER_NAME
|
protected static java.lang.String |
STR_OUT_ORDERITEM_NAME
|
protected static java.lang.String |
STR_PART_NUMBER
|
protected static java.lang.String |
STR_QUANTITY
|
protected static java.lang.String |
STR_SHIPMODE_ID
|
protected static java.lang.String |
STR_STORE_ID
|
protected static java.lang.String |
STR_UOM
|
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.orderitems.commands.OrderItemAddCmd |
badPartNumberErrorView, badPartNumberList, badPartNumberQuantityList, defaultCommandClassName, goodPartNumberList, goodPartNumberQuantityList, NAME |
Fields inherited from interface com.ibm.commerce.orderitems.commands.OrderItemUpdateCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
OrderItemBaseCmdImpl()
|
Method Summary | |
protected void |
checkBuyable(java.lang.Long catentry_id)
Checks whether the catalog entry is buyable and available in the store. |
protected void |
checkProductEntitlement(java.lang.Long catentry_id,
java.lang.Long member_id)
Checks whether the user is entitled to buy this product. |
protected void |
checkValidStatus(OrderAccessBean orderAB)
Checks whether the status of the order is valid when you modify the order. |
protected java.lang.String |
createOrder()
Creates a new order. |
protected java.lang.Long |
getAddressId(java.lang.Integer i)
Gets the input parameter addressId with enumeration group i. |
com.ibm.commerce.fulfillment.commands.ATPParameters |
getATPParms()
Gets the input ATP parameters. |
protected java.util.Hashtable |
getAttributeNVP(java.lang.Integer i)
Gets the input parameter attrName_i and attrValue_i and puts them into a hashtable. |
protected java.lang.Long |
getCatEntryId(java.lang.Integer i)
Gets the input parameter catEntryId with enumeration group i. |
protected java.lang.String |
getComment(java.lang.Integer i)
Gets the input parameter comment with enumeration group i. |
protected java.lang.String |
getConfigurationId(java.lang.Integer i)
Gets the input parameter configurationId with enumeration group i. |
protected java.lang.Long[] |
getContractId(java.lang.Integer i)
Gets the input parameter contarctId with enumeration group i. |
protected java.lang.Long |
getCorrelationGroup(java.lang.Integer i)
Gets the input parameter correlationGroup with enumeration group i. |
protected java.lang.String |
getDescription(java.lang.Integer i)
Gets the input parameter Description with enumeration group i. |
protected java.lang.Integer |
getField1(java.lang.Integer i)
Gets the input parameter field1 with enumeration group i. |
protected java.lang.String |
getField2(java.lang.Integer i)
Gets the input parameter field2 with enumeration group i. |
protected java.lang.Long |
getItemSpecId()
Gets the itemSpecId. |
protected java.lang.Long |
getMemberId(java.lang.Integer i)
Gets the input parameter memberId with enumeration group i. |
java.lang.Long |
getNewOrderId()
Gets the id of the newly created order. |
java.util.Hashtable |
getNewOrderItemIds()
Gets a list ids of newly created order items. |
protected java.lang.Long[] |
getOfferId(java.lang.Integer i)
Gets the input parameter offerId with enumeration group i. |
protected java.lang.String |
getOrderDesc()
Gets the input parameter OrderDesc. |
protected java.lang.String[] |
getOrderId()
Gets the resolved order ids. |
java.lang.String[] |
getOrderIds()
Return a list of order ids which are touched or created by the command. |
protected java.lang.Long |
getOrderItemId(java.lang.Integer i)
Gets the input parameter orderItemId with enumeration group i. |
java.lang.String[] |
getOrderItemIds()
Return a list of order item ids which are created or updated by the command. |
protected java.lang.String |
getPartNumber(java.lang.Integer i)
Gets the input parameter partNumber with enumeration group i. |
protected java.lang.Double |
getQuantity(java.lang.Integer i)
Gets the input parameter quantity with enumeration group i. |
TypedProperty |
getResolvedRequestProperties()
Gets the resolved request properties. |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
protected QuantityAmount |
getRoundedQuantityAmount(java.lang.Long catentry_id,
java.lang.Double quantity)
Returns a rounded quantity amount based on the catalog entry. |
protected java.lang.Integer |
getShipModeId(java.lang.Integer i)
Gets the input parameter shipModeId with enumeration group i. |
UserAccessBean |
getTheUser()
Returns super.getUser(). |
java.lang.Long |
getTheUserId()
Returns super.getUserId(). |
protected java.lang.Long[] |
getTradingId(java.lang.Integer i)
Gets the input parameter contractId with enumeration group i. |
protected java.lang.String |
getUOM(java.lang.Integer i)
Gets the input parameter UOM with enumeration group i. |
protected void |
insertAddressId(OrderItemAccessBean orderitemAB,
java.lang.Integer i)
Inserts a default address to the order item. |
protected void |
insertItemSpecId(OrderItemAccessBean orderitemAB)
Inserts an item spec id to the order item. |
protected void |
insertOrderItem(java.lang.Integer i,
java.lang.Long catentry_id)
Inserts a new order item to each resolved orders. |
protected void |
insertOrderItem(InterestItemAccessBean iitemAB)
Creates a new order item based on the interest item and insert into the order. |
protected void |
insertPartNumber(OrderItemAccessBean orderitemAB,
java.lang.Integer i)
Inserts the part number to the order item. |
protected void |
invalidateAllocation(OrderItemAccessBean aabOI)
Invalidate the allocation for the order item. |
boolean |
isReadyToCallExecute()
isReadyToCallExecute method is called by the Targettable Command frame work before the execution of the command. |
protected void |
migrateInterestItemsToOrderItems()
Migrate all interest items to order items when listId is specified. |
void |
performExecute()
For each enumeration group i: it checks whether the parameters orderItemId_i, partNumber_i or catEntryId_i are specified. If the parameter orderItemId_i is specified, the parameters partNumber_i and catEntryId_i are ignored. If the parameters partNumber_i is specified, the parameter catEntryId_i is ignored. If orderItemId_i is specified, it updates the order item by calling updateOrderItem(i, orderItemId); If partNumber_i or catEntryId_i are specified, it creates a new order item by calling insertOrderItem(i, catEntryId); In case of partNumber_i is specified, the catEntryId_i is found in the CATENTRY table by partNumber_i and memberId_i. |
void |
reset()
This method should be called after a command has been executed to reset its states variables. |
protected void |
resolveOrderId()
Resolves order ids by calling MiscCmd.getListOfPendingOrders(). |
void |
setAddressId(java.util.Hashtable ahshAddress_id)
Set the address id parameters (optional). |
void |
setATPParms(com.ibm.commerce.fulfillment.commands.ATPParameters newATPParms)
Set the ATP parameters. |
void |
setAttrName(java.util.Hashtable ahshAttr_name)
Set the attribute name parameters (optional). |
void |
setAttrValue(java.util.Hashtable ahshAttr_value)
Set the attribute value parameters (optional). |
void |
setCatEntryId(java.util.Hashtable ahshCatentry_id)
Set the attribute name parameters. |
void |
setComment(java.util.Hashtable ahshComment)
Set the comment parameters (optional). |
void |
setConfigurationId(java.util.Hashtable ahshConfigurationId)
Set the configurationId parameter. |
void |
setContractId(java.util.Hashtable ahshContract_id)
Set the contract id parameters (optional). |
void |
setCorrelationGroup(java.util.Hashtable ahshCorrelationGroup)
Set the correlation group parameters. |
void |
setDescription(java.util.Hashtable ahshDescription)
Set the description parameters (optional). |
void |
setField1(java.util.Hashtable ahshField1)
Set the field1 parameters (optional). |
void |
setField2(java.util.Hashtable ahshField2)
Set the field2 parameters (optional). |
protected void |
setItemSpecId(java.lang.Long anItemSpecId)
Sets the ItemSpecId |
void |
setListId(java.lang.String[] aList_id)
Set the interest item list id parameters (optional). |
void |
setMemberId(java.util.Hashtable ahshMember_id)
Set the member id parameters (optional). |
void |
setOfferId(java.util.Hashtable ahshOffer_id)
Set the offer id parameters (optional). |
void |
setOrderDesc(java.lang.String aOrder_desc)
Set the Order description parameter (optional). |
void |
setOrderId(java.lang.String[] aOrder_id)
Set the order id parameters (optional). |
void |
setOrderItemId(java.util.Hashtable ahshOrderitem_id)
Set the order item ids for which to update. |
void |
setOutOrderItemName(java.lang.String[] aOut_orderitem_name)
Set the out order item name parameters (optional). |
void |
setOutOrderName(java.lang.String[] aOut_order_name)
Set the out order name parameters (optional). |
void |
setPartNumber(java.util.Hashtable ahshPart_number)
Set the part number parameters (optional). |
void |
setQuantity(java.util.Hashtable ahshQuantity)
Set the quantity parameters. |
void |
setQuantity(java.lang.Integer i,
java.lang.Double aQuantity)
Set the quantity parameters. |
void |
setRequestProperties(TypedProperty aRequestProperties)
The WebController calls this method before invoking the execute method in this command to set the request properties for this command. |
void |
setShipmodeId(java.util.Hashtable ahshShipmode_id)
Set the ship mode id parameters (optional). |
void |
setTradingId(java.util.Hashtable ahshTrading_id)
Set the trading id parameters (optional). |
void |
setUom(java.util.Hashtable ahshUom)
Set the unit of measure parameters (optional). |
protected void |
unLockOrder(java.lang.String orderId)
Unlocks the order. |
protected void |
updateAddressId(OrderItemAccessBean orderitemAB,
java.lang.Integer i)
Updates the address for the order item. |
protected void |
updateAllShippingAndAddress()
It calls updateShippingAndAddress() to update the shipping address and shipping mode for each order item. |
protected void |
updateComponentList(OrderItemAccessBean orderitemAB,
java.lang.Integer i)
Updates the component list for the order item. |
protected void |
updateCorrelationGroup(OrderItemAccessBean orderitemAB,
java.lang.Integer i)
Updates the correlation group for the order item. |
protected void |
updateCurrency(OrderAccessBean orderAB)
Updates the currency for the order. |
protected void |
updateFulfillmentCenter()
Updates the fulfillment centers and checks for available inventory for all order items modified or created. |
protected void |
updateItemSpecId(OrderItemAccessBean orderitemAB)
Updates the item spec id for the order item. |
protected void |
updateOrderItem(java.lang.Integer i,
java.lang.Long orderitem_id)
Updates the order item. |
protected void |
updateOrderItem(OrderItemAccessBean orderitemAB,
java.lang.Integer i)
Updates the order item. |
protected void |
updateOutOrderItemId()
Adds the ids of the newly created order items to the response properties with key being the input parameter value of outOrderItemName concatenated with "_i" and the value being the id of the order item. |
protected void |
updateOutOrderItemName()
Adds the ids of the created and updated order items to the response properties with key being the input parameter value of outOrderItemName and the value being the String array of order item ids. |
protected void |
updateOutOrderName()
Adds the ids of the created and updated orders to the response properties with key being the input parameter value of outOrderName and the value being the String array of order ids. |
protected void |
updatePrice(OrderItemAccessBean orderitemAB,
java.lang.Integer i)
Calculates the best price for the input orderitem. |
protected boolean |
updateQuantity(OrderItemAccessBean orderitemAB,
java.lang.Integer i)
Updates the quantity for the order item. |
protected void |
updateResourceList()
Updates the resources list. |
protected void |
updateShipModeId(OrderItemAccessBean orderitemAB,
java.lang.Integer i)
Updates the shipping mode id for the order item. |
protected void |
updateShippingAndAddress(OrderItemAccessBean orderitemAB,
java.lang.Integer i)
It calls updateAddressId() and updateShipModeId() to update the shipping address and shipping mode for the order item. |
void |
validateParameters()
Verify the input parameters. |
protected void |
validateTradingPaymentMethods()
Validate the trading agreements used by the orderitems in an order by checking if they define compatible payment methods and are associated with the same account as the other orderitems in the order. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String CLASS_NAME
public static final java.lang.String COPYRIGHT
public static final int GENERATED_ORDERITEM
protected com.ibm.commerce.orderitems.commands.ATPParameters iATPParms
protected boolean iCommandExecuted
protected java.util.Hashtable ihsATPParmsDefaults
protected java.util.Hashtable ihshAddress_id
protected java.util.Hashtable ihshAttr_name
protected java.util.Hashtable ihshAttr_value
protected java.util.Hashtable ihshCatentry_id
protected java.util.Hashtable ihshComment
protected java.util.Hashtable ihshConfigurationId
protected java.util.Hashtable ihshContract_id
protected java.util.Hashtable ihshCorrelationGroup
protected java.util.Hashtable ihshDescription
protected java.util.Hashtable ihshField1
protected java.util.Hashtable ihshField2
protected java.util.Hashtable ihshKey
protected java.util.Hashtable ihshMember_id
protected java.util.Hashtable ihshOffer_id
protected java.util.Hashtable ihshOrderitem_id
protected java.util.Hashtable ihshOrderResourceList
protected java.util.Hashtable ihshOutOrderItemId
protected java.util.Hashtable ihshPart_number
protected java.util.Hashtable ihshQuantity
protected java.util.Hashtable ihshShipmode_id
protected java.util.Hashtable ihshStoreResourceList
protected java.util.Hashtable ihshUom
protected java.lang.String[] iList_id
protected java.lang.Long iList_order_id
protected java.lang.String iNew_order_id
protected boolean iNewQuantity
protected java.lang.Long inItemSpecId
protected java.lang.String iOrder_desc
protected TypedProperty iOrderIdProperty
protected java.lang.String[] iOut_order_name
protected java.lang.String[] iOut_orderitem_name
protected java.util.Vector iResolvedOrderIdList
protected TypedProperty iResolvedRequestProperties
protected AccessVector iResourcelist
protected java.util.Hashtable iUniqueOrderIdList
protected java.util.Hashtable iUniqueOrderitemIdList
protected java.util.Hashtable iUniqueStoreIdList
protected java.lang.String[] iValidInputPOrderValues
protected java.util.Vector ivecComponentList
public static final int MANUAL_FULFILLMENT_CENTER
public static final int MANUAL_PRICE
public static final int NORMAL_ORDERITEM
protected static final java.lang.String STR_ADDRESS_ID
protected static final java.lang.String STR_ATTR_NAME
protected static final java.lang.String STR_ATTR_VALUE
protected static final java.lang.String STR_CATENTRY_ID
protected static final java.lang.String STR_COMMENT
protected static final java.lang.String STR_CONFIGURATION_ID
protected static final java.lang.String STR_CONTRACT_ID
protected static final java.lang.String STR_CORRELATION_GROUP
protected static final java.lang.String STR_DESCRIPTION
protected static final java.lang.String STR_FIELD1
protected static final java.lang.String STR_FIELD2
public static final java.lang.String STR_INVALID_INPUT_ERROR_VIEW
protected static final java.lang.String STR_LIST_ID
protected static final java.lang.String STR_MEMBER_ID
protected static final java.lang.String STR_OFFER_ID
protected static final java.lang.String STR_ORDER_DESC
protected static final java.lang.String STR_ORDER_ID
protected static final java.lang.String STR_ORDERITEM_ID
protected static final java.lang.String STR_OUT_ORDER_NAME
protected static final java.lang.String STR_OUT_ORDERITEM_NAME
protected static final java.lang.String STR_PART_NUMBER
protected static final java.lang.String STR_QUANTITY
protected static final java.lang.String STR_SHIPMODE_ID
protected static final java.lang.String STR_STORE_ID
protected static final java.lang.String STR_UOM
Constructor Detail |
public OrderItemBaseCmdImpl()
Method Detail |
protected void checkBuyable(java.lang.Long catentry_id) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
ECApplicationException
- with message key _ERR_PROD_NOT_ORDERABLE if the product is not buyable.ECApplicationException
- with message key _ERR_CATENTRY_NOT_EXISTING_IN_STORE if the product is not available in the store.protected void checkProductEntitlement(java.lang.Long catentry_id, java.lang.Long member_id) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
ECApplicationException
- with message key _ERR_PS_ENTRY_INVALID if the user is not entitled to buy this product.protected void checkValidStatus(OrderAccessBean orderAB) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
ECApplicationException
- with message key _ERR_ORDER_WRONG_STATUS if the status is not valid.protected java.lang.String createOrder() throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected java.lang.Long getAddressId(java.lang.Integer i) throws InvalidParameterValueException
public com.ibm.commerce.fulfillment.commands.ATPParameters getATPParms()
protected java.util.Hashtable getAttributeNVP(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.Long getCatEntryId(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.String getComment(java.lang.Integer i)
protected java.lang.String getConfigurationId(java.lang.Integer i)
protected java.lang.Long[] getContractId(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.Long getCorrelationGroup(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.String getDescription(java.lang.Integer i)
protected java.lang.Integer getField1(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.String getField2(java.lang.Integer i)
protected java.lang.Long getItemSpecId()
protected java.lang.Long getMemberId(java.lang.Integer i) throws InvalidParameterValueException
public java.lang.Long getNewOrderId()
public java.util.Hashtable getNewOrderItemIds()
protected java.lang.Long[] getOfferId(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.String getOrderDesc()
protected java.lang.String[] getOrderId() throws ECException
public java.lang.String[] getOrderIds()
getOrderIds
in interface OrderItemAddCmd
protected java.lang.Long getOrderItemId(java.lang.Integer i) throws InvalidParameterValueException
public java.lang.String[] getOrderItemIds()
getOrderItemIds
in interface OrderItemAddCmd
protected java.lang.String getPartNumber(java.lang.Integer i)
protected java.lang.Double getQuantity(java.lang.Integer i) throws InvalidParameterValueException
public TypedProperty getResolvedRequestProperties()
getResolvedRequestProperties
in interface ControllerCommand
getResolvedRequestProperties
in class ControllerCommandImpl
com.ibm.commerce.command.ControllerCommand
public AccessVector getResources() throws ECException
ECCommand
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
protected QuantityAmount getRoundedQuantityAmount(java.lang.Long catentry_id, java.lang.Double quantity) throws ECException
protected java.lang.Integer getShipModeId(java.lang.Integer i) throws InvalidParameterValueException
public UserAccessBean getTheUser() throws ECSystemException
public java.lang.Long getTheUserId()
protected java.lang.Long[] getTradingId(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.String getUOM(java.lang.Integer i)
protected void insertAddressId(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void insertItemSpecId(OrderItemAccessBean orderitemAB) throws ECException
protected void insertOrderItem(java.lang.Integer i, java.lang.Long catentry_id) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void insertOrderItem(InterestItemAccessBean iitemAB) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void insertPartNumber(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void invalidateAllocation(OrderItemAccessBean aabOI) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public boolean isReadyToCallExecute()
AbstractECTargetableCommand
isReadyToCallExecute
in class AbstractECTargetableCommand
com.ibm.commerce.command.AbstractECTargetableCommand
protected void migrateInterestItemsToOrderItems() throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void reset()
AbstractECTargetableCommand
reset
in class AbstractECTargetableCommand
protected void resolveOrderId() throws ECException
public void setAddressId(java.util.Hashtable ahshAddress_id)
setAddressId
in interface OrderItemAddCmd
com.ibm.commerce.orderitems.commands.OrderItemAddCmd
ahshAddress_id
- Contains a list of address ids. The key is the enumeration group (Integer)
and the value is the address id (String). For example, if you have input parameters: addressId_1=123&addressId=234,
the hashtable can be constructed by:
ahshAddress_id.put(new Integer(1), new String("123")); ahshAddress_id.put(new Integer(2), new String("234"));
public void setATPParms(com.ibm.commerce.fulfillment.commands.ATPParameters newATPParms)
public void setAttrName(java.util.Hashtable ahshAttr_name)
OrderItemAddCmd
setAttrName
in interface OrderItemAddCmd
com.ibm.commerce.orderitems.commands.OrderItemAddCmd
ahshAttr_name
- Contains a list of attribute names. The key is the enumeration group (Integer)
and the value is the attribute name (String[]). For example, if you have input parameters:
attrName_1=123&attrName_1=234&attrName_2=123,
the hashtable can be constructed by:
ahshAttr_name.put(new Integer(1), new String[] {"123", "234"}); ahshAttr_name.put(new Integer(2), new String[] {"123"});
public void setAttrValue(java.util.Hashtable ahshAttr_value)
setAttrValue
in interface OrderItemAddCmd
public void setCatEntryId(java.util.Hashtable ahshCatentry_id)
setCatEntryId
in interface OrderItemAddCmd
public void setComment(java.util.Hashtable ahshComment)
setComment
in interface OrderItemAddCmd
public void setConfigurationId(java.util.Hashtable ahshConfigurationId)
setConfigurationId
in interface OrderItemAddCmd
public void setContractId(java.util.Hashtable ahshContract_id)
setContractId
in interface OrderItemAddCmd
public void setCorrelationGroup(java.util.Hashtable ahshCorrelationGroup)
setCorrelationGroup
in interface OrderItemAddCmd
public void setDescription(java.util.Hashtable ahshDescription)
setDescription
in interface OrderItemAddCmd
public void setField1(java.util.Hashtable ahshField1)
setField1
in interface OrderItemAddCmd
public void setField2(java.util.Hashtable ahshField2)
setField2
in interface OrderItemAddCmd
protected void setItemSpecId(java.lang.Long anItemSpecId) throws ECException
public void setListId(java.lang.String[] aList_id)
setListId
in interface OrderItemAddCmd
public void setMemberId(java.util.Hashtable ahshMember_id)
setMemberId
in interface OrderItemAddCmd
public void setOfferId(java.util.Hashtable ahshOffer_id)
setOfferId
in interface OrderItemAddCmd
public void setOrderDesc(java.lang.String aOrder_desc)
setOrderDesc
in interface OrderItemAddCmd
public void setOrderId(java.lang.String[] aOrder_id)
setOrderId
in interface OrderItemAddCmd
public void setOrderItemId(java.util.Hashtable ahshOrderitem_id)
setOrderItemId
in interface OrderItemUpdateCmd
public void setOutOrderItemName(java.lang.String[] aOut_orderitem_name)
setOutOrderItemName
in interface OrderItemAddCmd
public void setOutOrderName(java.lang.String[] aOut_order_name)
setOutOrderName
in interface OrderItemAddCmd
public void setPartNumber(java.util.Hashtable ahshPart_number)
setPartNumber
in interface OrderItemAddCmd
public void setQuantity(java.util.Hashtable ahshQuantity)
setQuantity
in interface OrderItemAddCmd
public void setQuantity(java.lang.Integer i, java.lang.Double aQuantity)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
ControllerCommand
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
com.ibm.commerce.command.ControllerCommand
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.
- public void setShipmodeId(java.util.Hashtable ahshShipmode_id)
setShipmodeId
in interface OrderItemAddCmd
public void setTradingId(java.util.Hashtable ahshTrading_id)
setTradingId
in interface OrderItemAddCmd
public void setUom(java.util.Hashtable ahshUom)
setUom
in interface OrderItemAddCmd
protected void unLockOrder(java.lang.String orderId) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateAddressId(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateAllShippingAndAddress() throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateComponentList(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateCorrelationGroup(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateCurrency(OrderAccessBean orderAB) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateFulfillmentCenter() throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateItemSpecId(OrderItemAccessBean orderitemAB) throws ECException
protected void updateOrderItem(java.lang.Integer i, java.lang.Long orderitem_id) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
ECApplicationException
- with message key _ERR_INVALID_ORDER_ITEM_ID if the order item cannot
be found in the database.protected void updateOrderItem(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateOutOrderItemId()
protected void updateOutOrderItemName()
protected void updateOutOrderName()
protected void updatePrice(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
If price has been obtainted previously, the price will be refreshed according to the Price Refresh Flag (PRICEREFFLAGS) in STORE as follows: 0: Default, same as 1 except that it will not save the trading id and the offer id. 1: This means useCurrentOnly. This uses the prices directly referenced by the OrderItems. Fail if they can no longer be used. 2: This means useCurrentOrSearchAgain. This is the same as useCurrentOnly, but instead of failing when they can no longer be used, it searches the ones that were originally searched when the OrderItems were created or updated with new trading ids/offer ids specified. 4: This means alwaysSearchAgain. This option always searches the prices that were originally searched when the OrderItems were created or updated with new trading ids/offer ids specified.
orderitemAB
- the access bean of the orderitem whose price is to be calculated.i
- the enumeration group.protected boolean updateQuantity(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateResourceList() throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
protected void updateShipModeId(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateShippingAndAddress(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
ECException.
- protected void validateTradingPaymentMethods() throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |