public class StoreMgr extends BaseMgr implements StoreMgrIf
Modifier and Type | Class and Description |
---|---|
protected class |
StoreMgr.StaticData
Used to store the static data of this manager
|
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
protected static java.lang.String |
mutex
Mutex for the Manager
|
protected static java.util.Map<java.lang.String,StoreMgr.StaticData> |
staticDataHM
Hash Map that contains the static data
|
protected static int |
STORE_STATUS_TIMEOUT_SECS
we read the store status from the db if it is older than this number of secs
|
templateBaseDir
Modifier and Type | Method and Description |
---|---|
boolean |
doesStoreExist(java.lang.String storeId)
Return true if the store exists.
|
java.lang.String[] |
getActiveStores()
Get a list of the active stores from the database.
|
Address[] |
getAddressesPerStore(java.lang.String storeId)
Returns all of the addresses for the given store.
|
Store |
getStore()
Returns the store that this KonaKart engine is connected to.
|
Store |
getStoreForId(java.lang.String vendorStoreId)
Returns the store referenced by the storeId parameter.
|
protected Store |
getStoreForIdPrivate(java.lang.String vendorStoreId)
Returns the store referenced by the storeId parameter.
|
java.lang.String[] |
getStores()
Get a list of stores from the database
|
Store |
getStoreStatusById(java.lang.String storeId,
boolean forceRefresh)
Return the status elements of the Store object from the database with the specified storeId.
|
protected Store |
getStoreStatusByIdPrivate(java.lang.String storeId)
Return the status elements of the Store object from the database with the specified storeId
|
protected void |
setCriteriaWithStandardAttributes(KKCriteria c)
Set Standard Criteria
|
protected void |
setCriteriaWithStatusAttributes(KKCriteria c)
Set Criteria with status attributes
|
acquireLock, addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkRequired, escapeHTML, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, getAdminEngMgr, getBasketMgr, getBillingMgr, getBookableProductMgr, getCacheMgr, getCatMgr, getConfigMgr, getCookieMgr, getCurrMgr, getCustMgr, getCustomerIdFromSession, getCustomerStatsMgr, getCustomerTagMgr, getEmailMgr, getEng, getEventMgr, getExportMgr, getHTMLEscaper, getKonaKartConfig, getKonaKartConfig, getKonaKartConfig, getLangMgr, getManuMgr, getMiscItemMgr, getMiscPriceMgr, getMode, getModeString, getMqMgr, getMultiStoreMgr, getNewCriteria, getNewCriteria, getOrderIntegrationMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getProductsToCategoresCriteria, getPromMgr, getPunchOutMgr, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getStoreMgr, getStoreTime, getSuggestionMgr, getTaxMgr, getTemplate, getTemplateRoot, getVelocityContextMgr, getWishListMgr, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isClassPresent, isCommunity, isDeadlockException, isEnterprise, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreSharedDb, isMultiStoreShareProducts, isMultiVendor, isUnix, manageThrowable, releaseLock, updateStaticVariablesNow
protected static final int STORE_STATUS_TIMEOUT_SECS
protected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
protected static java.util.Map<java.lang.String,StoreMgr.StaticData> staticDataHM
public StoreMgr(KKEngIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic boolean doesStoreExist(java.lang.String storeId) throws org.apache.torque.TorqueException
doesStoreExist
in interface StoreMgrIf
storeId
- store idorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public java.lang.String[] getStores() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getStores
in interface StoreMgrIf
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public java.lang.String[] getActiveStores() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getActiveStores
in interface StoreMgrIf
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public Store getStoreStatusById(java.lang.String storeId, boolean forceRefresh) throws com.konakart.app.KKException
forceRefresh
is set to true.getStoreStatusById
in interface StoreMgrIf
storeId
- the storeId of the Store object to retrieve.forceRefresh
- When set, the cached data is refreshed from the databasecom.konakart.app.KKException
- an unexpected KKException exceptionprotected Store getStoreStatusByIdPrivate(java.lang.String storeId) throws com.konakart.app.KKException
storeId
- the storeId of the Store object to retrieve.com.konakart.app.KKException
- an unexpected KKException exceptionpublic Store getStore() throws com.konakart.app.KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getStore
in interface StoreMgrIf
com.konakart.app.KKException
- an unexpected KKException exceptionorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public Store getStoreForId(java.lang.String vendorStoreId) throws java.lang.Exception
getStoreForId
in interface StoreMgrIf
vendorStoreId
- the vendorStoreIdjava.lang.Exception
- an unexpected exceptionprotected Store getStoreForIdPrivate(java.lang.String vendorStoreId) throws com.konakart.app.KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
vendorStoreId
- the vendorStoreIdcom.konakart.app.KKException
- an unexpected KKException exceptionorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public Address[] getAddressesPerStore(java.lang.String storeId) throws java.lang.Exception
storeId
parameter is set to null or no addresses exist.getAddressesPerStore
in interface StoreMgrIf
storeId
- the storeIdjava.lang.Exception
- an unexpected exceptionprotected void setCriteriaWithStatusAttributes(KKCriteria c)
c
- the cprotected void setCriteriaWithStandardAttributes(KKCriteria c)
c
- the cCopyright © 2018 DS Data Systems UK Ltd.