com.konakart.blif
Interface StoreMgrIf

All Known Implementing Classes:
StoreMgr

public interface StoreMgrIf

Manages all business logic relevant to the management of Stores for the Application Engine


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.
 

Method Detail

doesStoreExist

boolean doesStoreExist(java.lang.String storeId)
                       throws org.apache.torque.TorqueException
Return true if the store exists.

Parameters:
storeId - store id
Returns:
True if the zone exists
Throws:
org.apache.torque.TorqueException

getStores

java.lang.String[] getStores()
                             throws org.apache.torque.TorqueException,
                                    com.workingdogs.village.DataSetException
Get a list of stores from the database

Returns:
True if the zone exists
Throws:
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException

getStoreStatusById

Store getStoreStatusById(java.lang.String storeId,
                         boolean forceRefresh)
                         throws KKException
Return the status elements of the Store object from the database with the specified storeId. Since this method is called on every API call, to improve performance the status is cached and refreshed after a programmable number of seconds. A forced refresh of the cache occurs if forceRefresh is set to true.

Parameters:
storeId - the storeId of the Store object to retrieve.
forceRefresh - When set, the cached data is refreshed from the database
Returns:
a partly-filled Store object or null if the store isn't found
Throws:
KKException

getStore

Store getStore()
               throws KKException,
                      org.apache.torque.TorqueException,
                      com.workingdogs.village.DataSetException
Returns the store that this KonaKart engine is connected to.

Returns:
Returns a Store object or null if the store isn't found
Throws:
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException


Copyright © 2011 DS Data Systems UK Ltd.