|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.projects.store.assembler.cartridge.StoreCartridgeTools
public class StoreCartridgeTools
This is the helper class containing reusable methods for obtaining/modifying a user's navigation information.
Field Summary | |
---|---|
protected static java.lang.String |
CLASS_VERSION
Class version string. |
Constructor Summary | |
---|---|
StoreCartridgeTools()
|
Method Summary | |
---|---|
CatalogNavigationService |
getCatalogNavigation()
|
java.lang.String |
getCategoryNavigationUserSegment()
|
java.lang.String |
getCurrentCategoryId()
Returns the category ID that the user is currently viewing. |
com.endeca.infront.navigation.UserState |
getUserState()
|
boolean |
isUserOnCategoryPage()
Determines whether the user is currently on the category page. |
void |
setCatalogNavigation(CatalogNavigationService pCatalogNavigation)
|
void |
setCategoryNavigationUserSegment(java.lang.String pCategoryNavigationUserSegment)
|
void |
setUserState(com.endeca.infront.navigation.UserState pUserState)
|
java.util.List<com.endeca.infront.navigation.model.RangeFilter> |
updateRangeFilters(java.util.List<com.endeca.infront.navigation.model.RangeFilter> pRangeFilters,
atg.endeca.assembler.navigation.filter.RangeFilterBuilder[] pRangeFilterBuilders)
Return a List of unique RangeFilters by the property they filter on. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public StoreCartridgeTools()
Method Detail |
---|
public void setCategoryNavigationUserSegment(java.lang.String pCategoryNavigationUserSegment)
pCategoryNavigationUserSegment
- - The user segment name used to determine whether the user
is on the category page.public java.lang.String getCategoryNavigationUserSegment()
public void setUserState(com.endeca.infront.navigation.UserState pUserState)
pUserState
- - The UserState object holding user segments.public com.endeca.infront.navigation.UserState getUserState()
public void setCatalogNavigation(CatalogNavigationService pCatalogNavigation)
pCatalogNavigation
- - The component used to track users catalog navigation.public CatalogNavigationService getCatalogNavigation()
public java.lang.String getCurrentCategoryId()
Returns the category ID that the user is currently viewing.
This method first checks whether the user is currently on the category page and if so, picks up the last browsed category from the CatalogNavigation component.
public boolean isUserOnCategoryPage()
Determines whether the user is currently on the category page.
This is performed by checking whether the user state contains the category navigation user segment.
public java.util.List<com.endeca.infront.navigation.model.RangeFilter> updateRangeFilters(java.util.List<com.endeca.infront.navigation.model.RangeFilter> pRangeFilters, atg.endeca.assembler.navigation.filter.RangeFilterBuilder[] pRangeFilterBuilders)
pRangeFilters
- - The List of RangeFilters to be updated.pRangeFilterBuilders
- - The RangeFilterBuilders that will generate RangeFilters to be added to pRangeFilters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |