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.RFQCreateCmdImpl
This is the default implementation of the RFQCreateCmd.
This command calls the following TaskCommands:
CreateRFQBasicInfo
CreateRFQItemCmd
CreateRFQCatentryRel
CreateOrderCommentsTCCmd
CreateOrderItemPAttributeTCCmd
CreateRFQItemAttributeCmd
CatalogEntryAccessBean
RFQProduct
Field Summary | |
---|---|
protected
AccessVector |
iResourcelist Access Vector. |
java.util.Vector |
originalProducts Original Product 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. RFQCreateCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Constructor Summary | |
---|---|
RFQCreateCmdImpl() |
Method Summary | |
---|---|
void |
createBasicOffering()
Calls the CreateRFQBasicInfoCmd task command to create RFQ
information. |
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 qtyunit) Calls the CreateRFQCatentryRel task command to create the association between an item and the RFQ . |
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. |
AccessVector |
getResources() Return the access Vector for access control |
void |
performExecute() Creates the RFQ. |
void |
processComments() Processes freeform comments for the RFQ and each item in the RFQ. |
void |
processProductAttributes() Processes standard and personalized attributes for each item in the RFQ. |
void |
reset() Reset the command. |
void |
setOriginalProducts(java.util.Vector OriginalProducts) Sets a member variable to the incoming vector of catalog entry IDs. |
void |
setRequestProperties(
TypedProperty reqParms)
Calls super.setRequestProperties to retrieve the rfq Id and the
attach file content.
After this, retrieve that attachment descrition.
The WebController calls the setRequestProperties method before invoking the
execute method in this command. |
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,
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,
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 java.util.Vector originalProducts
protected AccessVector iResourcelist
Constructor Detail |
---|
public RFQCreateCmdImpl()
Method Detail |
---|
public void reset()
reset
in class
OfferingBaseCmdImpl
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
ECCommand.getResources()
public void createBasicOffering() throws ECException
ECException
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 qtyunit) throws ECException
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.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 void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
ECCommand.performExecute()
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
OfferingBaseCmdImpl
reqParms
- request properties
ECApplicationException
ControllerCmd#setRequestProperties(TypedProperty)
public void processComments() throws ECException
ECException
public void processProductAttributes() throws ECException
ECException
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()