java.lang.Object | +--com.ibm.commerce.me.datatype.CIQuoteImpl
This is the default implementation for CIQuote. It uses PROCPROTCL and USERREG table to authenticate the buyer, and retrives the logon_id, password associated with the buyer from that table.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright field |
Constructor Summary | |
---|---|
CIQuoteImpl() CIQuoteImpl default constructor |
Method Summary | |
---|---|
Credentials |
getBuyerCredentials() Gets the buyer credential information |
Credentials |
getMarketPlaceCredentials() Gets the buyer marketplace information |
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() Get the supplier credential information |
int |
prepareQuote(long orders_Id,
CommandContext cmdContext,
RequisitionerSessionData reqSession) Populate the quote object with the data from database. |
void |
setBuyerCredentials(
Credentials newValue) Sets the buyer credential information |
void |
setMarketPlaceCredentials(
Credentials newValue) Set the buyer credential information |
void |
setProtocol(java.lang.String protocol) Sets the protocol |
void |
setPurchaseOrderRequestHeader(
PurchaseOrderRequestHeader newValue) Sets the purchase order request header |
void |
setRequisitionerSessionData(
RequisitionerSessionData reqSession) Sets Requisitioner session data |
void |
setShoppingCartItems(java.util.Vector newValue) Sets the list of items in the shopping cart |
void |
setSupplierCredentials(
Credentials newValue) Set the supplier credential information |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public CIQuoteImpl()
Method Detail |
---|
public Credentials getBuyerCredentials()
getBuyerCredentials
in interface
CIQuote
public Credentials getMarketPlaceCredentials()
getMarketPlaceCredentials
in interface
CIQuote
public java.lang.String getProtocol()
getProtocol
in interface
CIQuote
public PurchaseOrderRequestHeader getPurchaseOrderRequestHeader()
getPurchaseOrderRequestHeader
in interface
CIQuote
public RequisitionerSessionData getRequisitionerSessionData()
getRequisitionerSessionData
in interface
CIQuote
public java.util.Vector getShoppingCartItems()
getShoppingCartItems
in interface
CIQuote
public Credentials getSupplierCredentials()
getSupplierCredentials
in interface
CIQuote
public int prepareQuote(long orders_Id, CommandContext cmdContext, RequisitionerSessionData reqSession) throws ECException
prepareQuote
in interface
CIQuote
orders_Id
- the order refernce numbercmdContext
- the command context used to retrive user id,
store id, and language idreqSession
- th requisitioner session dataECException
- Raised with message _ERR_FINDER_EXCEPTION, _ERR_CREATE_EXCEPTION,
_ERR_NAMING_EXCEPTION, _ERR_REMOTE_EXCEPTION when the ejb encoutners any
problemspublic void setBuyerCredentials(Credentials newValue)
newValue
- the buyer credential
informationpublic void setMarketPlaceCredentials(Credentials newValue)
newValue
- the buyer credential
informationpublic void setProtocol(java.lang.String protocol)
protocol
- the new protocolpublic void setPurchaseOrderRequestHeader(PurchaseOrderRequestHeader newValue)
public void setRequisitionerSessionData(RequisitionerSessionData reqSession)
setRequisitionerSessionData
in interface
CIQuote
reqSession
- the requisitioner session
datapublic void setShoppingCartItems(java.util.Vector newValue)
newValue
- a list of shopping cart itemspublic void setSupplierCredentials(Credentials newValue)
newValue
- the supplier credential
information