public interface AdminStoreMgrIf
Modifier and Type | Method and Description |
---|---|
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.
|
com.konakart.db.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.configuration2.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.
|
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 |
removeStoreDB(java.lang.String storeId)
Delete a Store from the Database - this doesn't just mark the store as deleted (that's what
deleteStoreDB does) but it removes all the records for this store from the database.
|
void |
updateStoreDB(AdminStore updateObj)
Update an AdminStore object
|
AdminStore[] getStores(java.lang.String configFile) throws KKAdminException
configFile
- the name of the properties fileKKAdminException
- thrown when there are problems reading the properties fileAdminStore[] getStores(org.apache.commons.configuration2.Configuration kkConfig) throws KKAdminException
kkConfig
- A configuration that has already been readKKAdminException
- an unexpected KKAdminException exceptionAdminStoreSearchResult getStoresDB(AdminStoreSearch search, int offset, int size) throws KKAdminException
search
- the generic Admin search object that defines the AdminStore objects to search for.
If null we use the default AdminSearch 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
- an unexpected KKAdminException exceptionAdminStore getStoreStatusById(java.lang.String storeId) throws KKAdminException
storeId
- the storeId of the AdminStore object to retrieve.KKAdminException
- an unexpected KKAdminException exceptionAdminStore getStoreDBById(java.lang.String storeId) throws KKAdminException
storeId
- the storeId of the AdminStore object to retrieve.KKAdminException
- an unexpected KKAdminException exceptionvoid deleteStoreDB(java.lang.String storeId) throws KKAdminException
storeId
- A Store idKKAdminException
- an unexpected KKAdminException exceptionvoid removeStoreDB(java.lang.String storeId) throws KKAdminException
storeId
- A Store idKKAdminException
- an unexpected KKAdminException exceptionboolean doesStoreExistDB(java.lang.String storeId) throws KKAdminException, org.apache.torque.TorqueException
storeId
- store idKKAdminException
- an unexpected KKAdminException exceptionorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)java.lang.String insertStore(AdminStore insertObj, int userId) throws org.apache.torque.TorqueException, KKAdminException, java.lang.Exception
insertObj
- An AdminStore objectuserId
- the user inserting the storeorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected KKAdminException exceptionjava.lang.Exception
- an unexpected exceptionvoid cloneStore(AdminNewStoreOptions options, java.lang.String storeToCloneId, AdminStore newStore, int userId) throws KKAdminException, org.apache.torque.TorqueException, java.lang.Exception
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 storejava.lang.Exception
- an unexpected exceptionorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected KKAdminException exceptionvoid updateStoreDB(AdminStore updateObj) throws KKAdminException
updateObj
- An AdminStore objectKKAdminException
- an unexpected KKAdminException exceptioncom.konakart.db.KKCriteria getNewCriteria()
Copyright © 2018 DS Data Systems UK Ltd.