com.konakartadmin.bl
Class KKAdminBase

java.lang.Object
  extended by com.konakartadmin.bl.KKAdminBase
Direct Known Subclasses:
KKAdmin

public class KKAdminBase
extends java.lang.Object

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

log

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


logMgr

protected static com.konakart.clientlogging.LogMgr logMgr
Log Manager


adminEng

protected KKAdmin adminEng
The KKAdmin engine


engConf

protected AdminEngineConfig engConf
Configuration parameter passed when the engine is instantiated


globalInit

protected static boolean globalInit

torqueInit

protected static boolean torqueInit

log4jInit

protected static boolean log4jInit

kkCartInit

protected static boolean kkCartInit

dbVersion

private static java.lang.String dbVersion
The Database version according to the ConfigData


mutex

protected java.lang.String mutex

konakartAdminPropsFilePath

protected java.lang.String konakartAdminPropsFilePath

konakartAdminPropsFileName

protected java.lang.String konakartAdminPropsFileName

configFile

protected static java.lang.String configFile
Config File as a String


configFileURL

protected static java.net.URL configFileURL
Config File as a URL


mgrFactory

protected AdminMgrFactory mgrFactory
Factory for creating managers


allConfig

protected static org.apache.commons.configuration.Configuration allConfig
Holds all the properties from the properties file


kkConfig

protected static org.apache.commons.configuration.Configuration kkConfig
Used to read the KonaKart properties from the properties file


torqueConfig

protected static org.apache.commons.configuration.Configuration torqueConfig
Used to read the Torque properties from the properties file


kkInstanceId

protected static java.lang.String kkInstanceId
The KonaKart Instance - read from the properties file

Constructor Detail

KKAdminBase

public KKAdminBase()
Method Detail

init

protected void init(KKAdmin eng,
                    java.lang.String propertiesFileName)
             throws KKAdminException
Initialization code

Parameters:
eng -
propertiesFileName -
Throws:
KKAdminException

initSingleStore

protected void initSingleStore()
                        throws KKAdminException
Initialisation and start-up checks for the Single Store Mode

Throws:
KKAdminException

initMultiStoreSingleDB

protected void initMultiStoreSingleDB()
Placeholder for initialisation for MultiStore Single Database.


initMultiStoreMultiDB

protected void initMultiStoreMultiDB()
                              throws KKAdminException
Throws:
KKAdminException

initLog4j

protected void initLog4j()
The initialisation of log4j is synchronised. If the System Property "log4j.configuration" is defined, this file name is first tried. If this fails to locate a resource, it looks for konakart-logging.properties on the classpath; if it doesn't find that it tries logging.properties, then log4j.properties.


initTorque

protected void initTorque()
                   throws KKAdminException,
                          org.apache.torque.TorqueException
The initialisation of Torque is synchronised.

Throws:
KKAdminException
org.apache.torque.TorqueException

initKonakart

protected void initKonakart()
                     throws KKAdminException
Initialise KonaKart from the properties file

Throws:
KKAdminException

getDbVersion

public java.lang.String getDbVersion()
Returns:
a String representing the Database version currently installed

getKonakartPropertyValue

public java.lang.String getKonakartPropertyValue(java.lang.String section,
                                                 java.lang.String propertyName)
                                          throws KKAdminException
Returns the property value from the properties file in the specified section

Parameters:
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 etc
propertyName - property name
Returns:
Returns the value of the specified property as a String
Throws:
KKAdminException

getKonaKartVersion

public java.lang.String getKonaKartVersion()
                                    throws KKAdminException
Get the KonaKart Version Number from the properties file

Returns:
the KonaKart Version number as a String
Throws:
KKAdminException

getKonaKartBuildDate

public java.lang.String getKonaKartBuildDate()
                                      throws KKAdminException
Get the KonaKart Build Date from the properties file

Returns:
the KonaKart Build Date number as a String
Throws:
KKAdminException

getKonakartTimeStamp

public static java.util.Calendar getKonakartTimeStamp()
Returns:
get a Konakart timestamp

getKonakartTimeStampDate

public static java.util.Date getKonakartTimeStampDate()
Returns:
get a Konakart timestamp

getExceptionMessage

protected java.lang.String getExceptionMessage(java.lang.Throwable e)
Returns a string containing the stack trace of the exception and its cause

