java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.utf.commands.OfferingBaseCmdImpl | +--com.ibm.commerce.utf.commands.RFQModifyCmdImpl
This is the default implementation of the RFQModifyCmd.
This command calls the following TaskCommands:
CreateRFQItemCmd
ModifyRFQBasicInfoCmd
DeleteOrderItemPAttributeTCCmd
CreateRFQItemAttributeCmd
ModifyOrderItemPAttributeTCCmd
DeleteOrderCommentsTCCmd
CreateOrderCommentsTCCmd
ModifyOrderCommentsTCCmd
RFQProdAccessBean
CatalogEntryAccessBean
OrderTCOrderItemPAttributeAccessBean
PAttrValueAccessBean
PAttributeAccessBean
RFQAccessBean
TermConditionAccessBean
RFQProduct
Field Summary | |
---|---|
boolean |
emptyProductList Empty Product List Flag. |
boolean |
emptyTCList Empty Product T&C Flag. |
java.util.Vector |
originalProducts Original Product List Vector. |
Fields inherited from class com.ibm.commerce.utf.commands. OfferingBaseCmdImpl |
accessType,
accountid,
closingrule,
documentdesc,
documentURL,
domain,
enddate,
endresult,
endtime,
endtimestamp,
longdesc,
mimeencoding,
mimetype,
name,
numbids,
numResponses,
offeringid,
ownerid,
participantList,
prodattrList,
prodComments,
prodList,
ruleType,
shortdesc,
startdate,
starttime,
starttimestamp,
state,
statemachine,
TcElements,
tcList,
tradingengine,
versionid |
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.utf.commands. RFQModifyCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Constructor Summary | |
---|---|
RFQModifyCmdImpl() |
Method Summary | |
---|---|
java.lang.Long |
createItem(java.lang.String itemname, java.lang.String shortdesc,
java.lang.Long productid)
Calls the CreateRFQItemCmd task command to create a new item in the
catalog. |
void |
createRFQCatentryRel(java.lang.Long catentryId,
java.math.BigDecimal price, java.lang.Double quantity,
java.lang.String currency, java.lang.String quantityUnit)
Creates the association between an item and the RFQ . |
void |
deleteRFQCatentryRel()
Calls the DeleteRFQCatentryRelCmd to delete the associations between
the RFQ and one or more items. |
java.lang.String |
determineCatentryType(java.lang.Long catentryId)
Determines the type of a given catalog entry. |
void |
doAcknowledgment() Composes and sends out the response to the browser |
java.util.Vector |
getOriginalProducts() Returns a vector of identifiers of catalog entries that the RFQ buyer had picked. |
boolean |
isEmptyProductList() Returns true if the product list is empty, else returns false. |
boolean |
isEmptyTCList() Returns true if the term-condition list is empty, else returns false. |
void |
modifyBasicOffering()
Calls the ModifyRFQBasicInfoCmd task command to update RFQ
information. |
void |
performExecute() Modifies the RFQ. |
void |
processProductAttributes() Processes standard and personalized attributes for each item in the RFQ. |
void |
processProductComments() Processes freeform comments for each item in the RFQ. |
void |
processTCs() Processes freeform comments for the RFQ. |
void |
setEmptyProductList(boolean newEmptyProductList) Sets a member variable to the incoming boolean value. |
void |
setEmptyProductListFromUrl(java.lang.String s,
boolean isReq) Sets a member variable to the incoming boolean value from the request. |
void |
setEmptyTCList(boolean newEmptyTCList) Sets a member variable to the incoming boolean value. |
void |
setEmptyTCListFromUrl(java.lang.String s, boolean isReq) Sets a member variable to the incoming boolean value from the request. |
void |
setOriginalProducts(java.util.Vector OriginalProducts) Sets a member variable to the incoming vector of catalog entry IDs. |
void |
updateCatentryIdInAllVectors(java.lang.Long originalProductId,
java.lang.Long itemId) Replaces the occurrence of the first parameter originalProductId with the second parameter itemId in three lists : the product list, the product comments list and the product attributes list. When the buyer selects a product and associates it with the RFQ, it causes an item to be created under the covers. |
void |
validateParameters() Checks for validity of incoming parameters. |
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl |
getViewInputProperties |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
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,
getResources,
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.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRequestProperties,
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,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public java.util.Vector originalProducts
public boolean emptyProductList
public boolean emptyTCList
Constructor Detail |
---|
public RFQModifyCmdImpl()
Method Detail |
---|
public java.lang.Long createItem(java.lang.String itemname, java.lang.String shortdesc, java.lang.Long productid) throws ECException
itemname
- The name of the item.shortdesc
- A brief description of the item.productid
- The identifier of the product which will be the
parent catalog entry for this new item.ECException
public void createRFQCatentryRel(java.lang.Long catentryId, java.math.BigDecimal price, java.lang.Double quantity, java.lang.String currency, java.lang.String quantityUnit) throws ECException
Behaviour:
catentryId
- The identifier of the item.price
- The price of the item as specified by the buyer who
created the RFQ.quantity
- The quantity of the item requested by the
buyer.currency
- The currency specified by the buyer.quantityUnit
- An optional unit of measure for the
quantity.ECException
public void deleteRFQCatentryRel() throws ECException
Behaviour:
ECException
public java.lang.String determineCatentryType(java.lang.Long catentryId) throws ECException
catentryId
- The catalog entry identifier.ECException
public void doAcknowledgment() throws ECException
ECException
public java.util.Vector getOriginalProducts()
public boolean isEmptyProductList()
public boolean isEmptyTCList()
public void modifyBasicOffering() throws ECException
ECException
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
ECCommand.performExecute()
public void processProductAttributes() throws ECException
ECException
public void processProductComments() throws ECException
ECException
public void processTCs() throws ECException
ECException
public void setEmptyProductList(boolean newEmptyProductList)
newEmptyProductList
- True if the list of products is empty
for this RFQ. False otherwise.public void setEmptyProductListFromUrl(java.lang.String s, boolean isReq)
s
- The name of the parameter to look for in the tools XML
object.isReq
- If true, implies that the parameter is mandatory. If
the parameter is not found, causes an exception.public void setEmptyTCList(boolean newEmptyTCList)
public void setEmptyTCListFromUrl(java.lang.String s, boolean isReq)
s
- The name of the parameter to look for in the tools XML
object.isReq
- If true, implies that the parameter is mandatory. If
the parameter is not found, causes an exception.public void setOriginalProducts(java.util.Vector OriginalProducts)
public void updateCatentryIdInAllVectors(java.lang.Long originalProductId, java.lang.Long itemId) throws ECException
originalProductId
- The ID of the product selected by the
buyer.itemId
- The ID of the new item that was created under the
covers.ECException
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException
ECCommand.validateParameters()