public class AdminDataIntegrityMgr extends AdminBaseMgr implements AdminDataIntegrityMgrIf
AdminBaseMgr.StaticData
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
private org.apache.commons.beanutils.BeanUtilsBean |
myBeanUtil
Utility for copying beans
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminDataIntegrityMgr(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
addCatsToMap(AdminCategory[] cats,
java.util.HashMap<java.lang.Integer,AdminCategory> catMap) |
boolean |
checkCategories(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Categories
|
private boolean |
checkCategory(AdminDataIntegrityOptions dataIntegrityOptions,
int categoryId,
AdminLanguage[] langs,
java.util.HashMap<java.lang.Integer,AdminCategory> catMap)
Checks the integrity of the Category whose id is specified
|
boolean |
checkContent(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Content
|
boolean |
checkContentTypes(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Content Types
|
boolean |
checkCustomerGroups(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Customer Groups
|
boolean |
checkDataIntegrity(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of data in the specified area in the KonaKart database
|
private boolean |
checkManufacturer(AdminDataIntegrityOptions dataIntegrityOptions,
int manufacturerId,
AdminLanguage[] langs)
Checks the integrity of the Manufacturer whose id is specified
|
boolean |
checkManufacturers(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Manufacturers
|
boolean |
checkMiscItemTypes(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Misc Item Types
|
boolean |
checkOrderReturnStatuses(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Order Statuses
|
boolean |
checkOrderStatuses(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Order Statuses
|
private boolean |
checkProduct(AdminDataIntegrityOptions dataIntegrityOptions,
int productId,
AdminLanguage[] langs,
java.util.Set<java.lang.Integer> catSet)
Checks the integrity of the Product whose id is specified
|
boolean |
checkProducts(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Products
|
boolean |
checkTagGroups(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Product tag groups
|
boolean |
checkTags(AdminDataIntegrityOptions dataIntegrityOptions)
Checks the integrity of Product tags
|
private java.lang.String |
contentDescriptionHashKey(AdminContentDescription item) |
private java.lang.String |
contentDescriptionHashKey(int mitId,
int langId) |
private java.lang.String |
contentTypeDescriptionHashKey(AdminContentTypeDescription item) |
private java.lang.String |
contentTypeDescriptionHashKey(int mitId,
int langId) |
private java.lang.String |
custGroupHashKey(AdminCustomerGroup cg) |
private java.lang.String |
custGroupHashKey(int cgId,
int langId) |
private AdminCategoryDescription |
fillCategoryDescription(AdminCategoryDescription desc,
AdminCategory cat)
Return a Category Description object filled with a Category Description object with a
matching langaueId or if one of those isn't present we create one using the Category
Description that exists for the default language.
|
private AdminManufacturerInfo |
fillManufacturerDescription(AdminManufacturerInfo desc,
AdminManufacturer manu)
Return a Manufacturer Description object filled with a Manufacturer Description object with a
matching langaueId or if one of those isn't present we create one using the Manufacturer
Description that exists for the default language.
|
private AdminProductDescription |
fillProductDescription(AdminProductDescription desc,
AdminProduct prod)
Return a Product Description object filled with a Product Description object with a matching
languageId or if one of those isn't present we create one using the Product Description that
exists for the default language.
|
private AdminContentDescription |
findContentDescriptionToCopy(java.util.Map<java.lang.String,AdminContentDescription> itemHash,
int contentId,
int defLangId) |
private AdminContent[] |
getAllContents()
This returns all the Content records in the database - visible to the current store.
|
private AdminContentType[] |
getAllContentTypes()
This returns all the Content Types in the database - visible to the current store.
|
private AdminCustomerGroup[] |
getAllCustomerGroups()
This returns all the CustomerGroups in the database - but be careful because it will return
rows for languages that may not be available in the current mode.
|
private AdminMiscItemType[] |
getAllMiscItemTypes()
This returns all the Misc Item Types in the database - visible to the current store.
|
AdminOrderReturnStatus[] |
getAllOrderReturnStatuses()
This returns all the Order Return Statuses in the database - but be careful because it will return
rows for languages that may not be available in the current mode.
|
AdminOrderStatus[] |
getAllOrderStatuses()
This returns all the Order Statuses in the database - but be careful because it will return
rows for languages that may not be available in the current mode.
|
private AdminTagGroup[] |
getAllTagGroups(boolean languageJoin,
boolean displayOnlyLangs)
This returns all the Tag Groups in the database - visible to the current store.
|
private AdminTag[] |
getAllTags(boolean languageJoin,
boolean displayOnlyLangs)
This returns all the Tags in the database - visible to the current store.
|
protected org.apache.commons.beanutils.BeanUtilsBean |
getMyBeanUtil() |
private java.lang.String |
miscItemTypeHashKey(AdminMiscItemType mit) |
private java.lang.String |
miscItemTypeHashKey(int mitId,
int langId) |
private java.lang.String |
orderReturnStatusHashKey(AdminOrderReturnStatus ors) |
private java.lang.String |
orderReturnStatusHashKey(int orsId,
int langId) |
private java.lang.String |
orderStatusHashKey(AdminOrderStatus os) |
private java.lang.String |
orderStatusHashKey(int osId,
int langId) |
void |
refreshConfigs()
Refresh the configuration of the Admin Data Integrity Manager
|
private java.lang.String |
tagGrpHashKey(AdminTagGroup tagGrp) |
private java.lang.String |
tagGrpHashKey(int tagId,
int langId) |
private java.lang.String |
tagHashKey(AdminTag tag) |
private java.lang.String |
tagHashKey(int tagId,
int langId) |
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, 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, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNow
protected static org.apache.commons.logging.Log log
private org.apache.commons.beanutils.BeanUtilsBean myBeanUtil
public AdminDataIntegrityMgr(KKAdminIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic boolean checkDataIntegrity(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
AdminDataIntegrityMgrIf
checkDataIntegrity
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic boolean checkCategories(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkCategories
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate void addCatsToMap(AdminCategory[] cats, java.util.HashMap<java.lang.Integer,AdminCategory> catMap)
private boolean checkCategory(AdminDataIntegrityOptions dataIntegrityOptions, int categoryId, AdminLanguage[] langs, java.util.HashMap<java.lang.Integer,AdminCategory> catMap) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
dataIntegrityOptions
- Defines the options to use for the data integrity checkcategoryId
- category Idlangs
- all languagescatMap
- a HashMap of category Id to Category object for rapid lookupsorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate AdminCategoryDescription fillCategoryDescription(AdminCategoryDescription desc, AdminCategory cat) throws java.lang.Exception
desc
- the desccat
- the catjava.lang.Exception
- an unexpected exceptionpublic boolean checkProducts(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkProducts
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate boolean checkProduct(AdminDataIntegrityOptions dataIntegrityOptions, int productId, AdminLanguage[] langs, java.util.Set<java.lang.Integer> catSet) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
dataIntegrityOptions
- Defines the options to use for the data integrity checkproductId
- product Idlangs
- all languagescatSet
- the set of categoriesorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate AdminProductDescription fillProductDescription(AdminProductDescription desc, AdminProduct prod) throws java.lang.Exception
desc
- the descprod
- the prodjava.lang.Exception
- an unexpected exceptionpublic boolean checkManufacturers(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkManufacturers
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate boolean checkManufacturer(AdminDataIntegrityOptions dataIntegrityOptions, int manufacturerId, AdminLanguage[] langs) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
dataIntegrityOptions
- Defines the options to use for the data integrity checkmanufacturerId
- manufacturer Idlangs
- all languagesorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate AdminManufacturerInfo fillManufacturerDescription(AdminManufacturerInfo desc, AdminManufacturer manu) throws java.lang.Exception
desc
- the descmanu
- the manujava.lang.Exception
- an unexpected exceptionpublic boolean checkOrderStatuses(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkOrderStatuses
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate java.lang.String orderStatusHashKey(AdminOrderStatus os)
private java.lang.String orderStatusHashKey(int osId, int langId)
public AdminOrderStatus[] getAllOrderStatuses() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getAllOrderStatuses
in interface AdminDataIntegrityMgrIf
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic boolean checkCustomerGroups(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkCustomerGroups
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate java.lang.String custGroupHashKey(AdminCustomerGroup cg)
private java.lang.String custGroupHashKey(int cgId, int langId)
private AdminCustomerGroup[] getAllCustomerGroups() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic boolean checkMiscItemTypes(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkMiscItemTypes
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate java.lang.String miscItemTypeHashKey(AdminMiscItemType mit)
private java.lang.String miscItemTypeHashKey(int mitId, int langId)
private AdminMiscItemType[] getAllMiscItemTypes() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic boolean checkTags(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkTags
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate java.lang.String tagHashKey(AdminTag tag)
private java.lang.String tagHashKey(int tagId, int langId)
private AdminTag[] getAllTags(boolean languageJoin, boolean displayOnlyLangs) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
languageJoin
- if true we join with the languages tabledisplayOnlyLangs
- if true we process only display-only languagesorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic boolean checkTagGroups(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkTagGroups
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate java.lang.String tagGrpHashKey(AdminTagGroup tagGrp)
private java.lang.String tagGrpHashKey(int tagId, int langId)
private AdminTagGroup[] getAllTagGroups(boolean languageJoin, boolean displayOnlyLangs) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
languageJoin
- if true we join with the languages tabledisplayOnlyLangs
- if true we process only display-only languagesorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic boolean checkContentTypes(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkContentTypes
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate java.lang.String contentTypeDescriptionHashKey(AdminContentTypeDescription item)
private java.lang.String contentTypeDescriptionHashKey(int mitId, int langId)
private AdminContentType[] getAllContentTypes() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionpublic boolean checkContent(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
checkContent
in interface AdminDataIntegrityMgrIf
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate AdminContentDescription findContentDescriptionToCopy(java.util.Map<java.lang.String,AdminContentDescription> itemHash, int contentId, int defLangId)
private java.lang.String contentDescriptionHashKey(AdminContentDescription item)
private java.lang.String contentDescriptionHashKey(int mitId, int langId)
private AdminContent[] getAllContents() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic boolean checkOrderReturnStatuses(AdminDataIntegrityOptions dataIntegrityOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
dataIntegrityOptions
- Defines the options to use for the data integrity checkorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminOrderReturnStatus[] getAllOrderReturnStatuses() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprivate java.lang.String orderReturnStatusHashKey(AdminOrderReturnStatus ors)
private java.lang.String orderReturnStatusHashKey(int orsId, int langId)
public void refreshConfigs() throws java.lang.Exception
refreshConfigs
in class AdminBaseMgr
java.lang.Exception
- an unexpected exceptionprotected org.apache.commons.beanutils.BeanUtilsBean getMyBeanUtil()
Copyright © 2018 DS Data Systems UK Ltd.