Parameters:
e -
Returns:
Returns a string containing the stack trace

auditInserts

protected void auditInserts(int userId,
                            AdminObjectIf obj,
                            java.lang.String methodName,
                            int newId)
                     throws java.lang.Exception
Auditing for inserts

Parameters:
userId -
obj -
methodName -
newId -
Throws:
java.lang.Exception

auditInserts

protected void auditInserts(int userId,
                            AdminObjectIf[] objs,
                            java.lang.String methodName,
                            int newId)
                     throws java.lang.Exception
Auditing for inserts for an array of products

Parameters:
userId -
objs -
methodName -
newId -
Throws:
java.lang.Exception

auditInserts

protected void auditInserts(int userId,
                            java.lang.String methodName,
                            java.lang.Object obj)
                     throws java.lang.Exception
Auditing for inserts for an array of products

Parameters:
userId -
methodName -
obj -
Throws:
java.lang.Exception

auditInserts

protected void auditInserts(int userId,
                            java.lang.String methodName,
                            java.lang.String data)
                     throws java.lang.Exception
Auditing for inserts where we just insert ids

Parameters:
userId -
methodName -
data -
Throws:
java.lang.Exception

auditEdits

protected void auditEdits(int userId,
                          java.lang.String methodName,
                          java.lang.String data)
                   throws java.lang.Exception
Auditing for updates

Parameters:
userId -
methodName -
data -
Throws:
java.lang.Exception

auditEdits

protected void auditEdits(int userId,
                          AdminObjectIf obj,
                          java.lang.String methodName)
                   throws java.lang.Exception
Auditing for edits

Parameters:
userId -
obj -
methodName -
Throws:
java.lang.Exception

auditEdits

protected void auditEdits(int userId,
                          java.lang.Object obj,
                          java.lang.String key,
                          java.lang.String methodName)
                   throws java.lang.Exception
Auditing for edits

Parameters:
userId -
obj -
key - any String key
methodName -
Throws:
java.lang.Exception

auditReads

protected void auditReads(int userId,
                          int objectId,
                          java.lang.String methodName)
                   throws java.lang.Exception
Auditing for reads

Parameters:
userId -
objectId -
methodName -
Throws:
java.lang.Exception

auditReads

protected void auditReads(int userId,
                          java.lang.String object,
                          java.lang.String methodName)
                   throws java.lang.Exception
Auditing for reads

Parameters:
userId -
object -
methodName -
Throws:
java.lang.Exception

auditDeletes

protected void auditDeletes(int userId,
                            AdminObjectIf obj,
                            int objectId,
                            java.lang.String methodName)
                     throws java.lang.Exception
Auditing for deletes of a single object

Parameters:
userId -
obj -
objectId -
methodName -
Throws:
java.lang.Exception

auditDeletes

protected void auditDeletes(int userId,
                            int objectId,
                            java.lang.String methodName)
                     throws java.lang.Exception
Auditing for deletes of a single object

Parameters:
userId -
objectId -
methodName -
Throws:
java.lang.Exception

auditDeletes

protected void auditDeletes(int userId,
                            java.lang.String objAsString,
                            java.lang.String methodName)
                     throws java.lang.Exception
Auditing for deletes of a single object, when the object has no integer id

Parameters:
userId -
objAsString -
methodName -
Throws:
java.lang.Exception

auditDeletesForArray

protected void auditDeletesForArray(int userId,
                                    AdminObjectIf[] objArray,
                                    int objectId,
                                    java.lang.String methodName)
                             throws java.lang.Exception
Auditing for deletes of an array of objects

Parameters:
userId -
objArray -
objectId -
methodName -
Throws:
java.lang.Exception

checkManagerExists

protected void checkManagerExists(java.lang.Object mgr,
                                  java.lang.String functionalityName)
                           throws KKAdminException
Common code to check for optional managers

Parameters:
mgr -
functionalityName -
Throws:
KKAdminException

getLogMgr

public static com.konakart.clientlogging.LogMgr getLogMgr()
Returns:
Returns the logMgr creating it if it doesn't exist already.

getAdminProductMgr

public AdminProductMgrIf getAdminProductMgr()
                                     throws java.lang.Exception
Returns:
an AdminProductMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getModulesMgr

