com.endeca.infront.cartridge
Class RefinementMenuHandler
java.lang.Object
   com.endeca.infront.cartridge.NavigationCartridgeHandler<RefinementMenuConfig,RefinementMenu>
com.endeca.infront.cartridge.NavigationCartridgeHandler<RefinementMenuConfig,RefinementMenu>
       com.endeca.infront.cartridge.RefinementMenuHandler
com.endeca.infront.cartridge.RefinementMenuHandler
- All Implemented Interfaces: 
- CartridgeHandler<RefinementMenuConfig>
- public class RefinementMenuHandler 
- extends NavigationCartridgeHandler<RefinementMenuConfig,RefinementMenu>
Cartridge handler that creates RefinementMenu model objects.
 
 
| Methods inherited from class com.endeca.infront.cartridge.NavigationCartridgeHandler | 
| createMdexRequest, dispatchNavigationEventInformation, 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 | 
 
RefinementMenuHandler
public RefinementMenuHandler()
wrapConfig
protected RefinementMenuConfig wrapConfig(ContentItem pContentItem)
- Description copied from class: NavigationCartridgeHandler
- Wraps the input ContentItemas a typed config object. It is not expected that
 subclasses will mutate the inputContentItem, beyond passing it into
 their typed configuration class as a constructor argument.
 
- 
- Specified by:
- wrapConfigin class- NavigationCartridgeHandler<RefinementMenuConfig,RefinementMenu>
 
- 
- Parameters:
- pContentItem- the configuration for this cartridge handler. This will either be the
 fully initialized configuration object, if a- ContentItemInitializerhas been
 set, or it will simply be the instance configuration.
- Returns:
- an instance of ConfigTypewhich wraps the inputContentItem.
- See Also:
- NavigationCartridgeHandler.initialize(ContentItem),- NavigationCartridgeHandler.setContentItemInitializer(ContentItemInitializer)
 
preprocess
public void preprocess(RefinementMenuConfig cartridgeConfig)
                throws CartridgeHandlerException
- Creates a query to the MDEX for the refinements of the Dimension specified by
 RefinementMenuConfig.getDimensionId().  If the dimension id is not specified, this CartridgeHandler
 will return null for its ContentItem.
 
- 
- Specified by:
- preprocessin interface- CartridgeHandler<RefinementMenuConfig>
- Overrides:
- preprocessin class- NavigationCartridgeHandler<RefinementMenuConfig,RefinementMenu>
 
- 
- Parameters:
- 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).
- Throws:
- 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.
 
process
public RefinementMenu process(RefinementMenuConfig cartridgeConfig)
                       throws CartridgeHandlerException
- Returns null if no dimension id is specified in the config, or if the MDEX doesn't return
 any refinements.
 
- 
- Specified by:
- processin interface- CartridgeHandler<RefinementMenuConfig>
- Overrides:
- processin class- NavigationCartridgeHandler<RefinementMenuConfig,RefinementMenu>
 
- 
- Parameters:
- cartridgeConfig- the cartridge configuration returned by- CartridgeHandler.initialize(ContentItem). Note that this instance may have been modified by
 the- CartridgeHandler.preprocess(ContentItem)method.
- Returns:
- the output value for this cartridge. If null is returned, then
   the corresponding node in the output tree will be deleted.
- Throws:
- 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 © 2012, Oracle and/or its affiliates. All rights reserved.