public class RFQToContractCreateCmdImpl extends ControllerCommandImpl implements RFQToContractCreateCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
RFQToContractCreateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.Long | getAccountId()
Gets the accountId
|
java.lang.String | getEnforceMinQuantity()
Gets the enforce minimum quantity setting
|
java.lang.Long | getResId()
Gets the responseId
|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
java.lang.String | getReturnApprovalPolicy()
Gets the rtnApprovalPolicy
|
java.lang.String | getReturnChargePolicy()
Gets the rtnChargePolicy
|
java.lang.String[] | getReturnPaymentPolicies()
Returns the return payment policies.
|
java.lang.Long | getRfqId()
Returns the RFQ identifier.
|
java.lang.Long | getRfqOwner()
Returns the RFQ owner's member Id.
|
java.lang.String | getShipChargeType()
Gets the shippingChargeType
|
void | performExecute()
Completes the RFQ by creating a contract for the winning response.
This method does the following: Creates the contract 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 | setAccountId(java.lang.Long newAccId)
Sets the accountId
|
void | setEnforceMinQuantity(java.lang.String newEnforceMinQuantity)
Sets the enforce minimum quantity setting
|
void | setRequestProperties(TypedProperty requestProperties)
Get the rfqId, responseId, billTo parameters from the request.
|
void | setResId(java.lang.Long newResponseId)
Sets the resId
|
void | setReturnApprovalPolicy(java.lang.String newRtnApprovalPolicy)
Sets the returnApprovalPolicy
|
void | setReturnChargePolicy(java.lang.String newRtnChargePolicy)
Sets the rtnChargePolicy
|
void | setReturnPaymentPolicies(java.lang.String[] newReturnPaymentPolicies)
Sets the return payment policies.
|
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 | setShipChargeType(java.lang.String newShippingChargeType)
Sets the shippingChargeType
|
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 createContracts() throws ECException
public java.lang.Long getRfqId()
public java.lang.Long getRfqOwner()
public java.lang.Long getAccountId()
public void performExecute() throws ECException
public void setRequestProperties(TypedProperty requestProperties) throws ECException
public void setRfqId(java.lang.Long newRfqId)
public void setRfqOwner(java.lang.Long newRfqOwner)
public void setAccountId(java.lang.Long newAccId)
public void validateParameters() throws ECException
public java.lang.Long getResId()
public void setResId(java.lang.Long newResponseId)
public java.lang.String getEnforceMinQuantity()
public void setEnforceMinQuantity(java.lang.String newEnforceMinQuantity)
public java.lang.String getShipChargeType()
public void setShipChargeType(java.lang.String newShippingChargeType)
public java.lang.String getReturnChargePolicy()
public void setReturnChargePolicy(java.lang.String newRtnChargePolicy)
public java.lang.String getReturnApprovalPolicy()
public void setReturnApprovalPolicy(java.lang.String newRtnApprovalPolicy)
public java.lang.String[] getReturnPaymentPolicies()
public void setReturnPaymentPolicies(java.lang.String[] newReturnPaymentPolicies)