public AdminModulesMgrIf getModulesMgr()
                                throws java.lang.Exception
Returns:
the modulesMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminLanguageMgr

public AdminLanguageMgrIf getAdminLanguageMgr()
                                       throws java.lang.Exception
Returns:
an AdminLanguageMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminCurrencyMgr

public AdminCurrencyMgrIf getAdminCurrencyMgr()
                                       throws java.lang.Exception
Returns:
Returns the adminCurrencyMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminCategoryMgr

public AdminCategoryMgrIf getAdminCategoryMgr()
                                       throws java.lang.Exception
Returns:
Returns the adminCategoryMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminManufacturerMgr

public AdminManufacturerMgrIf getAdminManufacturerMgr()
                                               throws java.lang.Exception
Returns:
Returns the adminManufacturerMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminHtmlMgr

public AdminHtmlMgrIf getAdminHtmlMgr()
                               throws java.lang.Exception
Returns:
Returns the adminHtmlMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminPdfMgr

public AdminPdfMgrIf getAdminPdfMgr()
                             throws java.lang.Exception
Returns:
Returns the adminPdfMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminFileMgr

public AdminFileMgrIf getAdminFileMgr()
                               throws java.lang.Exception
Returns:
Returns the adminFileMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminReportMgr

public AdminReportMgrIf getAdminReportMgr()
                                   throws java.lang.Exception
Returns:
Returns the adminReportMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminSearchRuleMgr

protected AdminSearchRuleMgrIf getAdminSearchRuleMgr()
                                              throws java.lang.Exception
Returns:
Returns the AdminSearchRuleMg.
Throws:
java.lang.Exception

getAdminReviewMgr

public AdminReviewMgrIf getAdminReviewMgr()
                                   throws java.lang.Exception
Returns:
Returns the adminReviewMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminEmailMgr

public AdminEmailMgrIf getAdminEmailMgr()
                                 throws java.lang.Exception
Returns:
Returns a new adminEmailMgr
Throws:
java.lang.Exception

getAdminMessageMgr

public AdminMessageMgrIf getAdminMessageMgr()
                                     throws java.lang.Exception
Returns:
Returns the adminMessageMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminValidationMgr

public AdminValidationMgrIf getAdminValidationMgr()
                                           throws java.lang.Exception
Returns:
Returns the adminValidationMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminPromotionMgr

public AdminPromotionMgrIf getAdminPromotionMgr()
                                         throws java.lang.Exception
Returns:
Returns the adminPromotionMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminRemoteAccessMgr

public AdminRemoteAccessMgrIf getAdminRemoteAccessMgr()
                                               throws java.lang.Exception
Returns:
Returns the adminRemoteAccessMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminAuditMgr

public AdminAuditMgrIf getAdminAuditMgr()
                                 throws java.lang.Exception
Returns:
an AdminAuditMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminSecurityMgr

public AdminSecurityMgrIf getAdminSecurityMgr()
                                       throws java.lang.Exception
Returns:
an AdminSecurityMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminStoreMgr

public AdminStoreMgrIf getAdminStoreMgr()
                                 throws KKAdminException
Returns:
an AdminStoreMgr creating one if it didn't previously exist
Throws:
KKAdminException

getAdminConfigurationMgr

public AdminConfigurationMgrIf getAdminConfigurationMgr()
                                                 throws java.lang.Exception
Returns:
an AdminConfigurationMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminOrderMgr

public AdminOrderMgrIf getAdminOrderMgr()
                                 throws java.lang.Exception
Returns:
an AdminOrdersMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminTaxMgr

public AdminTaxMgrIf getAdminTaxMgr()
                             throws java.lang.Exception
Returns:
an AdminTaxMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminTagMgr

public AdminTagMgrIf getAdminTagMgr()
                             throws java.lang.Exception
Returns:
an AdminTagMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminWishListMgr

public AdminWishListMgrIf getAdminWishListMgr()
                                       throws java.lang.Exception
Returns:
an AdminWishListMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminCustomerTagMgr

public AdminCustomerTagMgrIf getAdminCustomerTagMgr()
                                             throws java.lang.Exception
Returns:
an AdminCustomerMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminProdAttrMgr

public AdminProdAttrMgrIf getAdminProdAttrMgr()
                                       throws java.lang.Exception
