public class MediaBannerHandler extends NavigationCartridgeHandler<MediaBannerConfig,MediaBanner>
MediaObject model objects.| Constructor and Description |
|---|
MediaBannerHandler() |
| Modifier and Type | Method and Description |
|---|---|
ContentSource |
getContentSource()
Returns the content source that will be used to create
Action objects. |
List<MediaSourceConfig> |
getMediaSourceList()
Returns the list of
MediaSourceConfig objects. |
NavigationStateBuilder |
getNavigationStateBuilder()
Returns the NavigationStateBuilder that will be used by
the LinkBuilder to create a navigation state and
generate links.
|
void |
preprocess(MediaBannerConfig config)
Verifies the configuration for this handler.
|
MediaBanner |
process(MediaBannerConfig config)
Creates a response model of the form:
|
void |
setContentSource(ContentSource contentSource)
Sets the content source that will be used to create
Action objects. |
void |
setMediaSourceList(List<MediaSourceConfig> mediaSrcList)
Sets the list of
MediaSourceConfig objects. |
void |
setNavigationStateBuilder(NavigationStateBuilder navigationStateBuilder)
Sets the NavigationStateBuilder
|
protected MediaBannerConfig |
wrapConfig(ContentItem pContentItem)
Wraps the input
ContentItem as a typed config object. |
createMdexRequest, dispatchNavigationEventInformation, executeMdexRequest, executeMdexRequest, getActionPathProvider, getContentItemInitializer, getMdexRequestBroker, getNavigationState, getSiteState, initialize, populateNavigationPathDefaults, setActionPathProvider, setContentItemInitializer, setMdexRequestBroker, setNavigationState, setSiteStatepublic NavigationStateBuilder getNavigationStateBuilder()
public void setNavigationStateBuilder(NavigationStateBuilder navigationStateBuilder)
getNavigationStateBuilder()public List<MediaSourceConfig> getMediaSourceList()
MediaSourceConfig objects.CartridgeHandlerException will be thrown from preprocess(com.endeca.infront.cartridge.MediaBannerConfig).public void setMediaSourceList(List<MediaSourceConfig> mediaSrcList)
MediaSourceConfig objects.getMediaSourceList()public ContentSource getContentSource()
Action objects.public void setContentSource(ContentSource contentSource)
Action objects.public void preprocess(MediaBannerConfig config) throws CartridgeHandlerException
preprocess in class NavigationCartridgeHandler<MediaBannerConfig,MediaBanner>CartridgeHandlerException - if mediaSourceList, navigationStateBuilder,
or mdexResource have not been set. Also throws an exception if the
MediaBannerConfig is not valid.getMediaSourceList()public MediaBanner process(MediaBannerConfig config) throws CartridgeHandlerException
{
link: LinkBuilder,
media: MediaObject
}
process in class NavigationCartridgeHandler<MediaBannerConfig,MediaBanner>CartridgeHandlerExceptionprotected MediaBannerConfig 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<MediaBannerConfig,MediaBanner>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)Copyright © 2014, Oracle and/or its affiliates. All rights reserved.