|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.bl.BaseMgr
com.konakart.bl.StoreMgr
public class StoreMgr
Manages all business logic relevant to the management of Stores for the Application Engine
| Nested Class Summary | |
|---|---|
protected class |
StoreMgr.StaticData
Used to store the static data of this manager |
| Field Summary | |
|---|---|
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 |
| Fields inherited from class com.konakart.bl.BaseMgr |
|---|
templateBaseDir |
| Constructor Summary | |
|---|---|
StoreMgr(KKEngIf eng)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
doesStoreExist(java.lang.String storeId)
Return true if the store exists. |
Store |
getStore()
Returns the store that this KonaKart engine is connected to. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public StoreMgr(KKEngIf eng)
throws java.lang.Exception
eng -
java.lang.Exception| Method Detail |
|---|
public boolean doesStoreExist(java.lang.String storeId)
throws org.apache.torque.TorqueException
doesStoreExist in interface StoreMgrIfstoreId - store id
org.apache.torque.TorqueException
public java.lang.String[] getStores()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
getStores in interface StoreMgrIforg.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public Store getStoreStatusById(java.lang.String storeId,
boolean forceRefresh)
throws KKException
forceRefresh is set to true.
getStoreStatusById in interface StoreMgrIfstoreId - the storeId of the Store object to retrieve.forceRefresh - When set, the cached data is refreshed from the database
KKException
protected Store getStoreStatusByIdPrivate(java.lang.String storeId)
throws KKException
storeId - the storeId of the Store object to retrieve.
KKException
public Store getStore()
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
getStore in interface StoreMgrIfKKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetExceptionprotected void setCriteriaWithStatusAttributes(KKCriteria c)
c - protected void setCriteriaWithStandardAttributes(KKCriteria c)
c -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||