public class RefinementMenuHandler extends NavigationCartridgeHandler<RefinementMenuConfig,RefinementMenu>
RefinementMenu
model objects.Constructor and Description |
---|
RefinementMenuHandler() |
Modifier and Type | Method and Description |
---|---|
void |
preprocess(RefinementMenuConfig cartridgeConfig)
Creates a query to the MDEX for the refinements of the Dimension specified by
RefinementMenuConfig.getDimensionId() . |
RefinementMenu |
process(RefinementMenuConfig cartridgeConfig)
Returns null if no dimension id is specified in the config, or if the MDEX doesn't return
any refinements.
|
protected RefinementMenuConfig |
wrapConfig(ContentItem pContentItem)
Wraps the input
ContentItem as a typed config object. |
createMdexRequest, dispatchNavigationEventInformation, executeMdexRequest, executeMdexRequest, getActionPathProvider, getContentItemInitializer, getMdexRequestBroker, getNavigationState, initialize, populateNavigationPathDefaults, setActionPathProvider, setContentItemInitializer, setMdexRequestBroker, setNavigationState
protected RefinementMenuConfig wrapConfig(ContentItem pContentItem)
NavigationCartridgeHandler
ContentItem
as a typed config object. It is not expected that
subclasses will mutate the input ContentItem
, beyond passing it into
their typed configuration class as a constructor argument.wrapConfig
in class NavigationCartridgeHandler<RefinementMenuConfig,RefinementMenu>
pContentItem
- the configuration for this cartridge handler. This will either be the
fully initialized configuration object, if a ContentItemInitializer
has been
set, or it will simply be the instance configuration.ConfigType
which wraps the input ContentItem
.NavigationCartridgeHandler.initialize(ContentItem)
,
NavigationCartridgeHandler.setContentItemInitializer(ContentItemInitializer)
public void preprocess(RefinementMenuConfig cartridgeConfig) throws CartridgeHandlerException
RefinementMenuConfig.getDimensionId()
. If the dimension id is not specified, this CartridgeHandler
will return null for its ContentItem.preprocess
in interface CartridgeHandler<RefinementMenuConfig>
preprocess
in class NavigationCartridgeHandler<RefinementMenuConfig,RefinementMenu>
cartridgeConfig
- the cartridge configuration returned by
CartridgeHandler.initialize(ContentItem)
. This cartridge configuration may
be modified by this handler. Note that this cartridge configuration is
also passed to CartridgeHandler.process(ContentItem)
.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 RefinementMenu process(RefinementMenuConfig cartridgeConfig) throws CartridgeHandlerException
process
in interface CartridgeHandler<RefinementMenuConfig>
process
in class NavigationCartridgeHandler<RefinementMenuConfig,RefinementMenu>
cartridgeConfig
- the cartridge configuration returned by
CartridgeHandler.initialize(ContentItem)
. Note that this instance may have been modified by
the CartridgeHandler.preprocess(ContentItem)
method.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.Copyright © 2013, Oracle and/or its affiliates. All rights reserved.