|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminCommunityStoreMgr
public class AdminCommunityStoreMgr
The AdminCommunityStoreMgr - for Store-related functions of the Admin Application for the Community version
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
AdminBaseMgr.StaticData |
Field Summary |
---|
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir |
Constructor Summary | |
---|---|
AdminCommunityStoreMgr(KKAdminIf eng)
Constructor |
Method Summary | |
---|---|
void |
cloneStore(AdminNewStoreOptions options,
java.lang.String storeToCloneId,
AdminStore newStore,
int userId)
Insert a new store into the mall by cloning a specified store. |
void |
deleteStoreDB(java.lang.String storeId)
Delete a Store from the Database |
boolean |
doesStoreExistDB(java.lang.String storeId)
Return true if the store exists. |
protected void |
doInit(KKAdminIf eng)
|
com.konakart.bl.KKCriteria |
getNewCriteria()
Gets a new KKCriteria object from the super class ten takes off the storeId as we never want to add a where storeId= constraint when looking up these stores. |
AdminStore |
getStoreDBById(java.lang.String storeId)
Return the AdminStore object from the database with the specified storeId |
AdminStore[] |
getStores(org.apache.commons.configuration.Configuration kkConfig)
Get the stores supported by the server. |
AdminStore[] |
getStores(java.lang.String configFile)
Get the stores supported by the server. |
AdminStoreSearchResult |
getStoresDB(AdminStoreSearch search,
int offset,
int size)
Return the AdminStore objects defined by the search criteria. |
protected AdminStore[] |
getStoresPrivate()
Just returns the default single store list. |
AdminStore |
getStoreStatusById(java.lang.String storeId)
Return the status elements of the AdminStore object from the database with the specified storeId |
java.lang.String |
insertStore(AdminStore insertObj,
int userId)
Insert an AdminStore object |
void |
updateStoreDB(AdminStore updateObj)
Update an AdminStore object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdminCommunityStoreMgr(KKAdminIf eng) throws KKAdminException
eng
- KKAdminIf Admin Engine
KKAdminException
Method Detail |
---|
protected void doInit(KKAdminIf eng) throws KKAdminException
eng
-
KKAdminException
public AdminStore[] getStores(java.lang.String configFile) throws KKAdminException
getStores
in interface AdminStoreMgrIf
configFile
- the name of the properties file
KKAdminException
public AdminStore[] getStores(org.apache.commons.configuration.Configuration kkConfig) throws KKAdminException
getStores
in interface AdminStoreMgrIf
kkConfig
- A configuration that has already been read
KKAdminException
protected AdminStore[] getStoresPrivate()
public AdminStoreSearchResult getStoresDB(AdminStoreSearch search, int offset, int size) throws KKAdminException
getStoresDB
in interface AdminStoreMgrIf
search
- the Admin Store search object that defines the AdminStore objects to search for.
If null we use the default AdminStoreSearch object.offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returned.
If this is set to -1 (KonakartAdminConstants.NOT_SET) no limit is imposed.
KKAdminException
public AdminStore getStoreStatusById(java.lang.String storeId) throws KKAdminException
getStoreStatusById
in interface AdminStoreMgrIf
storeId
- the storeId of the AdminStore object to retrieve.
KKAdminException
public AdminStore getStoreDBById(java.lang.String storeId) throws KKAdminException
getStoreDBById
in interface AdminStoreMgrIf
storeId
- the storeId of the AdminStore object to retrieve.
KKAdminException
public void deleteStoreDB(java.lang.String storeId) throws KKAdminException
deleteStoreDB
in interface AdminStoreMgrIf
storeId
- A Store id
KKAdminException
public boolean doesStoreExistDB(java.lang.String storeId) throws KKAdminException, org.apache.torque.TorqueException
doesStoreExistDB
in interface AdminStoreMgrIf
storeId
- store id
KKAdminException
org.apache.torque.TorqueException
- *throws KKAdminExceptionpublic java.lang.String insertStore(AdminStore insertObj, int userId) throws org.apache.torque.TorqueException, KKAdminException, java.lang.Exception
insertStore
in interface AdminStoreMgrIf
insertObj
- An AdminStore objectuserId
- the user inserting the store
java.lang.Exception
KKAdminException
org.apache.torque.TorqueException
public void cloneStore(AdminNewStoreOptions options, java.lang.String storeToCloneId, AdminStore newStore, int userId) throws KKAdminException
cloneStore
in interface AdminStoreMgrIf
options
- Some options for defining how to execute the clonestoreToCloneId
- the store the will be cloned to make the new storenewStore
- the new storeuserId
- the user inserting the store
KKAdminException
public void updateStoreDB(AdminStore updateObj) throws KKAdminException
updateStoreDB
in interface AdminStoreMgrIf
updateObj
- An AdminStore object
KKAdminException
public com.konakart.bl.KKCriteria getNewCriteria()
getNewCriteria
in interface AdminStoreMgrIf
getNewCriteria
in class AdminBaseMgr
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |