public class CIQuoteImpl extends java.lang.Object implements java.io.Serializable, CIQuote
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright field
|
Constructor and Description |
---|
CIQuoteImpl()
The CIQuoteImpl default constructor calls its parents constructor.
|
Modifier and Type | Method and Description |
---|---|
Credentials | getBuyerCredentials()
This method gets the buyer credential information.
|
Credentials | getMarketPlaceCredentials()
This method gets the buyer marketplace information.
|
java.lang.String | getProtocol()
This method gets the quote protocol.
|
PurchaseOrderRequestHeader | getPurchaseOrderRequestHeader()
This method gets the purchase order request header.
|
RequisitionerSessionData | getRequisitionerSessionData()
This method gets the requisitioner session data.
|
java.util.Vector | getShoppingCartItems()
This method gets a Vector of all the items from the shopping cart.
|
Credentials | getSupplierCredentials()
This method gets the supplier credential information.
|
int | prepareQuote(long anOrders_Id, CommandContext cmdContext, RequisitionerSessionData aReqSession)
Populate the quote object with the data from database.
|
void | setBuyerCredentials(Credentials newValue)
This method sets the buyer credential information.
|
void | setMarketPlaceCredentials(Credentials newValue)
This method sets the marketplace credential information.
|
void | setProtocol(java.lang.String aProtocol)
This method sets the quote protocol.
|
void | setPurchaseOrderRequestHeader(PurchaseOrderRequestHeader newValue)
This method sets the purchase order request header.
|
void | setRequisitionerSessionData(RequisitionerSessionData aReqSession)
This method sets the requisitioner session data.
|
void | setShoppingCartItems(java.util.Vector newValue)
This method sets the Vector of items in the shopping cart.
|
void | setSupplierCredentials(Credentials newValue)
This method sets the supplier credential information
|
public static final java.lang.String COPYRIGHT
public CIQuoteImpl()
public Credentials getBuyerCredentials()
public Credentials getMarketPlaceCredentials()
public java.lang.String getProtocol()
public PurchaseOrderRequestHeader getPurchaseOrderRequestHeader()
public RequisitionerSessionData getRequisitionerSessionData()
public java.util.Vector getShoppingCartItems()
public Credentials getSupplierCredentials()
public int prepareQuote(long anOrders_Id, CommandContext cmdContext, RequisitionerSessionData aReqSession) throws ECException
Steps:
1. uses the user ID in the command context to retrieve the organization code for the buyer
2. setup the buyerCredentials based on the buyer organization code
3. uses the store ID in the command context to set up supplierCredentials
4. gets protocol information such as the unit of measure standard and classification domain
5. fills up the purchaseOrderRequestHeader with information from the orders table
6. populates the purchaseOrderItems list from the ORDERITEMS table
public void setBuyerCredentials(Credentials newValue)
public void setMarketPlaceCredentials(Credentials newValue)
public void setProtocol(java.lang.String aProtocol)
public void setPurchaseOrderRequestHeader(PurchaseOrderRequestHeader newValue)
public void setRequisitionerSessionData(RequisitionerSessionData aReqSession)
public void setShoppingCartItems(java.util.Vector newValue)
public void setSupplierCredentials(Credentials newValue)