com.konakartadmin.bl
Class AdminMultiStoreMgr

java.lang.Object
  extended by com.konakartadmin.bl.AdminBaseMgr
      extended by com.konakartadmin.bl.AdminMultiStoreMgr
All Implemented Interfaces:
AdminMultiStoreMgrIf

public class AdminMultiStoreMgr
extends AdminBaseMgr
implements AdminMultiStoreMgrIf

The AdminMultiStoreMgr - for Managing multi-store functionality


Nested Class Summary
 
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr
AdminBaseMgr.StaticData
 
Field Summary
protected static org.apache.commons.logging.Log log
          the log
 
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
 
Constructor Summary
AdminMultiStoreMgr(KKAdminIf eng)
          Constructor
 
Method Summary
 com.konakart.bl.KKCriteria getNewCriteria()
          Gets a new KKCriteria object based on the mode of the engine.
 com.konakart.bl.KKCriteria getNewCriteria(boolean allStores)
          Gets a new KKCriteria object based on the mode of the engine
 AdminStore[] getStores(org.apache.commons.configuration.Configuration kkConfig)
          Get the stores supported by the server.
 AdminStore[] getStores(java.lang.String configFile)
          Get the stores supported by the server.
protected  AdminStore[] getStoresPrivate(org.apache.commons.configuration.Configuration lkkConfig)
          Get the stores supported by the server
protected  AdminStore[] getStoresPrivateSingleDB()
          Just returns the default single store list.
 
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, getPostSearchText, getPreSearchText, getPropertyValue, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, manageException, refreshConfigs, 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

Constructor Detail

AdminMultiStoreMgr

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

Parameters:
eng - the Admin Engine
Throws:
java.lang.Exception
Method Detail

getNewCriteria

public com.konakart.bl.KKCriteria getNewCriteria()
Gets a new KKCriteria object based on the mode of the engine. It calls getNewCriteria(boolean allStores) with allStores set to false.

Specified by:
getNewCriteria in interface AdminMultiStoreMgrIf
Overrides:
getNewCriteria in class AdminBaseMgr
Returns:
Returns a new KKCriteria object based on the mode of the engine

getNewCriteria

public com.konakart.bl.KKCriteria getNewCriteria(boolean allStores)
Gets a new KKCriteria object based on the mode of the engine

Specified by:
getNewCriteria in interface AdminMultiStoreMgrIf
Overrides:
getNewCriteria in class AdminBaseMgr
Parameters:
allStores -
Returns:
Returns a new KKCriteria object based on the mode of the engine

getStores

public AdminStore[] getStores(java.lang.String configFile)
                       throws KKAdminException
Get the stores supported by the server. This is a public method that (for MultiStore Multi-DB) always re-reads the properties file so that the admin app can have the latest list, just in case a new store has been added. For Multi-Store Single DB it just returns a list of one admin Store here if we can't get the real list yet because we don't have a torque connection.

Specified by:
getStores in interface AdminMultiStoreMgrIf
Parameters:
configFile - the name of the properties file
Returns:
an array of AdminStore objects
Throws:
KKAdminException

getStores

public AdminStore[] getStores(org.apache.commons.configuration.Configuration kkConfig)
Get the stores supported by the server. This is a public method that uses a KonaKart Configuration that has already been read.

Specified by:
getStores in interface AdminMultiStoreMgrIf
Parameters:
kkConfig - A configuration that has already been read
Returns:
an array of AdminStore objects

getStoresPrivate

protected AdminStore[] getStoresPrivate(org.apache.commons.configuration.Configuration lkkConfig)
Get the stores supported by the server

Parameters:
lkkConfig -
Returns:
an array of AdminStore objects

getStoresPrivateSingleDB

protected AdminStore[] getStoresPrivateSingleDB()
Just returns the default single store list.

Returns:
an array of AdminStore objects (actually the array always has just 1 element)


Copyright © 2011 DS Data Systems UK Ltd.