This interface provides a generic interface to be implemented by any quote class. This interface consists of methods to authenticate a buyer, populate the datainto the quote object, and get the shopping cart items from the quote object. To customize the quote, create a new implementation to this interface (a default implementation is provided in CIQuoteImpl).
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright field |
Method Summary | |
---|---|
Credentials |
getBuyerCredentials() Gets the Buyer Credentials |
Credentials |
getMarketPlaceCredentials() Gets the market place Credentials |
java.lang.String |
getProtocol() Gets the protocol |
PurchaseOrderRequestHeader |
getPurchaseOrderRequestHeader() Gets the purchase order request header |
RequisitionerSessionData |
getRequisitionerSessionData() Gets the requisitioner session data |
java.util.Vector |
getShoppingCartItems() Gets the list of items from the shopping cart |
Credentials |
getSupplierCredentials() Gets the supplier Credentials |
int |
prepareQuote(long orderRefNum,
CommandContext context,
RequisitionerSessionData reqSession) Populates the quote object with the data from database. |
void |
setRequisitionerSessionData(
RequisitionerSessionData reqSession)
Sets the requisitioner session data |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Method Detail |
---|
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 orderRefNum, CommandContext context, RequisitionerSessionData reqSession) throws ECException
orderRefNum
- the order refernce numbercontext
- the currentcommand contextreqSession
- the session data for the current requisitioner
sessino dataECException
public void setRequisitionerSessionData(RequisitionerSessionData reqSession)
reqSession
- the requisitioner session
data