public class RFQCompleteCmdImpl extends ToolsControllerCommandImpl implements RFQCompleteCmd
This command calls the following TaskCommands/ControllerCommands:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
boolean | nonUTFMessage
Non UTF Message.
|
java.lang.Long | rfqId
RFQ Id.
|
java.lang.Long | rfqOwner
RFQ Owner.
|
Constructor and Description |
---|
RFQCompleteCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean | checkRFQState(java.lang.Integer currentRFQState)
Checks the state of the RFQ.
|
void | createContracts()
Creates a contract for each winning response.
This method does the following: Retrieves the list of winning responses for the incoming RFQ. For each response, performs the following steps. Creates a contract with the same name as the RFQ Response. Creates Shipping Charge TC. Creates Return Charge TC. Creates Return Payment TC. Creates Custom Price List TC. Creates Participant entries for the seller and the buyer.
|
void | createOrders()
Creates an order for each winning response.
|
void | doAcknowledgment()
Composes and sends out the response
|
java.util.Hashtable | getErrorContent()
Returns a hashtable of error codes.
|
AccessVector | getResources()
Gets the access vector accessed by this command.
The protectable resource for this command is the RFQ object that needs to be completed. |
java.lang.Long | getRfqId()
Returns the RFQ identifier.
|
java.lang.Long | getRfqOwner()
Returns the RFQ owner's member Id.
|
java.lang.String | getShippingAddress(java.util.Vector shippingAddressList, java.lang.String catentryId)
Inspects the incoming list of shipping addresses to find the address corresponding to the incoming catalog entry.
|
java.lang.String | getShippingMode(java.util.Vector shippingModeList, java.lang.String catentryId)
Inspects the incoming list of shipping modes to find the mode corresponding to the incoming catalog entry.
|
java.util.Hashtable | getToolXMLObject()
Fetches the XML data prepared by the tools framework.
|
java.lang.String | getWinningResponseName(java.lang.String responseId)
Gets the name of the winning response.
|
boolean | isNonUTFMessage()
Provides an indication whether the error message is an UTF message or not.
|
void | performExecute()
Completes the RFQ by creating a contract or an order for each winning response.
This method does the following: Calls createContracts() if the endresult s a Contract. Calls createOrders() if the endresult is an Order Sets the state of the RFQ to "Complete". Sets the completion time for the RFQ. Raises an UBF event to change the state of all the non-winning responses that are in evaluation for this RFQ
|
void | setError(java.lang.String errorKey, java.lang.String errorParams)
Writes the errorcode into a hashtable
|
void | setError(java.lang.String errorKey, java.lang.String[] errorParams)
Writes the errorcode into a hashtable
|
void | setErrorContent(java.util.Hashtable newErrorContent)
Assigns the incoming hashtable containing error codes and parameters to the errorContent member variable.
|
void | setNonUTFMessage(boolean newNonUTFMessage)
Assigns the incoming boolean value to the nonUTFMessage member variable.
|
void | setRequestProperties(TypedProperty requestProperties)
Assigns the incoming XML object from the tools framework to a member variable toolsXMLObject.
|
void | setRfqId(java.lang.Long newRfqId)
Assigns the incoming RFQ identifier to a member variable.
|
void | setRfqOwner(java.lang.Long newRfqOwner)
Assigns the incoming member identifier of the RFQ owner to a member variable.
|
void | setToolXMLObject(java.util.Hashtable newToolXMLObject)
Sets a member variable to the incoming tools XML object.
|
void | validateParameters()
Validates the incoming parameters for this command.
This method expects the following parameters : offering_id , the reference number of the RFQ that is to be completed This method does the following: Checks if an RFQ Id has been specified. Checks if the specified RFQ Id is valid. Checks if the RFQ is in the appropriate state. Calls checkContractParamters, if the endresult of this RFQ is a contract. Calls checkOrderParamters, if the endresult of this RFQ is an order. Throws an INVALID OFFERING ID Exception if the endresult is neither.
|
public static final java.lang.String COPYRIGHT
public java.lang.Long rfqId
public java.lang.Long rfqOwner
public boolean nonUTFMessage
public boolean checkRFQState(java.lang.Integer currentRFQState)
public void createContracts() throws ECException
public void createOrders() throws ECException
public void doAcknowledgment()
public java.util.Hashtable getErrorContent()
public AccessVector getResources() throws ECException
public java.lang.Long getRfqId()
public java.lang.Long getRfqOwner()
public java.lang.String getShippingAddress(java.util.Vector shippingAddressList, java.lang.String catentryId)
public java.lang.String getShippingMode(java.util.Vector shippingModeList, java.lang.String catentryId)
public java.util.Hashtable getToolXMLObject()
public java.lang.String getWinningResponseName(java.lang.String responseId)
public boolean isNonUTFMessage()
public void performExecute() throws ECException
public void setError(java.lang.String errorKey, java.lang.String[] errorParams)
public void setError(java.lang.String errorKey, java.lang.String errorParams)
public void setErrorContent(java.util.Hashtable newErrorContent)
public void setNonUTFMessage(boolean newNonUTFMessage)
public void setRequestProperties(TypedProperty requestProperties) throws ECApplicationException
public void setRfqId(java.lang.Long newRfqId)
public void setRfqOwner(java.lang.Long newRfqOwner)
public void setToolXMLObject(java.util.Hashtable newToolXMLObject)
public void validateParameters() throws ECException