public class PunchOutMgr extends BaseMgr implements PunchOutMgrIf
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
templateBaseDir
Constructor and Description |
---|
PunchOutMgr(KKEngIf eng)
Constructor used when instantiated by the application engine
|
Modifier and Type | Method and Description |
---|---|
protected void |
getData_OCI_HTML(OrderIf order,
OrderProductIf op,
java.util.List<NameValue> nvList,
int index,
int scale,
PunchOutOptionsIf options)
In your own implementation of the PunchOut manager you can override this method to customize
the data being returned.
|
protected java.lang.String |
getData_OCI_XML(java.lang.String tagName,
java.lang.String attrName,
OrderProductIf orderProduct,
PunchOutOptionsIf options)
In your own implementation of the PunchOut manager you can override this method to provide
your own data for the various tags and tag attributes.
|
protected PunchOutResultIf |
getPunchOutMessage_OCI_HTML(java.lang.String sessionId,
OrderIf order,
PunchOutOptionsIf options)
Method used to create the punch out message when using the
OCI_HTML standard |
protected PunchOutResultIf |
getPunchOutMessage_OCI_XML(java.lang.String sessionId,
OrderIf order,
PunchOutOptionsIf options)
Method used to create the punch out message when using the
OCI_XML standard |
PunchOutResultIf |
getPunchOutMessage(java.lang.String sessionId,
OrderIf order,
PunchOutOptionsIf options)
Creates a punch out message from an order.
|
acquireLock, addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkRequired, escapeHTML, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, getAdminEngMgr, getBasketMgr, getBillingMgr, getBookableProductMgr, getCacheMgr, getCatMgr, getConfigMgr, getCookieMgr, getCurrMgr, getCustMgr, getCustomerIdFromSession, getCustomerStatsMgr, getCustomerTagMgr, getEmailMgr, getEng, getEventMgr, getExportMgr, getHTMLEscaper, getKonaKartConfig, getKonaKartConfig, getKonaKartConfig, getLangMgr, getManuMgr, getMiscItemMgr, getMiscPriceMgr, getMode, getModeString, getMqMgr, getMultiStoreMgr, getNewCriteria, getNewCriteria, getOrderIntegrationMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getProductsToCategoresCriteria, getPromMgr, getPunchOutMgr, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getStoreMgr, getStoreTime, getSuggestionMgr, getTaxMgr, getTemplate, getTemplateRoot, getVelocityContextMgr, getWishListMgr, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isClassPresent, isCommunity, isDeadlockException, isEnterprise, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreSharedDb, isMultiStoreShareProducts, isMultiVendor, isUnix, manageThrowable, releaseLock, updateStaticVariablesNow
public PunchOutMgr(KKEngIf eng) throws java.lang.Exception
eng
- Application enginejava.lang.Exception
- an unexpected exceptionpublic PunchOutResultIf getPunchOutMessage(java.lang.String sessionId, OrderIf order, PunchOutOptionsIf options) throws java.lang.Exception
getPunchOutMessage
in interface PunchOutMgrIf
sessionId
- Session Id of the customer.order
- Order used to create messageoptions
- Options to configure the call by defining things such as the standard used for the
message and the version of the standard.java.lang.Exception
- an unexpected exceptionprotected PunchOutResultIf getPunchOutMessage_OCI_HTML(java.lang.String sessionId, OrderIf order, PunchOutOptionsIf options) throws java.lang.Exception
OCI_HTML
standardsessionId
- the sessionIdorder
- the orderoptions
- the optionsjava.lang.Exception
- an unexpected exceptionprotected void getData_OCI_HTML(OrderIf order, OrderProductIf op, java.util.List<NameValue> nvList, int index, int scale, PunchOutOptionsIf options)
nvList.add(new NameValue("NEW_ITEM-DESCRIPTION[" + index + "]", op.getName()));
order
- The orderop
- The order productnvList
- List of NameValue pairs. New data is added to the list.index
- Index used for creating the name value pairsscale
- Scale used for formatting the currencyoptions
- PunchOutOptionsprotected PunchOutResultIf getPunchOutMessage_OCI_XML(java.lang.String sessionId, OrderIf order, PunchOutOptionsIf options) throws java.lang.Exception
OCI_XML
standardsessionId
- the sessionIdorder
- the orderoptions
- the optionsjava.lang.Exception
- an unexpected exceptionprotected java.lang.String getData_OCI_XML(java.lang.String tagName, java.lang.String attrName, OrderProductIf orderProduct, PunchOutOptionsIf options)
tagName
- The name of the tag as it appears in the XMLattrName
- The name of the attribute as it appears in the XMLorderProduct
- The OrderProduct object. In most cases it will have an attached Product objectoptions
- The PunchOut optionsCopyright © 2018 DS Data Systems UK Ltd.