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()
getBuyerCredentials
in interface CIQuote
com.ibm.commerce.me.datatype
public Credentials getMarketPlaceCredentials()
getMarketPlaceCredentials
in interface CIQuote
com.ibm.commerce.me.datatype
public java.lang.String getProtocol()
getProtocol
in interface CIQuote
public PurchaseOrderRequestHeader getPurchaseOrderRequestHeader()
getPurchaseOrderRequestHeader
in interface CIQuote
com.ibm.commerce.me.datatype
public RequisitionerSessionData getRequisitionerSessionData()
getRequisitionerSessionData
in interface CIQuote
com.ibm.commerce.me.datatype
public java.util.Vector getShoppingCartItems()
getShoppingCartItems
in interface CIQuote
public Credentials getSupplierCredentials()
getSupplierCredentials
in interface CIQuote
com.ibm.commerce.me.datatype
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
prepareQuote
in interface CIQuote
anOrders_Id
- the order reference numbercmdContext
- the command context used to retrieve the user ID, store ID, and language IDaReqSession
- the requisitioner session dataECException
- Raised with message _ERR_FINDER_EXCEPTION, _ERR_CREATE_EXCEPTION,
_ERR_NAMING_EXCEPTION, _ERR_REMOTE_EXCEPTION when the EJB encounters any problemspublic void setBuyerCredentials(Credentials newValue)
newValue
- the buyer credential informationcom.ibm.commerce.me.datatype
public void setMarketPlaceCredentials(Credentials newValue)
newValue
- the marketplace credential informationcom.ibm.commerce.me.datatype
public void setProtocol(java.lang.String aProtocol)
aProtocol
- the new protocolpublic void setPurchaseOrderRequestHeader(PurchaseOrderRequestHeader newValue)
newValue
- the purchase order request headercom.ibm.commerce.me.datatype
public void setRequisitionerSessionData(RequisitionerSessionData aReqSession)
setRequisitionerSessionData
in interface CIQuote
aReqSession
- the requisitioner session datacom.ibm.commerce.me.datatype
public void setShoppingCartItems(java.util.Vector newValue)
newValue
- a Vector of shopping cart itemspublic void setSupplierCredentials(Credentials newValue)
newValue
- the supplier credential informationcom.ibm.commerce.me.datatype