|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.infront.cartridge.NavigationCartridgeHandler<com.endeca.infront.cartridge.RefinementMenuConfig,com.endeca.infront.cartridge.RefinementMenu>
com.endeca.infront.cartridge.RefinementMenuHandler
atg.commerce.endeca.assembler.cartridge.handler.CategoryMenuHandler
atg.projects.store.assembler.cartridge.handler.StoreRefinementMenuHandler
public class StoreRefinementMenuHandler
Extends RefinementMenuHandler to override preprocess method to use CategoryToDimensionAttributeAliasManager to get the source name for attribute alias. Process method is overridden to update unlocalized category names to localized ones.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string. |
protected static java.lang.String |
DISPLAY_NAME_PROPERTY
|
protected static java.lang.String |
DISPLAY_NAME_PROPERTY_ALIAS
|
protected com.endeca.infront.navigation.model.FilterState |
mNavigationFilterState
This will hold the main navigation filter state when a temporary filter state is being used. |
protected StoreCartridgeTools |
mStoreCartridgeTools
|
Fields inherited from class atg.commerce.endeca.assembler.cartridge.handler.CategoryMenuHandler |
---|
sLogger |
Constructor Summary | |
---|---|
StoreRefinementMenuHandler()
|
Method Summary | |
---|---|
protected com.endeca.infront.cartridge.RefinementMenu |
filterCategoryFacetsByDate(com.endeca.infront.cartridge.RefinementMenu pCategoryRefinementMenu)
Filter the category refinements by validating their start/end dates. |
java.lang.String |
findLocalizedLabel(java.util.Map<java.lang.String,java.lang.String> pProperties,
java.lang.String pLabel,
java.lang.String pDisplayNameProperty)
Looks for localized label for refinements. |
atg.commerce.catalog.CatalogTools |
getCatalogTools()
|
java.lang.String |
getCategoryIdPropertyName()
|
atg.search.record.alias.AttributeAliasManager |
getLocaleAttributeAliasManager()
|
atg.endeca.assembler.navigation.filter.RangeFilterBuilder[] |
getRangeFilterBuilders()
|
java.util.List<java.lang.String> |
getSkuPropertyNames()
|
StartEndDateValidator |
getStartEndDateValidator()
|
StoreCartridgeTools |
getStoreCartridgeTools()
|
void |
preprocess(com.endeca.infront.cartridge.RefinementMenuConfig pCartridgeConfig)
Determine the source property name for aliased display name property before calling super.preprocess method. |
com.endeca.infront.cartridge.RefinementMenu |
process(com.endeca.infront.cartridge.RefinementMenuConfig pCartridgeConfig)
Creates a new RefinementMenu with localized category labels. |
void |
setCatalogTools(atg.commerce.catalog.CatalogTools pCatalogTools)
|
void |
setCategoryIdPropertyName(java.lang.String pCategoryIdPropertyName)
Sets mCategoryDimensionName |
void |
setLocaleAttributeAliasManager(atg.search.record.alias.AttributeAliasManager pLocaleAttributeAliasManager)
|
void |
setRangeFilterBuilders(atg.endeca.assembler.navigation.filter.RangeFilterBuilder[] pRangeFilterBuilders)
|
void |
setSkuPropertyNames(java.util.List<java.lang.String> pSkuPropertyNames)
|
void |
setStartEndDateValidator(StartEndDateValidator pStartEndDateValidator)
|
void |
setStoreCartridgeTools(StoreCartridgeTools pStoreCartridgeTools)
|
protected com.endeca.infront.cartridge.RefinementMenuConfig |
wrapConfig(com.endeca.infront.assembler.ContentItem pContentItem)
Create a new StoreRefinementMenuConfig using the passed in ContentItem. |
Methods inherited from class atg.commerce.endeca.assembler.cartridge.handler.CategoryMenuHandler |
---|
filterFacets, getCatalogFilterBuilder, getCatalogsPropertyName, getCategoryDimensionName, getSeparator, getSiteFilterBuilder, getSitesPropertyName, isRelevant, setCatalogFilterBuilder, setCatalogsPropertyName, setCategoryDimensionName, setSeparator, setSiteFilterBuilder, setSitesPropertyName |
Methods inherited from class com.endeca.infront.cartridge.NavigationCartridgeHandler |
---|
createMdexRequest, dispatchNavigationEventInformation, executeMdexRequest, executeMdexRequest, getActionPathProvider, getContentItemInitializer, getMdexRequestBroker, getNavigationState, initialize, populateNavigationPathDefaults, setActionPathProvider, setContentItemInitializer, setMdexRequestBroker, setNavigationState |
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 static final java.lang.String DISPLAY_NAME_PROPERTY
protected static final java.lang.String DISPLAY_NAME_PROPERTY_ALIAS
protected com.endeca.infront.navigation.model.FilterState mNavigationFilterState
protected StoreCartridgeTools mStoreCartridgeTools
Constructor Detail |
---|
public StoreRefinementMenuHandler()
Method Detail |
---|
public atg.search.record.alias.AttributeAliasManager getLocaleAttributeAliasManager()
public void setLocaleAttributeAliasManager(atg.search.record.alias.AttributeAliasManager pLocaleAttributeAliasManager)
pLocaledAttributeAliasManager
- - The localeAttributeAliasResolver to set.public java.lang.String getCategoryIdPropertyName()
public void setCategoryIdPropertyName(java.lang.String pCategoryIdPropertyName)
public void setSkuPropertyNames(java.util.List<java.lang.String> pSkuPropertyNames)
pSkuPropertyNames
- - List of SKU dimension property names that should use SKU range filters.
This ensures that when all of a product's SKUs contain invalid date(s),
only the SKU refinements will be affected.public java.util.List<java.lang.String> getSkuPropertyNames()
public void setStartEndDateValidator(StartEndDateValidator pStartEndDateValidator)
pStartEndDateValidator
- - The start/end date validator.public StartEndDateValidator getStartEndDateValidator()
public void setCatalogTools(atg.commerce.catalog.CatalogTools pCatalogTools)
pCatalogTools
- - The catalog tools.public atg.commerce.catalog.CatalogTools getCatalogTools()
public atg.endeca.assembler.navigation.filter.RangeFilterBuilder[] getRangeFilterBuilders()
public void setRangeFilterBuilders(atg.endeca.assembler.navigation.filter.RangeFilterBuilder[] pRangeFilterBuilders)
pRangeFilterBuilders
- - An array of RangeFilterBuilders.
-public StoreCartridgeTools getStoreCartridgeTools()
public void setStoreCartridgeTools(StoreCartridgeTools pStoreCartridgeTools)
pStoreCartridgeTools
- - the StoreCartridgeTools helper component.protected com.endeca.infront.cartridge.RefinementMenuConfig wrapConfig(com.endeca.infront.assembler.ContentItem pContentItem)
wrapConfig
in class com.endeca.infront.cartridge.RefinementMenuHandler
pContentItem
- - The cartridge content item to be wrapped.
public void preprocess(com.endeca.infront.cartridge.RefinementMenuConfig pCartridgeConfig) throws com.endeca.infront.assembler.CartridgeHandlerException
preprocess
in interface com.endeca.infront.assembler.CartridgeHandler<com.endeca.infront.cartridge.RefinementMenuConfig>
preprocess
in class com.endeca.infront.cartridge.RefinementMenuHandler
pCartridgeConfig
- - The RefinementMenu cartridge configuration.
com.endeca.infront.assembler.CartridgeHandlerException
- if an error occurs that is scoped to an individual cartridge instance.
This exception will not halt the entire assembly process, which occurs
across multiple cartridges; instead, this exception will be packaged in
the overall response model. If an unchecked exception is thrown, then the
entire assembly process will be halted.public com.endeca.infront.cartridge.RefinementMenu process(com.endeca.infront.cartridge.RefinementMenuConfig pCartridgeConfig) throws com.endeca.infront.assembler.CartridgeHandlerException
process
in interface com.endeca.infront.assembler.CartridgeHandler<com.endeca.infront.cartridge.RefinementMenuConfig>
process
in class atg.commerce.endeca.assembler.cartridge.handler.CategoryMenuHandler
pCartridgeConfig
- - The cartridge configuration for the RefinementMenu.
com.endeca.infront.assembler.CartridgeHandlerException
- if an error occurs that is scoped to an individual cartridge
instance. This exception will not halt the entire assembly process,
which occurs across multiple cartridges; instead, this exception will
be packaged in the overall response model. If an unchecked exception
is thrown, then the entire assembly process will be halted.protected com.endeca.infront.cartridge.RefinementMenu filterCategoryFacetsByDate(com.endeca.infront.cartridge.RefinementMenu pCategoryRefinementMenu) throws com.endeca.infront.assembler.CartridgeHandlerException
pCategoryRefinementMenu
- - The refinement menu consisting of category refinements.
com.endeca.infront.assembler.CartridgeHandlerException
public java.lang.String findLocalizedLabel(java.util.Map<java.lang.String,java.lang.String> pProperties, java.lang.String pLabel, java.lang.String pDisplayNameProperty)
pProperties
- - The properties of current refinement.pLabel
- - The non-localized label of refinement.pDisplayNameProperty
- - The localized display name property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |