com.konakartadmin.bl
Class AdminSearchRuleMgr

java.lang.Object
  extended by com.konakartadmin.bl.AdminBaseMgr
      extended by com.konakartadmin.bl.AdminSearchRuleMgr
All Implemented Interfaces:
AdminSearchRuleMgrIf

public class AdminSearchRuleMgr
extends AdminBaseMgr
implements AdminSearchRuleMgrIf

The AdminSearchRuleMgr - for Managing search rules for the Admin Application


Nested Class Summary
protected  class AdminSearchRuleMgr.StaticData
          Used to store the static data of this manager
 
Field Summary
protected static org.apache.commons.logging.Log log
          the log
protected static java.lang.String mutex
           
protected static java.lang.String SEARCH_RULE_FILE
          The name of the search rule properties file
protected static java.util.Map<java.lang.String,AdminSearchRuleMgr.StaticData> staticDataHM
          Hash Map that contains the static data
 
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
 
Constructor Summary
AdminSearchRuleMgr(KKAdminIf eng)
          Constructor
 
Method Summary
 AdminSearchRule[] getSearchRules()
          Reads the search rules from a properties file and returns them as an array.
 void refreshConfigs()
          Refresh the configuration of the Admin Search Rule Manager.
 
Methods inherited from class com.konakartadmin.bl.AdminBaseMgr
addInsertAttr, addInsertAttr, checkIntIsSet, checkRequired, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminHtmlMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminPublishProdMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getExportXMLData, getIntFromString, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getPostSearchText, getPreSearchText, getPropertyValue, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, manageException, removeCData, setAdminEng, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
the log


SEARCH_RULE_FILE

protected static final java.lang.String SEARCH_RULE_FILE
The name of the search rule properties file

See Also:
Constant Field Values

mutex

protected static java.lang.String mutex

staticDataHM

protected static java.util.Map<java.lang.String,AdminSearchRuleMgr.StaticData> staticDataHM
Hash Map that contains the static data

Constructor Detail

AdminSearchRuleMgr

public AdminSearchRuleMgr(KKAdminIf eng)
                   throws java.lang.Exception
Constructor

Parameters:
eng - KKAdmin engine
Throws:
java.lang.Exception
Method Detail

getSearchRules

public AdminSearchRule[] getSearchRules()
                                 throws KKAdminException
Reads the search rules from a properties file and returns them as an array. If the properties file isn't found, then an empty array is returned.

Specified by:
getSearchRules in interface AdminSearchRuleMgrIf
Returns:
Returns an array of AdminSearchRule objects
Throws:
KKAdminException

refreshConfigs

public void refreshConfigs()
                    throws KKAdminException
Refresh the configuration of the Admin Search Rule Manager.

Specified by:
refreshConfigs in interface AdminSearchRuleMgrIf
Overrides:
refreshConfigs in class AdminBaseMgr
Throws:
KKAdminException


Copyright © 2011 DS Data Systems UK Ltd.