public class StoreCartridgeTools
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
CLASS_VERSION
Class version string.
|
Constructor and Description |
---|
StoreCartridgeTools() |
Modifier and Type | Method and Description |
---|---|
CatalogNavigationService |
getCatalogNavigation() |
java.lang.String |
getCategoryNavigationUserSegment() |
java.lang.String |
getCurrentCategoryId()
Returns the category ID that the user is currently viewing.
|
com.endeca.infront.content.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.content.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.
|
java.util.List<java.lang.String> |
updateRecordFilters(java.util.List<java.lang.String> pRecordFilters,
atg.endeca.assembler.navigation.filter.RecordFilterBuilder[] pRecordFilterBuilders)
Return a List of unique RecordFilters by the property they filter on.
|
protected static final java.lang.String CLASS_VERSION
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.content.UserState pUserState)
pUserState
- - The UserState object holding user segments.public com.endeca.infront.content.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.public java.util.List<java.lang.String> updateRecordFilters(java.util.List<java.lang.String> pRecordFilters, atg.endeca.assembler.navigation.filter.RecordFilterBuilder[] pRecordFilterBuilders)
pRecordFilters
- - The List of RecordFilters to be updated.pRecordFilterBuilders
- - The RecordFilterBuilders that will generate RecordFilters to be added to pRecordFilters.