public class CommerceRefinementConfigurationCollector extends RefinementConfigurationCollector
RefinementConfigurationCollector.CollectorHelperBean| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
REPOSITORY_NOT_MUTABLE_MSG |
mConfigurationToElements, mElementSourceMap, mElementsToConfigurations, mExistingNameMap, mHasRepositoryUpdatePermissions, mRefinementGenerationDeploymentHelper, mRefinementRepository| Constructor and Description |
|---|
CommerceRefinementConfigurationCollector() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAdditionalElements(RepositoryItem pCategory,
RefinementConfigurationContainer pRefinementConfigurationContainer,
java.util.Set pElements,
RefinementConfigurationCollector.CollectorHelperBean pColHelper) |
protected boolean |
canInheritParentFacetInheritanceFlags(RepositoryItem pRefineConfig)
Determine whether this refine-config can inherit the values of its
"parent" refine-config's facet inheritance flags.
|
protected void |
createOrUpdateCategoryRefineConfig(RepositoryItem pCategory,
RepositoryItem pParentRefineConfig,
RefinementConfigurationContainer rcc) |
protected MutableRepositoryItem |
createRefineConfigRepositoryItem(RepositoryItem pParentItem,
java.lang.String pRefineConfigPropertyName,
MutableRepository pRepository) |
protected RefinementConfigurationContainer |
getRefineConfigContainerForCategory(RepositoryItem pCategory,
RepositoryItem pParentRefineConfig,
java.util.Set pPath) |
protected boolean |
hasLocalRefineElements(RepositoryItem pRefineConfig)
Determines whether the refine config was manually created.
|
void |
processCategory(RepositoryItem pCategory,
java.util.Set pParentCategoryElementIds,
java.util.Set pPath,
RepositoryItem pParentRefineConfig)
Add the category's refinement elements to the configuration maps, and recurse down the
category tree.
|
void |
processCategory(RepositoryItem pCategory,
java.util.Set pParentCategoryElementIds,
java.util.Set pPath,
RepositoryItem pParentRefineConfig,
RefinementConfigurationCollector.CollectorHelperBean pCollectorHelperBean)
Add the category's refinement elements to the configuration maps, and recurse down the
category tree.
|
protected void |
processCategoryChildren(RepositoryItem pCategory,
java.util.Set pParentAndLocalREs,
java.util.Set pPath,
RefinementConfigurationCollector.CollectorHelperBean pCollectorHelperBean)
Deal with the children of a category.
|
protected java.lang.Boolean |
resolveInheritValues(RefinementConfigurationContainer pContainer,
java.lang.Boolean pChildValue,
java.lang.Boolean pParentValue)
Resolves the inheritance value to use.
|
protected void |
updateInheritFlags(RefinementConfigurationContainer pContainer,
RepositoryItem pRefineConfig,
RepositoryItem pParentRefineConfig)
Handles updates to the inheritance flags.
|
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, setRefinementRepositorypublic static java.lang.String CLASS_VERSION
public static final java.lang.String REPOSITORY_NOT_MUTABLE_MSG
public CommerceRefinementConfigurationCollector()
public void processCategory(RepositoryItem pCategory, java.util.Set pParentCategoryElementIds, java.util.Set pPath, RepositoryItem pParentRefineConfig) throws RepositoryException
pCategory - the category repository item to processpParentCategoryElementIds - the collection of refinement element ids to
be inherited by this categorypPath - the set of categories that have already been processed higher in
the recursion hierarchy. This allows category hierarchies with loops
to finish processing.pParentRefineConfig - the parent's refine config.RepositoryExceptionpublic void processCategory(RepositoryItem pCategory, java.util.Set pParentCategoryElementIds, java.util.Set pPath, RepositoryItem pParentRefineConfig, RefinementConfigurationCollector.CollectorHelperBean pCollectorHelperBean) throws RepositoryException
pCategory - the category repository item to processpParentCategoryElementIds - the collection of refinement element ids to
be inherited by this categorypPath - the set of categories that have already been processed higher in
the recursion hierarchy. This allows category hierarchies with loops
to finish processing.pParentRefineConfig - the parent's refine config.RepositoryExceptionprotected void processCategoryChildren(RepositoryItem pCategory, java.util.Set pParentAndLocalREs, java.util.Set pPath, RefinementConfigurationCollector.CollectorHelperBean pCollectorHelperBean) throws RepositoryException
RepositoryExceptionprotected RefinementConfigurationContainer getRefineConfigContainerForCategory(RepositoryItem pCategory, RepositoryItem pParentRefineConfig, java.util.Set pPath) throws RepositoryException
pCategory - pParentRefineConfig - pPath - RepositoryExceptionprotected void createOrUpdateCategoryRefineConfig(RepositoryItem pCategory, RepositoryItem pParentRefineConfig, RefinementConfigurationContainer rcc) throws RepositoryException
pCategory - pParentRefineConfig - rcc - RepositoryExceptionprotected MutableRepositoryItem createRefineConfigRepositoryItem(RepositoryItem pParentItem, java.lang.String pRefineConfigPropertyName, MutableRepository pRepository) throws RepositoryException
pParentItem - pRefineConfigPropertyName - pRepository - RepositoryExceptionprotected void addAdditionalElements(RepositoryItem pCategory, RefinementConfigurationContainer pRefinementConfigurationContainer, java.util.Set pElements, RefinementConfigurationCollector.CollectorHelperBean pColHelper) throws RepositoryException
RepositoryExceptionprotected boolean canInheritParentFacetInheritanceFlags(RepositoryItem pRefineConfig)
pRefineConfig - The refine-config to checktrue if parent flag values can be inherited, false otherwiseprotected boolean hasLocalRefineElements(RepositoryItem pRefineConfig)
pRefineConfig - The refine config to checktrue if manually created, false otherwise.protected void updateInheritFlags(RefinementConfigurationContainer pContainer, RepositoryItem pRefineConfig, RepositoryItem pParentRefineConfig) throws RepositoryException
pContainer - The refine config container.pRefineConfig - The refine config to be updatedpParentRefineConfig - The parent refine config to retrieve inheritance values from.RepositoryExceptionprotected java.lang.Boolean resolveInheritValues(RefinementConfigurationContainer pContainer, java.lang.Boolean pChildValue, java.lang.Boolean pParentValue) throws RepositoryException
pChildValue - pParentValue - RepositoryException