public class ContentMgr extends BaseMgr implements ContentMgrIf
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
protected static java.lang.String |
mutex |
templateBaseDir
Constructor and Description |
---|
ContentMgr(KKEngIf eng)
Constructor
|
ContentMgr(KKEngIf eng,
org.apache.commons.logging.Log logger)
Constructor
|
Modifier and Type | Method and Description |
---|---|
ContentIf |
getContent(int contentId,
int languageId)
Get the latest (last to be inserted) enabled Content record with the specified contentId for
the specified languageId.
|
ContentSearchResultIf |
getContents(java.lang.String sessionId,
ContentSearchIf inSearch,
DataDescriptorIf inDataDesc)
Retrieve Content records using the specified search criteria
|
ContentTypeIf |
getContentType(int contentTypeId,
int languageId)
Return the ContentType for the specified language and contentTypeId
|
ContentTypeIf[] |
getContentTypes(int languageId)
Return all the ContentTypes for the specified language
|
void |
refreshConfigs()
Refresh the configuration of the ContentMgr
|
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
protected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
public ContentMgr(KKEngIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic ContentMgr(KKEngIf eng, org.apache.commons.logging.Log logger) throws java.lang.Exception
eng
- the englogger
- the loggerjava.lang.Exception
- an unexpected exceptionpublic ContentIf getContent(int contentId, int languageId) throws com.konakart.app.KKException
ContentMgrIf
getContent
in interface ContentMgrIf
contentId
- the contentIdlanguageId
- the languageId of the Content to return (Content Descriptions are
language-specific). If KKConstants.DEFAULT_LANGUAGE_ID is used the default
languageId is used).com.konakart.app.KKException
- an unexpected KKException exceptionpublic ContentSearchResultIf getContents(java.lang.String sessionId, ContentSearchIf inSearch, DataDescriptorIf inDataDesc) throws com.konakart.app.KKException
ContentMgrIf
getContents
in interface ContentMgrIf
sessionId
- the sessionId of the customer. This may be used to look up the customer in order
to evaluate expressions to determine the required content. Set to null if the
customer isn't logged in.inSearch
- the content search criteriainDataDesc
- the data descriptor objectcom.konakart.app.KKException
- an unexpected KKException exceptionpublic ContentTypeIf getContentType(int contentTypeId, int languageId) throws com.konakart.app.KKException
ContentMgrIf
getContentType
in interface ContentMgrIf
contentTypeId
- the ContentTypeIdlanguageId
- the languageId of the ContentType to return (Content Type Descriptions are
language-specific). If KKConstants.DEFAULT_LANGUAGE_ID is used the default
language is used)com.konakart.app.KKException
- an unexpected KKException exceptionpublic ContentTypeIf[] getContentTypes(int languageId) throws com.konakart.app.KKException
ContentMgrIf
getContentTypes
in interface ContentMgrIf
languageId
- the languageId of the ContentTypes to return (Content Type Descriptions are
language-specific). If KKConstants.DEFAULT_LANGUAGE_ID is used the default
language is used)com.konakart.app.KKException
- an unexpected KKException exceptionpublic void refreshConfigs() throws java.lang.Exception
ContentMgrIf
refreshConfigs
in interface ContentMgrIf
java.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.