public class RFQCreateCmdImpl extends OfferingBaseCmdImpl implements RFQCreateCmd
This command calls the following TaskCommands:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
RFQCreateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
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, java.lang.Double priceAdjust, java.lang.Long orderItemId, java.lang.Integer negotiationType, java.lang.Long customfield1, java.lang.Integer customfield2, java.lang.String customfield3, java.lang.String customfield4)
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 description. 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.
|
public static final java.lang.String COPYRIGHT
public void reset()
public AccessVector getResources() throws ECException
public void createBasicOffering() throws ECException
public java.lang.Long createItem(java.lang.String itemname, java.lang.String shortdesc, java.lang.Long productid) throws ECException
public void createRFQCatentryRel(java.lang.Long catentryId, java.math.BigDecimal price, java.lang.Double quantity, java.lang.String currency, java.lang.String qtyunit, java.lang.Double priceAdjust, java.lang.Long orderItemId, java.lang.Integer negotiationType, java.lang.Long customfield1, java.lang.Integer customfield2, java.lang.String customfield3, java.lang.String customfield4) throws ECException
public java.lang.String determineCatentryType(java.lang.Long catentryId) throws ECException
public void doAcknowledgment() throws ECException
public java.util.Vector getOriginalProducts()
public void performExecute() throws ECException
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void processComments() throws ECException
public void processProductAttributes() throws ECException
public void setOriginalProducts(java.util.Vector OriginalProducts)
public void updateCatentryIdInAllVectors(java.lang.Long originalProductId, java.lang.Long itemId) throws ECException
public void validateParameters() throws ECException