public class CatalogNavigationService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
protected java.util.List<java.lang.String> |
mAncestorCategoryIds
The ancestors of the category that shopper is currently viewing.
|
protected java.util.List<java.lang.String> |
mCategoryNavigationPath
The full category path from and including the current category to the top level category.
|
protected java.lang.String |
mCurrentCategoryId
The current category that shopper is currently viewing.
|
protected java.lang.String |
mTopLevelCategoryId
The top level category for the category that shopper is currently viewing.
|
Constructor and Description |
---|
CatalogNavigationService() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the current navigation settings.
|
java.util.List<java.lang.String> |
getAncestorCategories()
Returns the ancestors of the category that user is currently viewing.
|
StoreCatalogTools |
getCatalogTools() |
java.util.List<java.lang.String> |
getCategoryNavigationPath()
Returns full category path from and including the current category to the top level category.
|
java.lang.String |
getCurrentCategory()
Returns the current category that user is currently viewing.
|
java.lang.String |
getTopLevelCategory()
Returns the top level category for the category that user is currently viewing.
|
atg.service.collections.validator.CollectionObjectValidator[] |
getValidators() |
boolean |
isCurrentCategoryValid() |
void |
navigate(java.lang.String pCategoryId,
java.util.List<java.lang.String> pAncestorCategoryIds)
Tracks the shopper's catalog navigation setting the current category being viewed, the ancestor categories
of the current category, the full category path from the top level category to the current category, and the
top level category.
|
void |
setAncestorCategories(java.util.List<java.lang.String> pAncestorCategoryIds)
Sets ancestors of the category that user is currently viewing.
|
void |
setCatalogTools(StoreCatalogTools pCatalogTools) |
void |
setCategoryNavigationPath(java.util.List<java.lang.String> pCategoryNavigationPath)
Sets the full category path from and including the current category to the top level category.
|
void |
setCurrentCategory(java.lang.String pCurrentCategoryId)
Sets the current category that shopper is currently viewing.
|
void |
setCurrentCategoryValid(boolean pCurrentCategoryValid) |
void |
setTopLevelCategory(java.lang.String pTopLevelCategoryId)
Sets the top level category for the category that user is currently viewing.
|
void |
setValidators(atg.service.collections.validator.CollectionObjectValidator[] pValidators) |
public static final java.lang.String CLASS_VERSION
protected java.lang.String mTopLevelCategoryId
protected java.lang.String mCurrentCategoryId
protected java.util.List<java.lang.String> mAncestorCategoryIds
protected java.util.List<java.lang.String> mCategoryNavigationPath
public void setTopLevelCategory(java.lang.String pTopLevelCategoryId)
pTopLevelCategory
- the top level category for the category that user is currently viewing.public java.lang.String getTopLevelCategory()
public void setCurrentCategory(java.lang.String pCurrentCategoryId)
pCurrentCategoryId
- the current category that shopper is currently viewing.public java.lang.String getCurrentCategory()
public void setAncestorCategories(java.util.List<java.lang.String> pAncestorCategoryIds)
pAncestorCategoryIds
- the ancestors of the category that user is currently viewing.public java.util.List<java.lang.String> getAncestorCategories()
public void setCategoryNavigationPath(java.util.List<java.lang.String> pCategoryNavigationPath)
pCategoryNavigationPath
- the full category path from and including the current category to the top level category.public java.util.List<java.lang.String> getCategoryNavigationPath()
public boolean isCurrentCategoryValid()
public void setCurrentCategoryValid(boolean pCurrentCategoryValid)
puCrrentCategoryValid
- the currentCategoryValid to setpublic StoreCatalogTools getCatalogTools()
public void setCatalogTools(StoreCatalogTools pCatalogTools)
pCatalogTools
- - The CatalogTools component.public atg.service.collections.validator.CollectionObjectValidator[] getValidators()
public void setValidators(atg.service.collections.validator.CollectionObjectValidator[] pValidators)
pValidators
- the validators to setpublic void navigate(java.lang.String pCategoryId, java.util.List<java.lang.String> pAncestorCategoryIds)
pCategoryId
- the current category.pAncestorCategoryIds
- the ancestors of the current category that user is currently viewing.public void clear()