| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.search.refinement.admin.RefinementConfigurationCollector
atg.commerce.search.refinement.admin.CommerceRefinementConfigurationCollector
public class CommerceRefinementConfigurationCollector
This class is responsible for walking the catalog structure, and creating a set of CommerceRefinementConfiguration objects to be converted to XML.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class atg.commerce.search.refinement.admin.RefinementConfigurationCollector | 
|---|
| RefinementConfigurationCollector.CollectorHelperBean | 
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| static java.lang.String | REPOSITORY_NOT_MUTABLE_MSG | 
| Fields inherited from class atg.commerce.search.refinement.admin.RefinementConfigurationCollector | 
|---|
| mConfigurationToElements, mElementSourceMap, mElementsToConfigurations, mExistingNameMap, mHasRepositoryUpdatePermissions, mRefinementGenerationDeploymentHelper, mRefinementRepository | 
| Constructor Summary | |
|---|---|
| CommerceRefinementConfigurationCollector() | |
| Method Summary | |
|---|---|
| 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. | 
| 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
public static final java.lang.String REPOSITORY_NOT_MUTABLE_MSG
| Constructor Detail | 
|---|
public CommerceRefinementConfigurationCollector()
| Method Detail | 
|---|
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.
RepositoryException
public 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.
RepositoryException
protected void processCategoryChildren(RepositoryItem pCategory,
                                       java.util.Set pParentAndLocalREs,
                                       java.util.Set pPath,
                                       RefinementConfigurationCollector.CollectorHelperBean pCollectorHelperBean)
                                throws RepositoryException
RepositoryException
protected RefinementConfigurationContainer getRefineConfigContainerForCategory(RepositoryItem pCategory,
                                                                               RepositoryItem pParentRefineConfig,
                                                                               java.util.Set pPath)
                                                                        throws RepositoryException
pCategory - pParentRefineConfig - pPath - 
RepositoryException
protected void createOrUpdateCategoryRefineConfig(RepositoryItem pCategory,
                                                  RepositoryItem pParentRefineConfig,
                                                  RefinementConfigurationContainer rcc)
                                           throws RepositoryException
pCategory - pParentRefineConfig - rcc - 
RepositoryException
protected MutableRepositoryItem createRefineConfigRepositoryItem(RepositoryItem pParentItem,
                                                                 java.lang.String pRefineConfigPropertyName,
                                                                 MutableRepository pRepository)
                                                          throws RepositoryException
pParentItem - pRefineConfigPropertyName - pRepository - 
RepositoryException
protected 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 check
true if parent flag values can be inherited, false otherwiseprotected boolean hasLocalRefineElements(RepositoryItem pRefineConfig)
pRefineConfig - The refine config to check
true 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.
RepositoryException
protected java.lang.Boolean resolveInheritValues(RefinementConfigurationContainer pContainer,
                                                 java.lang.Boolean pChildValue,
                                                 java.lang.Boolean pParentValue)
                                          throws RepositoryException
pChildValue - pParentValue - 
RepositoryException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||