com.konakartadmin.bl
Class AdminReportMgr

java.lang.Object
  extended by com.konakartadmin.bl.AdminBaseMgr
      extended by com.konakartadmin.bl.AdminReportMgr
All Implemented Interfaces:
AdminReportMgrIf

public class AdminReportMgr
extends AdminBaseMgr
implements AdminReportMgrIf

Manages Reporting for KonaKart


Nested Class Summary
protected  class AdminReportMgr.StaticData
           
 
Field Summary
protected static java.lang.String DEFAULT_REPORTS_DEFN_PATH
          Default REPORTS_DEFN_PATH value in case the configuration key isn't found
protected static java.lang.String DEFAULT_REPORTS_EXTENSION
          Default REPORTS_URL in case the configuration key isn't found
protected static java.lang.String DEFAULT_REPORTS_URL
          Default REPORTS_URL in case the configuration key isn't found
protected static org.apache.commons.logging.Log log
           
protected static java.lang.String mutex
           
protected static java.lang.String START_OF_TITLE_STRING
          This is used to pick out the name of the report
protected static java.util.Map<java.lang.String,AdminReportMgr.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
AdminReportMgr(KKAdminIf eng)
          Constructor
 
Method Summary
 AdminReport[] getReports()
          Get an array of reports
 void init()
          Initialise the Report Manager
protected  boolean loadReports()
          Load up the reports from the reports directory
 void refreshConfigs()
          Retrieve some commonly-used properties
 void reloadReports()
          Reload the reports
 void sortReportList(AdminReport[] repList)
          Sort the AdminReport[] array
 
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

DEFAULT_REPORTS_DEFN_PATH

protected static final java.lang.String DEFAULT_REPORTS_DEFN_PATH
Default REPORTS_DEFN_PATH value in case the configuration key isn't found

See Also:
Constant Field Values

DEFAULT_REPORTS_URL

protected static final java.lang.String DEFAULT_REPORTS_URL
Default REPORTS_URL in case the configuration key isn't found

See Also:
Constant Field Values

DEFAULT_REPORTS_EXTENSION

protected static final java.lang.String DEFAULT_REPORTS_EXTENSION
Default REPORTS_URL in case the configuration key isn't found

See Also:
Constant Field Values

START_OF_TITLE_STRING

protected static final java.lang.String START_OF_TITLE_STRING
This is used to pick out the name of the report

See Also:
Constant Field Values

mutex

protected static java.lang.String mutex

staticDataHM

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

Constructor Detail

AdminReportMgr

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

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

reloadReports

public void reloadReports()
                   throws KKAdminException
Reload the reports

Specified by:
reloadReports in interface AdminReportMgrIf
Throws:
KKAdminException

init

public void init()
          throws KKAdminException
Initialise the Report Manager

Specified by:
init in interface AdminReportMgrIf
Throws:
KKAdminException

loadReports

protected boolean loadReports()
                       throws java.lang.Exception
Load up the reports from the reports directory

Throws:
java.lang.Exception

sortReportList

public void sortReportList(AdminReport[] repList)
Sort the AdminReport[] array

Specified by:
sortReportList in interface AdminReportMgrIf
Parameters:
repList - the AdminReport[] array

getReports

public AdminReport[] getReports()
                         throws KKAdminException
Description copied from interface: AdminReportMgrIf
Get an array of reports

Specified by:
getReports in interface AdminReportMgrIf
Returns:
Returns the reports.
Throws:
KKAdminException

refreshConfigs

public void refreshConfigs()
                    throws java.lang.Exception
Retrieve some commonly-used properties

Specified by:
refreshConfigs in interface AdminReportMgrIf
Overrides:
refreshConfigs in class AdminBaseMgr
Throws:
java.lang.Exception


Copyright © 2011 DS Data Systems UK Ltd.