public class AdminCommunityStoreMgr extends AdminBaseMgr implements AdminStoreMgrIf
AdminBaseMgr.StaticData
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminCommunityStoreMgr(KKAdminIf eng)
Constructor
|
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.
|
protected void |
doInit(KKAdminIf eng) |
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.
|
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 |
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
|
addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkAPICallEnabled, checkIntInRange, checkIntIsSet, checkRequired, executeQuery, executeQuery, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminContentMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustPwdHistMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminEngineCacheMgr, getAdminEventMgr, getAdminExecuteMgr, getAdminFileMgr, getAdminFilterMgr, getAdminHtmlMgr, getAdminImportMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminMiscPriceMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminServletMgr, getAdminShipmentMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminSuggestionMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getDebugStackTraceExclusions, getEmailThreadGracefulShutdownTimeout, getExportMgr, getExportMgr, getExportXMLData, getIntFromString, getKkAdminPropsFilePath, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getNewCriteria, getOtherModuleByName, getPostSearchText, getPreSearchText, getProductsToCategoresCriteria, getPropertyValue, getPropertyValue, getPropertyValueAsBool, getPropertyValueAsInt, getPropertyValueAsLong, getRecordCount, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isCommunity, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, isUnix, isWindows, manageException, manageThrowable, refreshConfigs, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNow
public AdminCommunityStoreMgr(KKAdminIf eng) throws KKAdminException
eng
- KKAdminIf Admin EngineKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected void doInit(KKAdminIf eng) throws KKAdminException
eng
- the engKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic AdminStore[] getStores(java.lang.String configFile) throws KKAdminException
getStores
in interface AdminStoreMgrIf
configFile
- the name of the properties fileKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic AdminStore[] getStores(org.apache.commons.configuration2.Configuration kkConfig) throws KKAdminException
getStores
in interface AdminStoreMgrIf
kkConfig
- A configuration that has already been readKKAdminException
- an unexpected exception in the KonaKart Admin engineprotected 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
- an unexpected exception in the KonaKart Admin enginepublic AdminStore getStoreStatusById(java.lang.String storeId) throws KKAdminException
getStoreStatusById
in interface AdminStoreMgrIf
storeId
- the storeId of the AdminStore object to retrieve.KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic AdminStore getStoreDBById(java.lang.String storeId) throws KKAdminException
getStoreDBById
in interface AdminStoreMgrIf
storeId
- the storeId of the AdminStore object to retrieve.KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic void deleteStoreDB(java.lang.String storeId) throws KKAdminException
deleteStoreDB
in interface AdminStoreMgrIf
storeId
- A Store idKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic void removeStoreDB(java.lang.String storeId) throws KKAdminException
removeStoreDB
in interface AdminStoreMgrIf
storeId
- A Store idKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic boolean doesStoreExistDB(java.lang.String storeId) throws KKAdminException, org.apache.torque.TorqueException
doesStoreExistDB
in interface AdminStoreMgrIf
storeId
- store idKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)
*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 storejava.lang.Exception
- an unexpected exceptionKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)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 storeKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic void updateStoreDB(AdminStore updateObj) throws KKAdminException
updateStoreDB
in interface AdminStoreMgrIf
updateObj
- An AdminStore objectKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic com.konakart.db.KKCriteria getNewCriteria()
getNewCriteria
in interface AdminStoreMgrIf
getNewCriteria
in class AdminBaseMgr
Copyright © 2018 DS Data Systems UK Ltd.