Returns:
an AdminProdAttrMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminRewardPointMgr

public AdminRewardPointMgrIf getAdminRewardPointMgr()
                                             throws java.lang.Exception
Returns:
an AdminRewardPointMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminAddressMgr

public AdminAddressMgrIf getAdminAddressMgr()
                                     throws java.lang.Exception
Returns:
an AdminAddressMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminBillingMgr

public AdminBillingMgrIf getAdminBillingMgr()
                                     throws java.lang.Exception
Returns:
an AdminBillingMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminDataIntegrityMgr

public AdminDataIntegrityMgrIf getAdminDataIntegrityMgr()
                                                 throws java.lang.Exception
Returns:
an AdminDataIntegrityMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminCustomerMgr

public AdminCustomerMgrIf getAdminCustomerMgr()
                                       throws java.lang.Exception
Returns:
an AdminCustomerMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminSolrMgr

public AdminSolrMgrIf getAdminSolrMgr()
                               throws java.lang.Exception
Returns:
an AdminSolrMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminBookableProductMgr

public AdminBookableProductMgrIf getAdminBookableProductMgr()
                                                     throws java.lang.Exception
Returns:
an AdminBookableProductMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminMiscItemMgr

public AdminMiscItemMgrIf getAdminMiscItemMgr()
                                       throws java.lang.Exception
Returns:
an AdminMiscItemMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminExecuteMgr

public AdminExecuteMgrIf getAdminExecuteMgr()
                                     throws java.lang.Exception
Returns:
an AdminExecuteMgr creating one if it didn't previously exist
Throws:
java.lang.Exception

getAdminPublishProductMgr

public AdminPublishProductMgrIf getAdminPublishProductMgr()
                                                   throws java.lang.Exception
Returns:
Returns the adminPublishProductMgr.
Throws:
java.lang.Exception

getKonakartAdminPropsFilePath

public java.lang.String getKonakartAdminPropsFilePath()
Returns:
Returns the konakartAdminPropsFilePath.

setKonakartAdminPropsFilePath

public void setKonakartAdminPropsFilePath(java.lang.String konakartAdminPropsFilePath)
Parameters:
konakartAdminPropsFilePath - The konakartAdminPropsFilePath to set.

getKonakartAdminPropsFileName

public java.lang.String getKonakartAdminPropsFileName()
Returns:
Returns the konakartAdminPropsFileName.

setKonakartAdminPropsFileName

public void setKonakartAdminPropsFileName(java.lang.String konakartAdminPropsFileName)
Parameters:
konakartAdminPropsFileName - The konakartAdminPropsFileName to set.

isSingleStoreMode

public boolean isSingleStoreMode()
Returns:
Returns the engConf.

getEngConf

public AdminEngineConfig getEngConf()
Returns:
Returns the engConf.

getEngineId

protected java.lang.String getEngineId()
Returns:
Returns the engineId ("E", "C" or "?")

setEngConf

public void setEngConf(AdminEngineConfig engConf)
Parameters:
engConf - The engConf to set.

getAdminEng

public KKAdmin getAdminEng()
Returns:
Returns the adminEng.

setAdminEng

public void setAdminEng(KKAdmin adminEng)
Parameters:
adminEng - The adminEng to set.

getConfigFile

protected static java.lang.String getConfigFile()
Returns:
the configFile

isTorqueInit

public static boolean isTorqueInit()
Returns:
the torqueInit

manageThrowable

protected KKAdminException manageThrowable(java.lang.Throwable e)
Common code to manage exceptions in the KKAdmin engine

Parameters:
e -
Returns:
Either the exception specified if it's already a KKAdminException or a new KKAdminException that wraps the specified exception

getKkInstanceId

protected java.lang.String getKkInstanceId()
                                    throws KKAdminException
Get the instance Id from the properties file

Returns:
the kkInstanceId
Throws:
KKAdminException

checkEnterpriseForExtPriceOrExtQuantity

protected void checkEnterpriseForExtPriceOrExtQuantity(AdminProductMgrOptions mgrOptions)
                                                throws KKAdminException
External prices and quantity require the enterprise version to be present.

Parameters:
mgrOptions -
Throws:
KKAdminException


Copyright © 2011 DS Data Systems UK Ltd.