public class CustomRefinementConfigurationCollector extends CommerceRefinementConfigurationCollector
RefinementConfigurationCollector.CollectorHelperBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected Repository |
mCatalogRepository
Gets the catalog repository.
|
protected java.util.Map<RepositoryItem,java.util.Set<java.lang.String>> |
mCategoryCatalogFacetsMap
Map of category RepositoryItem to set of associated refine elements, specifically
those refine elements that have been inherited by the category from parent/ancestor
catalogs.
|
protected java.util.Map<RepositoryItem,java.util.Set<RefinementConfigurationContainer>> |
mCategoryRefineConfigContainerMap
Map of category RepositoryItem to set of associated RefinementConfigurationContainers.
|
REPOSITORY_NOT_MUTABLE_MSG
mConfigurationToElements, mElementSourceMap, mElementsToConfigurations, mExistingNameMap, mHasRepositoryUpdatePermissions, mRefinementGenerationDeploymentHelper, mRefinementRepository
Constructor and Description |
---|
CustomRefinementConfigurationCollector() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAdditionalElements(RepositoryItem pCategory,
RefinementConfigurationContainer pRefinementConfigurationContainer,
java.util.Set pElements,
RefinementConfigurationCollector.CollectorHelperBean pColHelper) |
void |
clearCategoryCatalogFacetsMap()
Clears the Map which stores the inherited catalog
facets for each root catalog->category association.
|
protected MutableRepositoryItem |
createCategoryInfoItem(RepositoryItem pParentItem,
MutableRepository pRepository) |
protected java.util.Set |
getAllRootCategoriesForCatalog(RepositoryItem pCatalog,
java.util.Set pVisited,
java.util.Set pSeedCategories)
Gets the root categories for the catalog, and all of its subcatalogs.
|
java.lang.String |
getCatalogChildCatalogsPropertyName()
Gets the property name of a catalog that designates its child catalogs.
|
java.lang.String |
getCatalogRefineConfigPropertyName()
Gets the catalog property name that contains the refinement configuration item.
|
Repository |
getCatalogRepository()
Gets the catalog repository
|
java.lang.String |
getCatalogRootCategoriesPropertyName()
Gets the name of the root categories property of the catalog item.
|
java.lang.String |
getCategoryChildCatalogsPropertyName()
Gets the property name of a category that designated its child catalogs.
|
java.lang.String |
getCategoryInfoCatalogPropertyName()
Gets the name of the category-info catalog property.
|
java.lang.String |
getCategoryInfoCategoryItemPropertyName()
Gets the name of the category-info category item property.
|
java.lang.String |
getCategoryInfoItemDescriptorName()
Gets the name of the category info item descriptor.
|
java.lang.String |
getCategoryInfoRefineConfigPropertyName()
Gets the name of the category-info refine config property.
|
RepositoryItem |
getCurrentRootCatalog()
get CurrentRootCatalog
|
CustomCatalogTools |
getCustomCatalogTools()
Gets the custom catalog tools component.
|
CustomRefinementConfigurationPropertyManager |
getCustomRefinementConfigurationPropertyManager() |
protected RefinementConfigurationContainer |
getRefineConfigContainerForCategory(RepositoryItem pCategory,
RepositoryItem pParentRefineConfig,
java.util.Set pPath)
Use the "current category" field to look up, via the catalog info items,
the proper refinement configuration.
|
protected RefinementConfigurationContainer |
getRefineConfigForCatalog(RepositoryItem pCatalog,
RepositoryItem pParentRefineConfig,
java.util.Set pPath)
Gets the refinement configuration container for the give catalog item.
|
protected void |
processCatalog(RepositoryItem pCatalog,
java.util.Set pPath,
RepositoryItem pParentRefineConfig)
Process a catalog item, recursing into subcatalogs and root categories as necessary.
|
protected void |
processCatalog(RepositoryItem pCatalog,
java.util.Set pParentCategoryElementIds,
java.util.Set pPath,
RepositoryItem pParentRefineConfig,
RefinementConfigurationCollector.CollectorHelperBean pCollectorHelperBean)
Process a catalog item, recursing into subcatalogs and root categories as necessary.
|
protected void |
processCategoryChildren(RepositoryItem pCategory,
java.util.Set pParentAndLocalREs,
java.util.Set pPath,
RefinementConfigurationCollector.CollectorHelperBean pCollectorHelperBean)
Process child categories, then child catalogs.
|
void |
setCatalogChildCatalogsPropertyName(java.lang.String pCatalogChildCatalogsPropertyName)
Sets the property name of a catalog that designates its child catalogs.
|
void |
setCatalogRefineConfigPropertyName(java.lang.String pCatalogRefineConfigPropertyName)
Sets the catalog property name that contains the refinement configuration item.
|
void |
setCatalogRepository(Repository pCatalogRepository) |
void |
setCatalogRootCategoriesPropertyName(java.lang.String pCatalogRootCategoriesPropertyName)
Sets the name of the root categories property of the catalog item.
|
void |
setCategoryChildCatalogsPropertyName(java.lang.String pCategoryChildCatalogsPropertyName)
Sets the property name of a category that designated its child catalogs.
|
void |
setCategoryInfoCatalogPropertyName(java.lang.String pCategoryInfoCatalogPropertyName)
Sets the name of the category-info catalog property.
|
void |
setCategoryInfoCategoryItemPropertyName(java.lang.String pCategoryInfoCategoryItemPropertyName)
Sets the name of the category-info category item property.
|
void |
setCategoryInfoItemDescriptorName(java.lang.String pCategoryInfoItemDescriptorName)
Sets the name of the category info item descriptor.
|
void |
setCategoryInfoRefineConfigPropertyName(java.lang.String pCategoryInfoRefineConfigPropertyName)
Sets the name of the category-info refine config property.
|
void |
setCurrentRootCatalog(RepositoryItem pCurrentRootCatalog)
set CurrentRootCatalog
|
void |
setCustomCatalogTools(CustomCatalogTools pCustomCatalogTools)
Sets the custom catalog tools component.
|
protected void |
updateInheritFlags(RefinementConfigurationContainer pContainer,
RepositoryItem pRefineConfig,
RepositoryItem pParentRefineConfig)
Handles updates to the inheritance flags.
|
canInheritParentFacetInheritanceFlags, createOrUpdateCategoryRefineConfig, createRefineConfigRepositoryItem, hasLocalRefineElements, processCategory, processCategory, resolveInheritValues
addToElementSources, addToMap, getCategoryChildCategoriesPropertyName, getCategoryRefineConfigPropertyName, getCommerceRefinementConfigurationPropertyManager, getConfigurationsForElements, getConfigurationsToElements, getElementsForConfiguration, getElementSourceMap, getElementsToConfigurations, getExistingNameMap, getGlobalMappingValue, getGlobalRefinementConfiguration, getGlobalRefinementConfigurationQuery, getGlobalRefinementElements, getLog, getPropagateFacetInheritanceFlagsValues, getRefinementElementForItem, getRefinementElementPropertyManager, getRefinementGenerationDeploymentHelper, getRefinementRepository, isHasRepositoryUpdatePermissions, itemsToIds, mergeRefinements, processGlobal, resetMaps, setCategoryChildCategoriesPropertyName, setCategoryRefineConfigPropertyName, setCommerceRefinementConfigurationPropertyManager, setGlobalMappingValue, setHasRepositoryUpdatePermissions, setLog, setPropagateFacetInheritanceFlagsValues, setRefinementElementPropertyManager, setRefinementGenerationDeploymentHelper, setRefinementRepository
public static java.lang.String CLASS_VERSION
protected Repository mCatalogRepository
protected java.util.Map<RepositoryItem,java.util.Set<java.lang.String>> mCategoryCatalogFacetsMap
protected java.util.Map<RepositoryItem,java.util.Set<RefinementConfigurationContainer>> mCategoryRefineConfigContainerMap
public CustomRefinementConfigurationCollector()
public java.lang.String getCatalogRefineConfigPropertyName()
public void setCatalogRefineConfigPropertyName(java.lang.String pCatalogRefineConfigPropertyName)
public java.lang.String getCatalogChildCatalogsPropertyName()
public void setCatalogChildCatalogsPropertyName(java.lang.String pCatalogChildCatalogsPropertyName)
public java.lang.String getCategoryChildCatalogsPropertyName()
public void setCategoryChildCatalogsPropertyName(java.lang.String pCategoryChildCatalogsPropertyName)
public CustomCatalogTools getCustomCatalogTools()
public void setCustomCatalogTools(CustomCatalogTools pCustomCatalogTools)
public Repository getCatalogRepository()
public void setCatalogRepository(Repository pCatalogRepository)
public java.lang.String getCatalogRootCategoriesPropertyName()
public void setCatalogRootCategoriesPropertyName(java.lang.String pCatalogRootCategoriesPropertyName)
public java.lang.String getCategoryInfoItemDescriptorName()
public void setCategoryInfoItemDescriptorName(java.lang.String pCategoryInfoItemDescriptorName)
public java.lang.String getCategoryInfoCatalogPropertyName()
public void setCategoryInfoCatalogPropertyName(java.lang.String pCategoryInfoCatalogPropertyName)
public java.lang.String getCategoryInfoCategoryItemPropertyName()
public void setCategoryInfoCategoryItemPropertyName(java.lang.String pCategoryInfoCategoryItemPropertyName)
public java.lang.String getCategoryInfoRefineConfigPropertyName()
public void setCategoryInfoRefineConfigPropertyName(java.lang.String pCategoryInfoRefineConfigPropertyName)
public CustomRefinementConfigurationPropertyManager getCustomRefinementConfigurationPropertyManager()
public void setCurrentRootCatalog(RepositoryItem pCurrentRootCatalog)
pCurrentRootCatalog
- the CurrentRootCatalogpublic RepositoryItem getCurrentRootCatalog()
protected RefinementConfigurationContainer getRefineConfigForCatalog(RepositoryItem pCatalog, RepositoryItem pParentRefineConfig, java.util.Set pPath) throws RepositoryException
RepositoryException
protected void processCatalog(RepositoryItem pCatalog, java.util.Set pPath, RepositoryItem pParentRefineConfig) throws RepositoryException
RepositoryException
protected void processCatalog(RepositoryItem pCatalog, java.util.Set pParentCategoryElementIds, java.util.Set pPath, RepositoryItem pParentRefineConfig, RefinementConfigurationCollector.CollectorHelperBean pCollectorHelperBean) throws RepositoryException
RepositoryException
protected RefinementConfigurationContainer getRefineConfigContainerForCategory(RepositoryItem pCategory, RepositoryItem pParentRefineConfig, java.util.Set pPath) throws RepositoryException
getRefineConfigContainerForCategory
in class CommerceRefinementConfigurationCollector
RepositoryException
protected java.util.Set getAllRootCategoriesForCatalog(RepositoryItem pCatalog, java.util.Set pVisited, java.util.Set pSeedCategories) throws RepositoryException
RepositoryException
protected void processCategoryChildren(RepositoryItem pCategory, java.util.Set pParentAndLocalREs, java.util.Set pPath, RefinementConfigurationCollector.CollectorHelperBean pCollectorHelperBean) throws RepositoryException
processCategoryChildren
in class CommerceRefinementConfigurationCollector
RepositoryException
protected void addAdditionalElements(RepositoryItem pCategory, RefinementConfigurationContainer pRefinementConfigurationContainer, java.util.Set pElements, RefinementConfigurationCollector.CollectorHelperBean pColHelper) throws RepositoryException
addAdditionalElements
in class CommerceRefinementConfigurationCollector
RepositoryException
protected void updateInheritFlags(RefinementConfigurationContainer pContainer, RepositoryItem pRefineConfig, RepositoryItem pParentRefineConfig) throws RepositoryException
updateInheritFlags
in class CommerceRefinementConfigurationCollector
pContainer
- The refine config container.pRefineConfig
- The refine config to be updatedpParentRefineConfig
- The parent refine config to retrieve inheritance values from.RepositoryException
public void clearCategoryCatalogFacetsMap()
protected MutableRepositoryItem createCategoryInfoItem(RepositoryItem pParentItem, MutableRepository pRepository) throws RepositoryException
pParentItem
- pRepository
- RepositoryException