java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl | +--com.ibm.commerce.orderitems.commands.OrderItemUpdateCmdImpl | +--com.ibm.commerce.requisitionlist.commands.RequisitionListItemUpdateCmdImpl
Add, update and delete items in a requisition list. This command uses the following AccessBeans:
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
protected
java.lang.Long |
iRequisitionListId The id of the requisition list. |
protected
java.lang.String |
iRequisitionListName The name of the requisition list. |
protected
java.lang.String |
iRequisitionListStatus The status of the requisition list. |
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.requisitionlist.commands. RequisitionListItemUpdateCmd |
defaultCommandClassName,
NAME,
RLBadPartNumberErrorView,
RLInvalidInputErrorView |
Fields inherited from interface com.ibm.commerce.orderitems.commands. OrderItemAddCmd |
badPartNumberErrorView,
badPartNumberList,
badPartNumberQuantityList,
defaultCommandClassName,
goodPartNumberList,
goodPartNumberQuantityList,
multiplePartNumberCatalogEntriesList,
multiplePartNumberList,
multiplePartNumberQuantityList,
NAME |
Constructor Summary | |
---|---|
RequisitionListItemUpdateCmdImpl() |
Method Summary | |
---|---|
protected
void |
checkValidStatus(
OrderAccessBean orderAB) It checks the validation of the order status. |
protected
java.lang.Long |
getRequisitionListId() Returns the id of the requisition list. |
AccessVector |
getResources() It returns the order access bean. |
protected
void |
migrateInterestItemsToOrderItems() It does nothing. |
void |
performExecute() It just calls super.performExecute() to do work. If the super class throws exception with error view badPartNumberErrorView, it changes the error view to RLBadPartNumberErrorView. If the super class throws exception with error view InvalidInputErrorView, it changes the error view to RLInvalidInputErrorView. |
void |
reset() Reset all instance variables. |
protected
void |
resolveOrderId() It overwrites the method in the super class. |
void |
setName(java.lang.String name) Specifies the requisition list name. |
void |
setRequestProperties(
TypedProperty reqProperties) Sets the request properties. |
void |
setRequisitionListId(java.lang.Long id) Specifies the requisition list id. |
void |
setStatus(java.lang.String status) Specifies the status of the requisition list. |
protected
void |
unLockOrder(java.lang.String orderId) It unlocks the order. |
protected
void |
updateFulfillmentCenter() It does nothing. |
protected
void |
updateOrderItem(
OrderItemAccessBean orderitemAB, java.lang.Integer i) It updates the order item. |
protected
void |
updateOutOrderName() It adds the order id and the requisition list id to the output response property. |
protected
void |
updatePrice() It does nothing. |
protected
void |
updateRequisitionListName() It updates the requisition list name. |
void |
validateParameters() Validate the input parameters. |
protected
void |
validateTradingPaymentMethods() Does nothing. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.orderitems.commands. OrderItemUpdateCmd |
getDeletedOrderItemIds,
getNewOrderItemIds,
getOrderIds,
getOrderItemIds,
setAddressId,
setAttrName,
setAttrValue,
setCatEntryId,
setComment,
setConfigurationId,
setContinue,
setContractId,
setCorrelationGroup,
setDescription,
setExpandConfigurationId,
setField1,
setField2,
setListId,
setMemberId,
setOfferId,
setOrderComment,
setOrderDesc,
setOrderId,
setOrderItemId,
setOutOrderItemName,
setOutOrderName,
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.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.Long iRequisitionListId
protected java.lang.String iRequisitionListStatus
protected java.lang.String iRequisitionListName
Constructor Detail |
---|
public RequisitionListItemUpdateCmdImpl()
Method Detail |
---|
protected void checkValidStatus(OrderAccessBean orderAB) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
checkValidStatus
in class
OrderItemBaseCmdImpl
orderAB
- order access bean.ECException
FinderException
CreateException
javax.naming.NamingException
java.rmi.RemoteException
java.sql.SQLException
protected java.lang.Long getRequisitionListId()
public AccessVector getResources()
getResources
in interface
ECCommand
getResources
in class
OrderItemBaseCmdImpl
ECException
protected void migrateInterestItemsToOrderItems()
migrateInterestItemsToOrderItems
in class
OrderItemBaseCmdImpl
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
OrderItemBaseCmdImpl
ECException
public void reset()
reset
in class
OrderItemBaseCmdImpl
protected void resolveOrderId() throws ECException
resolveOrderId
in class
OrderItemBaseCmdImpl
ECException
public void setName(java.lang.String name)
setName
in interface
RequisitionListItemUpdateCmd
name
- requisition list namepublic void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
OrderItemBaseCmdImpl
reqProperties
- request properties.ECException
public void setRequisitionListId(java.lang.Long id)
setRequisitionListId
in interface
RequisitionListItemUpdateCmd
id
- requisition list idpublic void setStatus(java.lang.String status)
setStatus
in interface
RequisitionListItemUpdateCmd
status
- statusprotected void unLockOrder(java.lang.String orderId) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
unLockOrder
in class
OrderItemBaseCmdImpl
orderId
- order idECException
FinderException
CreateException
javax.naming.NamingException
java.rmi.RemoteException
java.sql.SQLException
protected void updateFulfillmentCenter()
updateFulfillmentCenter
in class
OrderItemBaseCmdImpl
protected void updateOrderItem(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
updateOrderItem
in class
OrderItemBaseCmdImpl
orderitemAB
- OrderItemAccessBeani
- enumeration groupECException
FinderException
CreateException
javax.naming.NamingException
java.rmi.RemoteException
java.sql.SQLException
protected void updateOutOrderName()
updateOutOrderName
in class
OrderItemBaseCmdImpl
protected void updatePrice()
updatePrice
in class
OrderItemBaseCmdImpl
protected void updateRequisitionListName() throws ECException
ECException
public void validateParameters() throws ECException
It checks the validation of the follwoing parameter values:
Exception:
validateParameters
in interface
ECCommand
validateParameters
in class
OrderItemBaseCmdImpl
ECException
protected void validateTradingPaymentMethods()
validateTradingPaymentMethods
in class
OrderItemBaseCmdImpl