|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.projects.store.catalog.CatalogNavigationService
public class CatalogNavigationService
Helper bean to store user catalog navigation information providing convenience methods for: the current category that user is currently viewing the ancestor categories from the current category to the top level category the full category path from and including the current category to the top level category the top level category The bean is intended to be used anywhere requiring access to the current shopper catalog navigation such as breadcrumbs, continue shopping, and with targeters to specify targeting rules based on the currently viewed category. The store uses this when targeting promotional content to the shopper.
Field Summary | |
---|---|
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 Summary | |
---|---|
CatalogNavigationService()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public CatalogNavigationService()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |