|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.service.scheduler.SchedulableService atg.service.scheduler.SingletonSchedulableService atg.commerce.catalog.CMSService atg.commerce.catalog.custom.CatalogVerificationService
public class CatalogVerificationService
This CMSService performs the following service functions
Available service functions:
CVS_VERIFYCATALOGS - verify catalogs
CVS_VERIFYPRODUCTS - verify products
CVS_VERIFYCATEGORIES - verify categories
CVS_VERIFYSKUS - verify skus
getAvailableFunctions
,
This service will verify the following custom catalog objects
Catalogs: ancestorCategories, allRootCategories, directAncestorCatalogsAndSelf,
indirectAncestorCatalogs, subCatalogs(only if configured)
Categories: fixedRelatedCategories, categoryInfos, parentCategory
Products: fixedRelatedProducts, catalogsRelatedProducts, productInfos,
parentCategoriesForCatalog
Skus: fixedReplacementProducts, catalogsReplacementProducts, skuInfos
Important: AncestorGeneratorService must run before this service.
,
CatalogUpdateService.isComputeSubCatalogs()
Nested Class Summary |
---|
Nested classes/interfaces inherited from class atg.commerce.catalog.CMSService |
---|
atg.commerce.catalog.CMSService.BookkeepingForThread |
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.service.scheduler.SchedulableService |
---|
mJobId |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.commerce.catalog.CMSConstants |
---|
AGS_GENANCESTORS, AGS_GENCATALOGS, AGS_GENPARENTCATS, ANCESTORS_GENERATED, CATALOGS_UPDATED, CATALOGS_VERIFIED, CATEGORIES_VERIFIED, CUS_UPDATECATALOGS, CVS_VERIFYCATALOGS, CVS_VERIFYCATEGORIES, CVS_VERIFYPRODUCTS, CVS_VERIFYSKUS, DEFAULT_CATALOG_ITEM_TYPE, DEFAULT_MAP_SIZE, GENERATED_ANCESTORS, INFOS_GENERATED, IS_ANCESTORS_GENERATED, LEVEL_DEBUG, LEVEL_ERROR, LEVEL_INFO, LEVEL_WARNING, MY_RESOURCE_NAME, NO_PATH, NOT_GENERATOR, sResourceBundle, TYPE_ANCESTOR, TYPE_CATALOGMAINTENANCE, TYPE_CUSTOM_MIGRATION, TYPE_MIGRATION, TYPE_UPDATE, TYPE_VERIFY, VALID_PATH |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
CatalogVerificationService()
|
Method Summary | |
---|---|
CatalogProperties |
getCatalogProperties()
A helper class that holds commonly accessed reposority property and item names |
java.lang.String[] |
getCatalogRepositories()
Returns property catalogRepositories |
CustomCatalogTools |
getCatalogTools()
Returns property catalogTools |
int |
getMaxItemsPerTransaction()
Returns property maxItemsPerTransaction |
java.lang.String |
getServiceName()
|
boolean |
isComputeSubCatalogs()
Returns property computeSubCatalogs |
boolean |
isPruneInvalidInfoReferences()
If true, references inside an info object (category-info, product-info, or sku-info) that refer to catalog elements that are not contained in the catalog relevant to the given info, will be removed Default value is true |
boolean |
isVerifyCategoryInfos()
Deprecated. verifyCategoryInfo is always executed as part of verifying categories. |
boolean |
isWarnOnInvalidRelatedItems()
If this is true, then a warning will be printed when ever a category has a related category that is not in the same catalog, a product has a related product that is not in the same catalog or a sku has a replacement product that is not in the same catalog. |
boolean |
performService(Repository pRepository,
java.util.Collection pCatalogIds,
java.util.List pServiceFunctions)
Performs this services functions |
protected void |
resetCategorysCatalog(RepositoryItem pCategory,
RepositoryItem pCatalog)
This method will be called if pCategory.catalog refers to a catalog
that is not pCatalog. |
protected void |
resetProductsParent(RepositoryItem pProductInfo,
RepositoryItem pProduct,
RepositoryItem pCatalog)
This method is not implemented. |
void |
setCatalogProperties(CatalogProperties pCatalogProperties)
|
void |
setCatalogRepositories(java.lang.String[] pCatalogRepositories)
Sets property catalogRepositories |
void |
setCatalogTools(CustomCatalogTools pCatalogTools)
Sets property catalogTools |
void |
setComputeSubCatalogs(boolean pComputeSubCatalogs)
Sets property computeSubCatalogs |
void |
setMaxItemsPerTransaction(int pMaxItemsPerTransaction)
Sets property maxItemsPerTransaction |
void |
setPruneInvalidInfoReferences(boolean pPruneInvalidInfoReferences)
|
void |
setVerifyCategoryInfos(boolean pVerifyCategoryInfos)
|
void |
setWarnOnInvalidRelatedItems(boolean pWarnOnInvalidRelatedItems)
|
protected java.lang.String |
stringIt(java.util.Collection pObject)
|
protected java.lang.String |
stringIt(java.lang.Object[] pObject)
|
void |
verifyCatalog(RepositoryItem pCatalog,
Repository pCatalogRepository)
Verify a catalog object Things verified/validated 1. |
void |
verifyCatalogObjects()
verfies catalog items in the catalog repository Things verified/validated 1. |
void |
verifyCatalogObjects(java.util.Collection pCatalogIds)
verfies catalog items in the catalog repository Things verified/validated 1. |
void |
verifyCatalogObjects(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
verfies catalog items in the catalog repository Things verified/validated 1. |
void |
verifyCatalogs()
Verify the catalogs, categories, products, and skus repository items for each of the catalogs specified. |
void |
verifyCatalogs(java.util.Collection pCatalogIds)
Verify the catalogs, categories, products, and skus repository items for each of the catalogs specified. |
void |
verifyCatalogs(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Verify the catalogs, categories, products, and skus repository items for each of the catalogs specified. |
boolean |
verifyCatalogsAllRootCategories(RepositoryItem pCatalog,
Repository pCatalogRepository)
method that verifies the catalog's allRootCategories property allRootCategories is all of this catalog's rootCategories plus the "allRootCategories" of each catalog in "rootSubCatalogs". |
boolean |
verifyCatalogsAncestorCategories(RepositoryItem pCatalog,
Repository pCatalogRepository)
Verifies a catalogs ancestorCategories property ancestorCategoriesancestorCategories has already been generated for all categories |
boolean |
verifyCatalogsDirectAncestorCatalogsAndSelf(RepositoryItem pCatalog,
Repository pCatalogRepository)
method that verifies the catalog's directAncestorCatalogsAndSelf property this method assumes that allRootCategories have already been successfully verified directAncestorCatalogsAndSelf reflects all the catalogs who treat this catalog's "allRootCategories" as their root categories. |
boolean |
verifyCatalogsIndirectAncestorCatalogs(RepositoryItem pCatalog,
Repository pCatalogRepository)
method that verifies the catalog's inDirectAncestorCatalogs property this method assumes that catalogs have been successfully generated by the AncestorGeneratorService inDirectAncestorCatalogs are all the ancestor catalogs who do not use "allRootCategories" as their root categories. |
boolean |
verifyCatalogsSubCatalogs(RepositoryItem pCatalog,
Repository pCatalogRepository)
verifies/validates a catalogs subCatalogs property |
void |
verifyCategories()
Verify each of the category objects in all catalogs in each catalog repository listed in catalogRepositories |
void |
verifyCategories(boolean pVerifyCatalogOnly)
Verify each of the category objects in all catalogs in each catalog repository listed in catalogRepositories |
void |
verifyCategories(boolean pVerifyCatalogOnly,
java.util.Collection pCatalogIds)
Verify each of the category objects the given catalogs in each catalog repository listed in catalogRepositories |
void |
verifyCategories(boolean pVerifyCatalogOnly,
Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Verify each of the category objects in the given catalogs in the given catalog repository |
void |
verifyCategory(boolean pVerifyCatalogOnly,
RepositoryItem pCategory,
RepositoryItem pCatalog,
Repository pCatalogRepository)
Verify the category. |
void |
verifyCategory(RepositoryItem pCategory,
RepositoryItem pCatalog,
Repository pCatalogRepository)
Verify that category.catalog is pCatalog |
void |
verifyCategoryCatalogs()
Verify each of the category objects' catalog property |
void |
verifyCategoryInfo(RepositoryItem pCategoryInfo,
RepositoryItem pCategory,
RepositoryItem pCatalog,
Repository pCatalogRepository)
This doesn't actually do anything. |
void |
verifyCategoryInfoObjects()
Deprecated. - see verifyCategoryObjects |
void |
verifyCategoryInfoObjects(java.util.Collection pCatalogIds)
Deprecated. - see verifyCategoryObjects |
void |
verifyCategoryInfoObjects(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Deprecated. - see verifyCategoryObjects |
boolean |
verifyCategoryInOneCatalog(RepositoryItem pCategory,
Repository pCatalogRepository)
Verify a category is only in one catalog To perform this validation the immediate parent categories are checked for different catalogs. |
void |
verifyCategoryObjects()
Verify each of the category objects in all catalogs |
void |
verifyCategoryObjects(boolean pVerifyCatalogOnly,
java.util.Collection pCatalogIds)
Verify each of the category objects in each of the given catalogs |
void |
verifyCategoryObjects(boolean pVerifyCatalogOnly,
Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Verify each of the category objects in each of the given catalogs within the given repository The following things are verified for each category: Verifies the category is only in one catalog. |
void |
verifyCategoryObjects(java.util.Collection pCatalogIds)
Verify each of the category objects in each of the given catalogs |
void |
verifyCategoryObjects(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Verify each of the category objects in each of the given catalogs within the given repository |
boolean |
verifyCategorysParentCategory(RepositoryItem pCategory,
Repository pCatalogRepository)
method that verifies a category's parent category Verifies the following : 1. |
boolean |
verifyCategorysRelatedCategories(RepositoryItem pCategory,
Repository pCatalogRepository)
given a category, check that each fixedRelatedCategories contains the category's catalogs in its own catalogs |
void |
verifyInfoObjects()
Deprecated. - see verifyCategoryObjects, verifyProductObjects, verifySkuObjects |
void |
verifyInfoObjects(java.util.Collection pCatalogIds)
Deprecated. - see verifyCategoryObjects, verifyProductObjects, verifySkuObjects |
void |
verifyInfoObjects(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Deprecated. - see verifyCategoryObjects, verifyProductObjects, verifySkuObjects |
boolean |
verifyInfosForCategory(RepositoryItem pCategory,
Repository pCatalogRepository)
method that checks for valid category info objects an info object is considered invalid if it maps to a catalog that the category is not in. |
boolean |
verifyInfosForProduct(RepositoryItem pProduct,
Repository pCatalogRepository)
method that checks for valid product info objects an info object is considered invalid if it maps to a catalog that the product is not in. |
boolean |
verifyInfosForSku(RepositoryItem pSku,
Repository pCatalogRepository)
method that checks for valid sku info objects an info object is considered invalid if it maps to a catalog that the sku is not in. |
void |
verifyProduct(RepositoryItem pProduct,
Repository pCatalogRepository)
Verify a product object Verifies info objects. |
void |
verifyProductInfo(RepositoryItem pProductInfo,
RepositoryItem pProduct,
RepositoryItem pCatalog,
Repository pCatalogRepository)
This is a placeholder for extending the product info verification logic. |
void |
verifyProductInfoObjects()
Deprecated. - used verifyProductObjects which also verifies product infos |
void |
verifyProductInfoObjects(java.util.Collection pCatalogIds)
Deprecated. - used verifyProductObjects which also verifies product infos |
void |
verifyProductInfoObjects(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Deprecated. - used verifyProductObjects which also verifies product infos |
boolean |
verifyProductInfosRelatedProducts(RepositoryItem pProduct,
Repository pCatalogRepository)
validates the related products for each productinfo by verifying each related product's catalogs property contains the productinfo's catalog if PruneInvalidInfoReferences is set to true, the invalid related products are removed |
void |
verifyProductObjects()
Verify each of the product objects in all catalogs |
void |
verifyProductObjects(java.util.Collection pCatalogIds)
Verify each of the product objects in each of the given catalogs |
void |
verifyProductObjects(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Verify each of the product objects in each of the given catalogs within the given repository Verifies info objects. |
boolean |
verifyProductParentCategories(RepositoryItem pProduct,
Repository pCatalogRepository)
method that checks for valid parent category mappings and parent categories mappings are invalid if they map to a catalog not contained in the products ancestor catalogs a parent category is considered invalid if it does not contain the product as a child or does not contain the catalog in it's ancestor catalogs("catalogs" property) |
boolean |
verifyProductRelatedProducts(RepositoryItem pProduct,
Repository pCatalogRepository)
given a product, check that each fixedRelatedProduct contains the product's catalogs in its own catalogs |
void |
verifyProducts()
Verify each of the product objects in all catalogs in each catalog repository listed in catalogRepositories |
void |
verifyProducts(java.util.Collection pCatalogIds)
Verify each of the product objects the given catalogs in each catalog repository listed in catalogRepositories |
void |
verifyProducts(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Verify each of the product objects in the given catalogs in the given catalog repository |
void |
verifySku(RepositoryItem pSku,
Repository pCatalogRepository)
Verify a sku object. |
void |
verifySkuInfo(RepositoryItem pSkuInfo,
RepositoryItem pSku,
RepositoryItem pCatalog,
Repository pCatalogRepository)
this method is called as part of the verify sku processing when info objects are verified. |
void |
verifySkuInfoObjects()
Deprecated. - use verifySkuObjects which includes sku info verification |
void |
verifySkuInfoObjects(java.util.Collection pCatalogIds)
Deprecated. - use verifySkuObjects which includes sku info verification |
void |
verifySkuInfoObjects(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Deprecated. - use verifySkuObjects which includes sku info verification |
boolean |
verifySkuInfosReplacementProducts(RepositoryItem pSku,
Repository pCatalogRepository)
validates the replacement products for each skuinfo by verifying each replacement product's catalogs contains the skuinfo's catalog if PruneInvalidInfoReferences is set to true, the invalid replacement products are removed |
void |
verifySkuObjects()
Verify each of the sku objects in all catalogs Verifies the info objects. |
void |
verifySkuObjects(java.util.Collection pCatalogIds)
Verify each of the sku objects in each of the given catalogs Verifies the info objects. |
void |
verifySkuObjects(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Verify each of the sku objects in each of the given catalogs within the given repository Verifies the info objects. |
boolean |
verifySkuReplacementProducts(RepositoryItem pSku,
Repository pCatalogRepository)
given a sku, check that each fixReplacementProduct's catalogs contains the sku's catalogs |
void |
verifySkus()
Verify each of the sku objects in all catalogs in each catalog repository listed in catalogRepositories |
void |
verifySkus(java.util.Collection pCatalogIds)
Verify each of the sku objects the given catalogs in each catalog repository listed in catalogRepositories |
void |
verifySkus(Repository pCatalogRepository,
java.util.Collection pCatalogIds)
Verify each of the sku objects in the given catalogs in the given catalog repository |
Methods inherited from class atg.commerce.catalog.CMSService |
---|
addErrorMessage, addInfoMessage, addWarningMessage, clearBookkeepingForThread, clearMessages, createCMSMessage, doScheduledTask, doService, getAvailableFunctions, getBookkeepingForThread, getCurrentMessages, getErrorMessages, getFunctionsToPerformByDefault, getInfoMessages, getServiceLock, getTotalNumberOfErrorMessages, getTotalNumberOfInfoMessages, getTotalNumberOfMessages, getTotalNumberOfWarningMessages, getTransactionManager, getWarningMessages, hasFunction, isSaveMessages, logDebug, logError, logInfo, logWarning, performService, postService, preService, removeServiceLock, setAvailableFunctions, setFunctionsToPerformByDefault, setSaveMessages, setTransactionManager |
Methods inherited from class atg.service.scheduler.SingletonSchedulableService |
---|
acquireLock, getClientLockManager, getLockName, getLockTimeOut, performScheduledTask, releaseLock, setClientLockManager, setLockName, setLockTimeOut |
Methods inherited from class atg.service.scheduler.SchedulableService |
---|
doStartService, doStopService, getJobDescription, getJobName, getSchedule, getScheduler, getThreadMethod, isTransactional, setJobDescription, setJobName, setSchedule, setScheduler, setThreadMethod, setTransactional, startScheduledJob, stopScheduledJob |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public CatalogVerificationService()
Method Detail |
---|
public void setCatalogRepositories(java.lang.String[] pCatalogRepositories)
public java.lang.String[] getCatalogRepositories()
public java.lang.String getServiceName()
getServiceName
in class atg.commerce.catalog.CMSService
public void setComputeSubCatalogs(boolean pComputeSubCatalogs)
public boolean isComputeSubCatalogs()
public void setCatalogProperties(CatalogProperties pCatalogProperties)
public CatalogProperties getCatalogProperties()
public void setCatalogTools(CustomCatalogTools pCatalogTools)
public CustomCatalogTools getCatalogTools()
public void setMaxItemsPerTransaction(int pMaxItemsPerTransaction)
public int getMaxItemsPerTransaction()
public void setPruneInvalidInfoReferences(boolean pPruneInvalidInfoReferences)
public boolean isPruneInvalidInfoReferences()
public void setVerifyCategoryInfos(boolean pVerifyCategoryInfos)
public boolean isVerifyCategoryInfos()
public void setWarnOnInvalidRelatedItems(boolean pWarnOnInvalidRelatedItems)
public boolean isWarnOnInvalidRelatedItems()
public void verifyCatalogs()
verifyCatalogObjects()
,
verifyCategoryObjects()
,
verifyProductObjects()
,
verifySkuObjects()
public void verifyCatalogs(java.util.Collection pCatalogIds)
verifyCatalogObjects()
,
verifyCategoryObjects()
,
verifyProductObjects()
,
verifySkuObjects()
public void verifyCatalogs(Repository pCatalogRepository, java.util.Collection pCatalogIds)
verifyCatalogObjects()
,
verifyCategoryObjects()
,
verifyProductObjects()
,
verifySkuObjects()
public void verifyCategories()
public void verifyCategoryCatalogs()
public void verifyCategories(boolean pVerifyCatalogOnly)
pVerifyCatalogOnly
- If this is true, then only the "catalogs" property is verifiedpublic void verifyCategories(boolean pVerifyCatalogOnly, java.util.Collection pCatalogIds)
pVerifyCatalogOnly
- If this is true, then only the "catalogs" property is verifiedpCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyCategories(boolean pVerifyCatalogOnly, Repository pCatalogRepository, java.util.Collection pCatalogIds)
pVerifyCatalogOnly
- If this is true, then only the "catalogs" property is verifiedpCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyProducts()
public void verifyProducts(java.util.Collection pCatalogIds)
pCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyProducts(Repository pCatalogRepository, java.util.Collection pCatalogIds)
pCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifySkus()
public void verifySkus(java.util.Collection pCatalogIds)
pCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifySkus(Repository pCatalogRepository, java.util.Collection pCatalogIds)
pCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyInfoObjects()
public void verifyInfoObjects(java.util.Collection pCatalogIds)
pCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyInfoObjects(Repository pCatalogRepository, java.util.Collection pCatalogIds)
pCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyCategoryObjects()
public void verifyCategoryObjects(java.util.Collection pCatalogIds)
pCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyCategoryObjects(boolean pVerifyCatalogOnly, java.util.Collection pCatalogIds)
pVerifyCatalogOnly
- If this is true, then only the "catalogs" property is verifiedpCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyCategoryObjects(Repository pCatalogRepository, java.util.Collection pCatalogIds)
pCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyCategoryObjects(boolean pVerifyCatalogOnly, Repository pCatalogRepository, java.util.Collection pCatalogIds)
pCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyCatalogObjects()
public void verifyCatalogObjects(java.util.Collection pCatalogIds)
pCatalogIds
- - all collection of catalog item repository ids to verifypublic void verifyCatalogObjects(Repository pCatalogRepository, java.util.Collection pCatalogIds)
pCatalogRepository
- - catalog repository where catalog items residepCatalogIds
- - all collection of catalog item repository ids to verifypublic void verifyProductObjects()
public void verifyProductObjects(java.util.Collection pCatalogIds)
pCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyProductObjects(Repository pCatalogRepository, java.util.Collection pCatalogIds)
pCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifySkuObjects()
public void verifySkuObjects(java.util.Collection pCatalogIds)
pCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifySkuObjects(Repository pCatalogRepository, java.util.Collection pCatalogIds)
pCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyCategoryInfoObjects()
public void verifyCategoryInfoObjects(java.util.Collection pCatalogIds)
pCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyCategoryInfoObjects(Repository pCatalogRepository, java.util.Collection pCatalogIds)
pCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyProductInfoObjects()
public void verifyProductInfoObjects(java.util.Collection pCatalogIds)
pCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyProductInfoObjects(Repository pCatalogRepository, java.util.Collection pCatalogIds)
pCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifySkuInfoObjects()
public void verifySkuInfoObjects(java.util.Collection pCatalogIds)
pCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifySkuInfoObjects(Repository pCatalogRepository, java.util.Collection pCatalogIds)
pCatalogRepository
- The repository to updatepCatalogIds
- a collection of catalog ids. The type of each id is String
If this param is null, all catalogs are assumedpublic void verifyCategory(RepositoryItem pCategory, RepositoryItem pCatalog, Repository pCatalogRepository) throws RepositoryException
pCategory
- The category being verifiedpCatalog
- The catalog that maps to pCategorypCatalogRepository
- The category containing pCategory
RepositoryException
public void verifyCategory(boolean pVerifyCatalogOnly, RepositoryItem pCategory, RepositoryItem pCatalog, Repository pCatalogRepository) throws RepositoryException
pVerifyCatalogOnly
- If this is true, then only the "catalogs" property is verified.
No longer used. Ancestor Generator Service generates this property
and it is not verified in this service.pCategory
- The category being verifiedpCatalog
- The catalog that maps to pCategory. No longer used. A category's catalog
is generated by the AncestorGeneratorService and we assume that service
has been run before the verify. Therefore, verifying it's value is
redundant.pCatalogRepository
- The category containing pCategory
RepositoryException
public void verifyProduct(RepositoryItem pProduct, Repository pCatalogRepository) throws RepositoryException
pProduct
- a product repository item to be verified.pCatalogRepository
- The repository to update
RepositoryException
public void verifyCatalog(RepositoryItem pCatalog, Repository pCatalogRepository) throws RepositoryException
pCatalog
- A catalog repository item.pCatalogRepository
- The repository to update
RepositoryException
public boolean verifyCatalogsAncestorCategories(RepositoryItem pCatalog, Repository pCatalogRepository) throws RepositoryException
pCatalog
- A catalog repository item.pCatalogRepository
- The repository to update
RepositoryException
public void verifySku(RepositoryItem pSku, Repository pCatalogRepository) throws RepositoryException
pSku
- The sku being verifiedpCatalogRepository
- The catalog that maps to pProduct
RepositoryException
public void verifyCategoryInfo(RepositoryItem pCategoryInfo, RepositoryItem pCategory, RepositoryItem pCatalog, Repository pCatalogRepository) throws RepositoryException
pCategoryInfo
- The info item being verifiedpCategory
- The category containing pCategoryInfopCatalog
- The catalog that maps to pCategoryInfo
RepositoryException
public void verifyProductInfo(RepositoryItem pProductInfo, RepositoryItem pProduct, RepositoryItem pCatalog, Repository pCatalogRepository) throws RepositoryException
pProductInfo
- The info item being verifiedpProduct
- The product containing pProductInfopCatalog
- The catalog that maps to pProductInfo
RepositoryException
public void verifySkuInfo(RepositoryItem pSkuInfo, RepositoryItem pSku, RepositoryItem pCatalog, Repository pCatalogRepository) throws RepositoryException
pSkuInfo
- The info item being verifiedpSku
- The sku containing pSkuInfopCatalog
- The catalog that maps to pSkuInfopCatalogRepository
- The catalog repository that contains the sku info
RepositoryException
protected void resetCategorysCatalog(RepositoryItem pCategory, RepositoryItem pCatalog) throws RepositoryException
pCategory.catalog
refers to a catalog
that is not pCatalog. (ie. it is contained in a catalog different
than what it thinks it is contained in.)
pCategory
- The category with an invalid catalogpCatalog
- The catalog that actually contains to pCategory
RepositoryException
protected void resetProductsParent(RepositoryItem pProductInfo, RepositoryItem pProduct, RepositoryItem pCatalog) throws RepositoryException
pPorductInfo.parentCategory
refers to a category
that is not in pCatalog.
pCategoryInfo
- The categoryInfo with an invalid parentpCategory
- The category containing pCategoryInfopCatalog
- The catalog that maps to pCategoryInfo, and that does not
contain the parent.
RepositoryException
public boolean verifySkuReplacementProducts(RepositoryItem pSku, Repository pCatalogRepository) throws RepositoryException
pSku
- - the sku to be verifiedpCatalogRepository
- - the catalog's repository
RepositoryException
public boolean verifyProductRelatedProducts(RepositoryItem pProduct, Repository pCatalogRepository) throws RepositoryException
pProduct
- - the product to be verifiedpCatalogRepository
- - the catalog's repository
RepositoryException
public boolean verifyCategorysRelatedCategories(RepositoryItem pCategory, Repository pCatalogRepository) throws RepositoryException
pCategory
- - the category to be verifiedpCatalogRepository
- - the catalog's repository
RepositoryException
public boolean verifyInfosForSku(RepositoryItem pSku, Repository pCatalogRepository) throws RepositoryException
pSku
- - the sku to be verifiedpCatalogRepository
- - the catalog's repository
RepositoryException
public boolean verifySkuInfosReplacementProducts(RepositoryItem pSku, Repository pCatalogRepository) throws TransactionDemarcationException
pSku
- - the sku to be verifiedpCatalogRepository
- - the catalog's repository
TransactionDemarcationException
public boolean verifyInfosForProduct(RepositoryItem pProduct, Repository pCatalogRepository) throws RepositoryException
pProduct
- - the product to be verifiedpCatalogRepository
- - the catalog's repository
RepositoryException
public boolean verifyInfosForCategory(RepositoryItem pCategory, Repository pCatalogRepository) throws RepositoryException
pCategory
- - the category to be verifiedpCatalogRepository
- - the catalog's repository
RepositoryException
public boolean verifyProductParentCategories(RepositoryItem pProduct, Repository pCatalogRepository) throws RepositoryException
pProduct
- - the product to be verifiedpCatalogRepository
- - the catalog's repository
RepositoryException
public boolean verifyCategorysParentCategory(RepositoryItem pCategory, Repository pCatalogRepository) throws RepositoryException
pCategory
- - the category to be verifiedpCatalogRepository
- - the catalog's repository
RepositoryException
public boolean verifyCategoryInOneCatalog(RepositoryItem pCategory, Repository pCatalogRepository) throws RepositoryException
pCategory
- - the category to be verifiedpCatalogRepository
- - the catalog's repository
RepositoryException
public boolean verifyProductInfosRelatedProducts(RepositoryItem pProduct, Repository pCatalogRepository) throws TransactionDemarcationException
pProduct
- - the product to be verifiedpCatalogRepository
- - the catalog's repository
TransactionDemarcationException
public boolean performService(Repository pRepository, java.util.Collection pCatalogIds, java.util.List pServiceFunctions)
performService
in class atg.commerce.catalog.CMSService
pRepository
- - Catalog repository to operate againstpCatalogIds
- - a collection of catalogs to processpServiceFunctions
- - a list of strings that identify service functions. used to
conditionally executed specific functions of a service
verifyCatalogObjects()
,
verifyCategoryObjects()
,
verifyProductObjects()
,
verifySkuObjects()
,
CMSConstants
protected java.lang.String stringIt(java.util.Collection pObject)
stringIt
in class atg.commerce.catalog.CMSService
protected java.lang.String stringIt(java.lang.Object[] pObject)
stringIt
in class atg.commerce.catalog.CMSService
public boolean verifyCatalogsIndirectAncestorCatalogs(RepositoryItem pCatalog, Repository pCatalogRepository) throws RepositoryException
RepositoryException
public boolean verifyCatalogsDirectAncestorCatalogsAndSelf(RepositoryItem pCatalog, Repository pCatalogRepository) throws RepositoryException
RepositoryException
public boolean verifyCatalogsSubCatalogs(RepositoryItem pCatalog, Repository pCatalogRepository) throws RepositoryException
pCatalog
- - the catalog to verifypCatalogRepository
- - the catalog's repository
RepositoryException
public boolean verifyCatalogsAllRootCategories(RepositoryItem pCatalog, Repository pCatalogRepository)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |