|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.search.refinement.admin.RefinementConfigurationCollector
public abstract class RefinementConfigurationCollector
Base class for catalog refinement configuration collectors.
Nested Class Summary | |
---|---|
class |
RefinementConfigurationCollector.CollectorHelperBean
|
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected java.util.Map |
mConfigurationToElements
|
protected java.util.Map |
mElementSourceMap
|
protected java.util.Map |
mElementsToConfigurations
|
protected java.util.Map |
mExistingNameMap
|
Constructor Summary | |
---|---|
RefinementConfigurationCollector()
|
Method Summary | |
---|---|
protected void |
addToElementSources(RefinementElement pElement,
RepositoryItemDescriptor pItemDescriptor,
java.lang.String pSourceItemId)
Add the RefinementElement to the element source map. |
void |
addToMap(java.util.Set pRefinementElements,
RefinementConfigurationContainer pRefinementConfigurationContainer)
If the refinement configuration is already associated with a collection of elements, remove the association, and associate it with the collection of elements that includes the new elements. |
java.lang.String |
getCategoryChildCategoriesPropertyName()
Gets the name of the property of the category item descriptor that contains the collection of child categories. |
java.lang.String |
getCategoryRefineConfigPropertyName()
Gets the name of the property of the category item descriptor that contains the refineConfig. |
CommerceRefinementConfigurationPropertyManager |
getCommerceRefinementConfigurationPropertyManager()
Gets the commerce refinement configuration manager. |
java.util.Set |
getConfigurationsForElements(java.util.Collection pElements)
Get the collection of refinement configuration repository item ids whose refinement elements are the given collection of element ids. |
java.util.Map |
getConfigurationsToElements()
Gets the map if configuration id to Set of element ids. |
java.util.Set |
getElementsForConfiguration(RefinementConfigurationContainer pRefinementConfigurationContainer)
Get the collection of element ids for a given configuration id. |
java.util.Map |
getElementSourceMap()
Gets the map of RefinementElements to ElementSource objects. |
java.util.Map |
getElementsToConfigurations()
Gets the Map of List of element ids to Set of configuration containers. |
java.util.Map |
getExistingNameMap()
Gets the map of element ids to the name of an existing refinement cofiguration with those elements. |
java.lang.String |
getGlobalMappingValue()
Gets the mapping value of the global refinement configuration. |
RepositoryItem |
getGlobalRefinementConfiguration()
Get the repository item that is considered "global". |
protected Query |
getGlobalRefinementConfigurationQuery()
Gets the query that can return the global refinement configuration. |
java.util.Collection |
getGlobalRefinementElements()
Get the collection of refinement elements for the global refinement confuguration. |
ApplicationLogging |
getLog()
Gets the application logging component that will be used for logging. |
java.lang.Boolean |
getPropagateFacetInheritanceFlagsValues()
|
protected RefinementElement |
getRefinementElementForItem(RepositoryItem pItem)
Get a refinement element object for the given refinement element repository item. |
RefinementElementPropertyManager |
getRefinementElementPropertyManager()
Gets the refinement element property manager. |
java.util.Collection |
itemsToIds(java.util.Collection pSource)
Return a collection of repository item ids for a given collection of repository items. |
protected void |
mergeRefinements(java.util.Set<RefinementElement> pExistingRefinements,
java.util.Collection pNewRefinements)
Updates a set of RefinementElement's ensuring that the set does not contain multiple RefinementElement's defined using the same "property" value e.g. |
void |
processGlobal()
Add the global element set to the confiugration maps. |
void |
resetMaps()
Reset the elements to configurations map, and the configuration to elements map. |
void |
setCategoryChildCategoriesPropertyName(java.lang.String pCategoryChildCategoriesPropertyName)
Sets the name of the property of the category item descriptor that contains the collection of child categories. |
void |
setCategoryRefineConfigPropertyName(java.lang.String pCategoryRefineConfigPropertyName)
Sets the name of the property of the category item descriptor that contains the refineConfig. |
void |
setCommerceRefinementConfigurationPropertyManager(CommerceRefinementConfigurationPropertyManager pManager)
Sets the commerce refinement configuration manager. |
void |
setGlobalMappingValue(java.lang.String pGlobalMappingValue)
Sets the mapping value of the global refinement configuration. |
void |
setLog(ApplicationLogging pLog)
Sets the application logging component that will be used for logging. |
void |
setPropagateFacetInheritanceFlagsValues(java.lang.Boolean propagateFacetInheritanceFlagsValues)
|
void |
setRefinementElementPropertyManager(RefinementElementPropertyManager pManager)
Sets the refinement element property manager. |
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
protected java.util.Map mElementsToConfigurations
protected java.util.Map mConfigurationToElements
protected java.util.Map mElementSourceMap
protected java.util.Map mExistingNameMap
Constructor Detail |
---|
public RefinementConfigurationCollector()
Method Detail |
---|
public java.util.Map getElementsToConfigurations()
public java.util.Map getConfigurationsToElements()
public java.util.Map getElementSourceMap()
public java.util.Map getExistingNameMap()
public void setCommerceRefinementConfigurationPropertyManager(CommerceRefinementConfigurationPropertyManager pManager)
public CommerceRefinementConfigurationPropertyManager getCommerceRefinementConfigurationPropertyManager()
public void setCategoryRefineConfigPropertyName(java.lang.String pCategoryRefineConfigPropertyName)
public java.lang.String getCategoryRefineConfigPropertyName()
public java.lang.Boolean getPropagateFacetInheritanceFlagsValues()
public void setPropagateFacetInheritanceFlagsValues(java.lang.Boolean propagateFacetInheritanceFlagsValues)
public void setCategoryChildCategoriesPropertyName(java.lang.String pCategoryChildCategoriesPropertyName)
public java.lang.String getCategoryChildCategoriesPropertyName()
public void setLog(ApplicationLogging pLog)
public ApplicationLogging getLog()
public void setGlobalMappingValue(java.lang.String pGlobalMappingValue)
public java.lang.String getGlobalMappingValue()
public void setRefinementElementPropertyManager(RefinementElementPropertyManager pManager)
public RefinementElementPropertyManager getRefinementElementPropertyManager()
protected Query getGlobalRefinementConfigurationQuery() throws RepositoryException
RepositoryException
public RepositoryItem getGlobalRefinementConfiguration() throws RepositoryException
RepositoryException
public java.util.Collection getGlobalRefinementElements() throws RepositoryException
RepositoryException
public void processGlobal() throws RepositoryException
RepositoryException
protected void addToElementSources(RefinementElement pElement, RepositoryItemDescriptor pItemDescriptor, java.lang.String pSourceItemId)
public java.util.Collection itemsToIds(java.util.Collection pSource)
public void addToMap(java.util.Set pRefinementElements, RefinementConfigurationContainer pRefinementConfigurationContainer)
public java.util.Set getConfigurationsForElements(java.util.Collection pElements)
public java.util.Set getElementsForConfiguration(RefinementConfigurationContainer pRefinementConfigurationContainer) throws RepositoryException
RepositoryException
public void resetMaps()
protected RefinementElement getRefinementElementForItem(RepositoryItem pItem) throws RepositoryException
pItem
- - Refinement Repository Item
RepositoryException
protected void mergeRefinements(java.util.Set<RefinementElement> pExistingRefinements, java.util.Collection pNewRefinements)
pExistingRefinements
- - set of RefinementElement's to updatepNewRefinements
- - Collection of new facets. Can contain either
RefinementElement's or RepositoryItem's.
RepositoryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |