|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.KKAdminBase
public class KKAdminBase
This implements the server side of the KonaKart Admin Application. The BaseClass contains initialization and utility methods.
Field Summary | |
---|---|
protected KKAdmin |
adminEng
The KKAdmin engine |
protected static org.apache.commons.configuration.Configuration |
allConfig
Holds all the properties from the properties file |
protected static java.lang.String |
configFile
Config File as a String |
protected static java.net.URL |
configFileURL
Config File as a URL |
private static java.lang.String |
dbVersion
The Database version according to the ConfigData |
protected AdminEngineConfig |
engConf
Configuration parameter passed when the engine is instantiated |
protected static boolean |
globalInit
|
protected static boolean |
kkCartInit
|
protected static org.apache.commons.configuration.Configuration |
kkConfig
Used to read the KonaKart properties from the properties file |
protected static java.lang.String |
kkInstanceId
The KonaKart Instance - read from the properties file |
protected java.lang.String |
konakartAdminPropsFileName
|
protected java.lang.String |
konakartAdminPropsFilePath
|
protected static org.apache.commons.logging.Log |
log
Log |
protected static boolean |
log4jInit
|
protected static com.konakart.clientlogging.LogMgr |
logMgr
Log Manager |
protected AdminMgrFactory |
mgrFactory
Factory for creating managers |
protected java.lang.String |
mutex
|
protected static org.apache.commons.configuration.Configuration |
torqueConfig
Used to read the Torque properties from the properties file |
protected static boolean |
torqueInit
|
Constructor Summary | |
---|---|
KKAdminBase()
|
Method Summary | |
---|---|
protected void |
auditDeletes(int userId,
AdminObjectIf obj,
int objectId,
java.lang.String methodName)
Auditing for deletes of a single object |
protected void |
auditDeletes(int userId,
int objectId,
java.lang.String methodName)
Auditing for deletes of a single object |
protected void |
auditDeletes(int userId,
java.lang.String objAsString,
java.lang.String methodName)
Auditing for deletes of a single object, when the object has no integer id |
protected void |
auditDeletesForArray(int userId,
AdminObjectIf[] objArray,
int objectId,
java.lang.String methodName)
Auditing for deletes of an array of objects |
protected void |
auditEdits(int userId,
AdminObjectIf obj,
java.lang.String methodName)
Auditing for edits |
protected void |
auditEdits(int userId,
java.lang.Object obj,
java.lang.String key,
java.lang.String methodName)
Auditing for edits |
protected void |
auditEdits(int userId,
java.lang.String methodName,
java.lang.String data)
Auditing for updates |
protected void |
auditInserts(int userId,
AdminObjectIf[] objs,
java.lang.String methodName,
int newId)
Auditing for inserts for an array of products |
protected void |
auditInserts(int userId,
AdminObjectIf obj,
java.lang.String methodName,
int newId)
Auditing for inserts |
protected void |
auditInserts(int userId,
java.lang.String methodName,
java.lang.Object obj)
Auditing for inserts for an array of products |
protected void |
auditInserts(int userId,
java.lang.String methodName,
java.lang.String data)
Auditing for inserts where we just insert ids |
protected void |
auditReads(int userId,
int objectId,
java.lang.String methodName)
Auditing for reads |
protected void |
auditReads(int userId,
java.lang.String object,
java.lang.String methodName)
Auditing for reads |
protected void |
checkEnterpriseForExtPriceOrExtQuantity(AdminProductMgrOptions mgrOptions)
External prices and quantity require the enterprise version to be present. |
protected void |
checkManagerExists(java.lang.Object mgr,
java.lang.String functionalityName)
Common code to check for optional managers |
AdminAddressMgrIf |
getAdminAddressMgr()
|
AdminAuditMgrIf |
getAdminAuditMgr()
|
AdminBillingMgrIf |
getAdminBillingMgr()
|
AdminBookableProductMgrIf |
getAdminBookableProductMgr()
|
AdminCategoryMgrIf |
getAdminCategoryMgr()
|
AdminConfigurationMgrIf |
getAdminConfigurationMgr()
|
AdminCurrencyMgrIf |
getAdminCurrencyMgr()
|
AdminCustomerMgrIf |
getAdminCustomerMgr()
|
AdminCustomerTagMgrIf |
getAdminCustomerTagMgr()
|
AdminDataIntegrityMgrIf |
getAdminDataIntegrityMgr()
|
AdminEmailMgrIf |
getAdminEmailMgr()
|
KKAdmin |
getAdminEng()
|
AdminExecuteMgrIf |
getAdminExecuteMgr()
|
AdminFileMgrIf |
getAdminFileMgr()
|
AdminHtmlMgrIf |
getAdminHtmlMgr()
|
AdminLanguageMgrIf |
getAdminLanguageMgr()
|
AdminManufacturerMgrIf |
getAdminManufacturerMgr()
|
AdminMessageMgrIf |
getAdminMessageMgr()
|
AdminMiscItemMgrIf |
getAdminMiscItemMgr()
|
AdminOrderMgrIf |
getAdminOrderMgr()
|
AdminPdfMgrIf |
getAdminPdfMgr()
|
AdminProdAttrMgrIf |
getAdminProdAttrMgr()
|
AdminProductMgrIf |
getAdminProductMgr()
|
AdminPromotionMgrIf |
getAdminPromotionMgr()
|
AdminPublishProductMgrIf |
getAdminPublishProductMgr()
|
AdminRemoteAccessMgrIf |
getAdminRemoteAccessMgr()
|
AdminReportMgrIf |
getAdminReportMgr()
|
AdminReviewMgrIf |
getAdminReviewMgr()
|
AdminRewardPointMgrIf |
getAdminRewardPointMgr()
|
protected AdminSearchRuleMgrIf |
getAdminSearchRuleMgr()
|
AdminSecurityMgrIf |
getAdminSecurityMgr()
|
AdminSolrMgrIf |
getAdminSolrMgr()
|
AdminStoreMgrIf |
getAdminStoreMgr()
|
AdminTagMgrIf |
getAdminTagMgr()
|
AdminTaxMgrIf |
getAdminTaxMgr()
|
AdminValidationMgrIf |
getAdminValidationMgr()
|
AdminWishListMgrIf |
getAdminWishListMgr()
|
protected static java.lang.String |
getConfigFile()
|
java.lang.String |
getDbVersion()
|
AdminEngineConfig |
getEngConf()
|
protected java.lang.String |
getEngineId()
|
protected java.lang.String |
getExceptionMessage(java.lang.Throwable e)
Returns a string containing the stack trace of the exception and its cause |
protected java.lang.String |
getKkInstanceId()
Get the instance Id from the properties file |
java.lang.String |
getKonakartAdminPropsFileName()
|
java.lang.String |
getKonakartAdminPropsFilePath()
|
java.lang.String |
getKonaKartBuildDate()
Get the KonaKart Build Date from the properties file |
java.lang.String |
getKonakartPropertyValue(java.lang.String section,
java.lang.String propertyName)
Returns the property value from the properties file in the specified section |
static java.util.Calendar |
getKonakartTimeStamp()
|
static java.util.Date |
getKonakartTimeStampDate()
|
java.lang.String |
getKonaKartVersion()
Get the KonaKart Version Number from the properties file |
static com.konakart.clientlogging.LogMgr |
getLogMgr()
|
AdminModulesMgrIf |
getModulesMgr()
|
protected void |
init(KKAdmin eng,
java.lang.String propertiesFileName)
Initialization code |
protected void |
initKonakart()
Initialise KonaKart from the properties file |
protected void |
initLog4j()
The initialisation of log4j is synchronised. |
protected void |
initMultiStoreMultiDB()
|
protected void |
initMultiStoreSingleDB()
Placeholder for initialisation for MultiStore Single Database. |
protected void |
initSingleStore()
Initialisation and start-up checks for the Single Store Mode |
protected void |
initTorque()
The initialisation of Torque is synchronised. |
boolean |
isSingleStoreMode()
|
static boolean |
isTorqueInit()
|
protected KKAdminException |
manageThrowable(java.lang.Throwable e)
Common code to manage exceptions in the KKAdmin engine |
void |
setAdminEng(KKAdmin adminEng)
|
void |
setEngConf(AdminEngineConfig engConf)
|
void |
setKonakartAdminPropsFileName(java.lang.String konakartAdminPropsFileName)
|
void |
setKonakartAdminPropsFilePath(java.lang.String konakartAdminPropsFilePath)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
protected static com.konakart.clientlogging.LogMgr logMgr
protected KKAdmin adminEng
protected AdminEngineConfig engConf
protected static boolean globalInit
protected static boolean torqueInit
protected static boolean log4jInit
protected static boolean kkCartInit
private static java.lang.String dbVersion
protected java.lang.String mutex
protected java.lang.String konakartAdminPropsFilePath
protected java.lang.String konakartAdminPropsFileName
protected static java.lang.String configFile
protected static java.net.URL configFileURL
protected AdminMgrFactory mgrFactory
protected static org.apache.commons.configuration.Configuration allConfig
protected static org.apache.commons.configuration.Configuration kkConfig
protected static org.apache.commons.configuration.Configuration torqueConfig
protected static java.lang.String kkInstanceId
Constructor Detail |
---|
public KKAdminBase()
Method Detail |
---|
protected void init(KKAdmin eng, java.lang.String propertiesFileName) throws KKAdminException
eng
- propertiesFileName
-
KKAdminException
protected void initSingleStore() throws KKAdminException
KKAdminException
protected void initMultiStoreSingleDB()
protected void initMultiStoreMultiDB() throws KKAdminException
KKAdminException
protected void initLog4j()
protected void initTorque() throws KKAdminException, org.apache.torque.TorqueException
KKAdminException
org.apache.torque.TorqueException
protected void initKonakart() throws KKAdminException
KKAdminException
public java.lang.String getDbVersion()
public java.lang.String getKonakartPropertyValue(java.lang.String section, java.lang.String propertyName) throws KKAdminException
section
- Properties file section e.g. the first part of the property name ("konakart" or
"torque"). Use constants in KonakartAdminConstants, eg.
KonakartAdminConstants.PROPERTY_FILE_SECTION_KONAKART or
KonakartAdminConstants.PROPERTY_FILE_SECTION_TORQUE etcpropertyName
- property name
KKAdminException
public java.lang.String getKonaKartVersion() throws KKAdminException
KKAdminException
public java.lang.String getKonaKartBuildDate() throws KKAdminException
KKAdminException
public static java.util.Calendar getKonakartTimeStamp()
public static java.util.Date getKonakartTimeStampDate()
protected java.lang.String getExceptionMessage(java.lang.Throwable e)
e
-
protected void auditInserts(int userId, AdminObjectIf obj, java.lang.String methodName, int newId) throws java.lang.Exception
userId
- obj
- methodName
- newId
-
java.lang.Exception
protected void auditInserts(int userId, AdminObjectIf[] objs, java.lang.String methodName, int newId) throws java.lang.Exception
userId
- objs
- methodName
- newId
-
java.lang.Exception
protected void auditInserts(int userId, java.lang.String methodName, java.lang.Object obj) throws java.lang.Exception
userId
- methodName
- obj
-
java.lang.Exception
protected void auditInserts(int userId, java.lang.String methodName, java.lang.String data) throws java.lang.Exception
userId
- methodName
- data
-
java.lang.Exception
protected void auditEdits(int userId, java.lang.String methodName, java.lang.String data) throws java.lang.Exception
userId
- methodName
- data
-
java.lang.Exception
protected void auditEdits(int userId, AdminObjectIf obj, java.lang.String methodName) throws java.lang.Exception
userId
- obj
- methodName
-
java.lang.Exception
protected void auditEdits(int userId, java.lang.Object obj, java.lang.String key, java.lang.String methodName) throws java.lang.Exception
userId
- obj
- key
- any String keymethodName
-
java.lang.Exception
protected void auditReads(int userId, int objectId, java.lang.String methodName) throws java.lang.Exception
userId
- objectId
- methodName
-
java.lang.Exception
protected void auditReads(int userId, java.lang.String object, java.lang.String methodName) throws java.lang.Exception
userId
- object
- methodName
-
java.lang.Exception
protected void auditDeletes(int userId, AdminObjectIf obj, int objectId, java.lang.String methodName) throws java.lang.Exception
userId
- obj
- objectId
- methodName
-
java.lang.Exception
protected void auditDeletes(int userId, int objectId, java.lang.String methodName) throws java.lang.Exception
userId
- objectId
- methodName
-
java.lang.Exception
protected void auditDeletes(int userId, java.lang.String objAsString, java.lang.String methodName) throws java.lang.Exception
userId
- objAsString
- methodName
-
java.lang.Exception
protected void auditDeletesForArray(int userId, AdminObjectIf[] objArray, int objectId, java.lang.String methodName) throws java.lang.Exception
userId
- objArray
- objectId
- methodName
-
java.lang.Exception
protected void checkManagerExists(java.lang.Object mgr, java.lang.String functionalityName) throws KKAdminException
mgr
- functionalityName
-
KKAdminException
public static com.konakart.clientlogging.LogMgr getLogMgr()
public AdminProductMgrIf getAdminProductMgr() throws java.lang.Exception
java.lang.Exception
public AdminModulesMgrIf getModulesMgr() throws java.lang.Exception
java.lang.Exception
public AdminLanguageMgrIf getAdminLanguageMgr() throws java.lang.Exception
java.lang.Exception
public AdminCurrencyMgrIf getAdminCurrencyMgr() throws java.lang.Exception
java.lang.Exception
public AdminCategoryMgrIf getAdminCategoryMgr() throws java.lang.Exception
java.lang.Exception
public AdminManufacturerMgrIf getAdminManufacturerMgr() throws java.lang.Exception
java.lang.Exception
public AdminHtmlMgrIf getAdminHtmlMgr() throws java.lang.Exception
java.lang.Exception
public AdminPdfMgrIf getAdminPdfMgr() throws java.lang.Exception
java.lang.Exception
public AdminFileMgrIf getAdminFileMgr() throws java.lang.Exception
java.lang.Exception
public AdminReportMgrIf getAdminReportMgr() throws java.lang.Exception
java.lang.Exception
protected AdminSearchRuleMgrIf getAdminSearchRuleMgr() throws java.lang.Exception
java.lang.Exception
public AdminReviewMgrIf getAdminReviewMgr() throws java.lang.Exception
java.lang.Exception
public AdminEmailMgrIf getAdminEmailMgr() throws java.lang.Exception
java.lang.Exception
public AdminMessageMgrIf getAdminMessageMgr() throws java.lang.Exception
java.lang.Exception
public AdminValidationMgrIf getAdminValidationMgr() throws java.lang.Exception
java.lang.Exception
public AdminPromotionMgrIf getAdminPromotionMgr() throws java.lang.Exception
java.lang.Exception
public AdminRemoteAccessMgrIf getAdminRemoteAccessMgr() throws java.lang.Exception
java.lang.Exception
public AdminAuditMgrIf getAdminAuditMgr() throws java.lang.Exception
java.lang.Exception
public AdminSecurityMgrIf getAdminSecurityMgr() throws java.lang.Exception
java.lang.Exception
public AdminStoreMgrIf getAdminStoreMgr() throws KKAdminException
KKAdminException
public AdminConfigurationMgrIf getAdminConfigurationMgr() throws java.lang.Exception
java.lang.Exception
public AdminOrderMgrIf getAdminOrderMgr() throws java.lang.Exception
java.lang.Exception
public AdminTaxMgrIf getAdminTaxMgr() throws java.lang.Exception
java.lang.Exception
public AdminTagMgrIf getAdminTagMgr() throws java.lang.Exception
java.lang.Exception
public AdminWishListMgrIf getAdminWishListMgr() throws java.lang.Exception
java.lang.Exception
public AdminCustomerTagMgrIf getAdminCustomerTagMgr() throws java.lang.Exception
java.lang.Exception
public AdminProdAttrMgrIf getAdminProdAttrMgr() throws java.lang.Exception
java.lang.Exception
public AdminRewardPointMgrIf getAdminRewardPointMgr() throws java.lang.Exception
java.lang.Exception
public AdminAddressMgrIf getAdminAddressMgr() throws java.lang.Exception
java.lang.Exception
public AdminBillingMgrIf getAdminBillingMgr() throws java.lang.Exception
java.lang.Exception
public AdminDataIntegrityMgrIf getAdminDataIntegrityMgr() throws java.lang.Exception
java.lang.Exception
public AdminCustomerMgrIf getAdminCustomerMgr() throws java.lang.Exception
java.lang.Exception
public AdminSolrMgrIf getAdminSolrMgr() throws java.lang.Exception
java.lang.Exception
public AdminBookableProductMgrIf getAdminBookableProductMgr() throws java.lang.Exception
java.lang.Exception
public AdminMiscItemMgrIf getAdminMiscItemMgr() throws java.lang.Exception
java.lang.Exception
public AdminExecuteMgrIf getAdminExecuteMgr() throws java.lang.Exception
java.lang.Exception
public AdminPublishProductMgrIf getAdminPublishProductMgr() throws java.lang.Exception
java.lang.Exception
public java.lang.String getKonakartAdminPropsFilePath()
public void setKonakartAdminPropsFilePath(java.lang.String konakartAdminPropsFilePath)
konakartAdminPropsFilePath
- The konakartAdminPropsFilePath to set.public java.lang.String getKonakartAdminPropsFileName()
public void setKonakartAdminPropsFileName(java.lang.String konakartAdminPropsFileName)
konakartAdminPropsFileName
- The konakartAdminPropsFileName to set.public boolean isSingleStoreMode()
public AdminEngineConfig getEngConf()
protected java.lang.String getEngineId()
public void setEngConf(AdminEngineConfig engConf)
engConf
- The engConf to set.public KKAdmin getAdminEng()
public void setAdminEng(KKAdmin adminEng)
adminEng
- The adminEng to set.protected static java.lang.String getConfigFile()
public static boolean isTorqueInit()
protected KKAdminException manageThrowable(java.lang.Throwable e)
e
-
protected java.lang.String getKkInstanceId() throws KKAdminException
KKAdminException
protected void checkEnterpriseForExtPriceOrExtQuantity(AdminProductMgrOptions mgrOptions) throws KKAdminException
mgrOptions
-
KKAdminException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |