atg.commerce.search.refinement
Class CategoryFacetValue
java.lang.Object
atg.repository.search.refinement.FacetValue
atg.commerce.search.refinement.CategoryFacetValue
- All Implemented Interfaces:
- java.lang.Cloneable
public class CategoryFacetValue
- extends FacetValue
Represents a category-specific refinement element.
For example, a Screen Size facet that is assigned to a TV category.
Extends the RefinementFacet by providing a lazy lookup method to retrieve the
category's repository item.
Users of this class should call the setCatalogTools() and setCategoryId()
or setCategoryItem() methods.
Methods inherited from class atg.repository.search.refinement.FacetValue |
clone, equals, getDebug, getFacet, getMatchingDocsCount, getRefinementValue, getScore, getSeparator, getTrailString, getValue, hashCode, setFacet, setMatchingDocsCount, setRefinementValue, setScore, setSeparator, setValue, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
CLASS_VERSION
public static java.lang.String CLASS_VERSION
- Class version string
mCategoryItem
protected RepositoryItem mCategoryItem
mCategoryId
protected java.lang.String mCategoryId
mFacetManager
protected CommerceFacetManager mFacetManager
CategoryFacetValue
public CategoryFacetValue(Facet pFacet,
java.lang.String pValue,
java.lang.String pSeparator,
CommerceFacetManager pFacetManager)
- Constructor method
- Parameters:
pFacet
- FacetpValue
- String valuepSeparator
- String trail separator
getCategoryItem
public RepositoryItem getCategoryItem()
throws FacetException
- Gets the category's repository item, retrieving this from the product
catalog if we don't already have this.
- Returns:
- RepositoryItem for this category
- Throws:
FacetException
setCategoryItem
public void setCategoryItem(RepositoryItem pCategoryItem)
getCategoryId
public java.lang.String getCategoryId()
setCategoryId
public void setCategoryId(java.lang.String pCategoryId)
getCommerceFacetManager
public CommerceFacetManager getCommerceFacetManager()
setCommerceFacetManager
public void setCommerceFacetManager(CommerceFacetManager pFacetManager)