The following describes key properties of the atg.commerce.endeca.index.dimension.CategoryTreeService class and the default configuration of the /atg/endeca/index/commerce/CategoryTreeService component of this class:

catalogTools

The component of class atg.commerce.catalog.custom.CustomCatalogTools for accessing the catalog repository. By default, this property is set to:

catalogTools=/atg/commerce/catalog/CatalogTools
sitesForCatalogs

To create a representation of the category hierarchy in which each category dimension value has only one parent, the CategoryTreeService class creates data structures in memory that represent all possible paths to each category in the product catalog. In order to do this, it must be provided with a list of the catalogs to use for computing paths.

The sitesForCatalogs property specifies a list of sites. If this property is set, CategoryTreeService uses the catalogs associated with the specified sites for computing paths. By default, sitesForCatalogs is set to:

sitesForCatalogs^=\
/atg/commerce/search/ProductCatalogOutputConfig.sitesToIndex

If sitesForCatalogs is null, CategoryTreeService uses the rootCatalogsRQLString property to determine the catalogs.

rootCatalogsRQLString

An RQL query that returns a list of catalogs. If sitesForCatalogs is null, the catalogs returned from this query are used. The query is set by default to:

rootCatalogsRQLString=\
directParentCatalogs IS NULL AND parentCategories IS NULL

If sitesForCatalogs and rootCatalogsRQLString are both null, CategoryTreeService uses the rootCatalogIds property to determine the catalogs.

rootCatalogIds

An explicit list of catalog IDs of the catalogs to use. This list is used if sitesForCatalogs and rootCatalogsRQLString are both null. By default, rootCatalogIds is set to null.


Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved.

Legal Notices