public class RecordDetailsHandler extends NavigationCartridgeHandler<Config,Model>
RecordDetails model objects.| Modifier and Type | Field and Description |
|---|---|
protected Logger |
logger |
protected RecordState |
mRecordState |
| Constructor and Description |
|---|
RecordDetailsHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
combineFieldNames(NavigationState navigationState,
com.endeca.infront.cartridge.FieldNamesConfig config)
Updates the list of string for retaining representative record properties.
|
protected List<Record> |
createRecords(com.endeca.navigation.ENEQueryResults results,
NavigationState navigationState,
com.endeca.infront.cartridge.FieldNamesConfig config)
Convert the records found in the given query to Record form.
|
protected FilterState |
getFilterState(NavigationState navigationState)
Retrieves the filter state to use when making record detail queries.
|
protected static long |
getTotalNumRecs(com.endeca.navigation.ENEQueryResults results) |
void |
preprocess(RecordDetailsConfig cartridgeConfig)
Creates a record details MDEX query.
|
RecordDetails |
process(RecordDetailsConfig cartridgeConfig)
Creates a
RecordDetails model object. |
protected void |
retainFields(Map<String,Attribute> attributeMap,
com.endeca.infront.cartridge.FieldNamesConfig config,
boolean aggregationEnabled)
Helper method for retaining properties.
|
void |
setRecordState(RecordState pRecordState)
Sets the record state representing the current request.
|
protected RecordDetailsConfig |
wrapConfig(ContentItem pContentItem)
Wraps the input
ContentItem as a typed config object. |
createMdexRequest, dispatchNavigationEventInformation, executeMdexRequest, executeMdexRequest, getActionPathProvider, getContentItemInitializer, getMdexRequestBroker, getNavigationState, getSiteState, getUserState, initialize, populateNavigationPathDefaults, setActionPathProvider, setContentItemInitializer, setMdexRequestBroker, setNavigationState, setSiteState, setUserStateprotected Logger logger
protected RecordState mRecordState
public void setRecordState(RecordState pRecordState)
protected RecordDetailsConfig wrapConfig(ContentItem pContentItem)
NavigationCartridgeHandlerContentItem 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<RecordDetailsConfig,RecordDetails>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(RecordDetailsConfig cartridgeConfig) throws CartridgeHandlerException
preprocess in class NavigationCartridgeHandler<RecordDetailsConfig,RecordDetails>CartridgeHandlerExceptionpublic RecordDetails process(RecordDetailsConfig cartridgeConfig) throws CartridgeHandlerException
RecordDetails model object.process in class NavigationCartridgeHandler<RecordDetailsConfig,RecordDetails>CartridgeHandlerExceptionprotected FilterState getFilterState(NavigationState navigationState)
protected List<String> combineFieldNames(NavigationState navigationState, com.endeca.infront.cartridge.FieldNamesConfig config) throws CartridgeHandlerException
CartridgeHandlerExceptionprotected static long getTotalNumRecs(com.endeca.navigation.ENEQueryResults results)
protected List<Record> createRecords(com.endeca.navigation.ENEQueryResults results, NavigationState navigationState, com.endeca.infront.cartridge.FieldNamesConfig config)
results - result of MDEX query.navigationState - base navigation state for record details links. If null, record details links are omitted.protected void retainFields(Map<String,Attribute> attributeMap, com.endeca.infront.cartridge.FieldNamesConfig config, boolean aggregationEnabled)
attributeMap - A list of attributes to maintain on the records.config - Cartridge Configuration used to determine which attributes to include.aggregationEnabled - TRUE if aggregation is enabled on the request.Copyright © 2017, Oracle and/or its affiliates. All rights reserved.