com.ibm.commerce.me.datatype
Interface CIQuote

All Known Implementing Classes:
CIQuoteImpl

public interface CIQuote

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
IBM Copyright field
See Also:
Constant Field Values
Method Detail

getBuyerCredentials

public Credentials getBuyerCredentials()
Gets the Buyer Credentials
Returns:
the buyer credential information

getMarketPlaceCredentials

public Credentials getMarketPlaceCredentials()
Gets the market place Credentials
Returns:
the market place credential information

getProtocol

public java.lang.String getProtocol()
Gets the protocol
Returns:
the protocol name

getPurchaseOrderRequestHeader

public PurchaseOrderRequestHeader getPurchaseOrderRequestHeader()
Gets the purchase order request header
Returns:
the purchase order request header

getRequisitionerSessionData

public RequisitionerSessionData getRequisitionerSessionData()
Gets the requisitioner session data
Returns:
the session data for the requisitioner

getShoppingCartItems

public java.util.Vector getShoppingCartItems()
Gets the list of items from the shopping cart
Returns:
the list of shopping cart items

getSupplierCredentials

public Credentials getSupplierCredentials()
Gets the supplier Credentials
Returns:
the supplier credential information

prepareQuote

public int prepareQuote(long orderRefNum,
CommandContext context,
RequisitionerSessionData reqSession)
                 throws ECException
Populates the quote object with the data from database. This inturn involves hydrating the quote items. This provides the necessary information for the redirect servlet to generate the response.
Parameters:
orderRefNum - the order refernce number
context - the currentcommand context
reqSession - the session data for the current requisitioner sessino data
Returns:
code representing the operation status
ECException

setRequisitionerSessionData

public void setRequisitionerSessionData(RequisitionerSessionData reqSession)
Sets the requisitioner session data
Parameters:
reqSession - the requisitioner session data