public class RFQToOrderCreateCmdImpl extends ControllerCommandImpl implements RFQToOrderCreateCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
Constructor and Description |
---|
RFQToOrderCreateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void | createOrders()
Creates an order for each winning response.
|
java.lang.String | getBillTo()
Gets the billTo
|
java.util.Hashtable | getPayment()
Gets the payment
|
java.lang.Long | getResId()
Gets the resId
|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
java.lang.Long | getRfqId()
Returns the RFQ identifier.
|
java.lang.Long | getRfqOwner()
Returns the RFQ owner's member Id.
|
void | performExecute()
Completes the RFQ by creating a contract or an order for each winning response.
This method does the following: Calls createOrders() Calls completeRFQState() if there is no more winning responses: 1) Sets the state of the RFQ to "Complete". 2) Sets the completion time for the RFQ. 3) Raises an UBF event to change the state of all the non-winning responses that are in evaluation for this RFQ
|
void | reset()
Reset the command
|
void | setBillTo(java.lang.String thsBillTo)
Sets the billTo
|
void | setPayment(java.util.Hashtable thsPayment)
Sets the payment
|
void | setRequestProperties(TypedProperty requestProperties)
Get the rfqId, resId, billTo parameters from the request.
|
void | setResId(java.lang.Long thsResId)
Sets the resId
|
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 | 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 void reset()
public AccessVector getResources() throws ECException
public void createOrders() throws ECException
public java.lang.Long getRfqId()
public java.lang.Long getRfqOwner()
public void performExecute() throws ECException
public void setRequestProperties(TypedProperty requestProperties) throws ECApplicationException, ECException
public void setRfqId(java.lang.Long newRfqId)
public void setRfqOwner(java.lang.Long newRfqOwner)
public void validateParameters() throws ECException
public java.util.Hashtable getPayment()
public void setPayment(java.util.Hashtable thsPayment)
public java.lang.String getBillTo()
public void setBillTo(java.lang.String thsBillTo)
public java.lang.Long getResId()
public void setResId(java.lang.Long thsResId)