use of org.apereo.portal.rendering.StAXSerializingComponent in project uPortal by Jasig.
the class RenderingPipelineConfiguration method getStAXSerializingComponent.
@Bean(name = "staxSerializingComponent")
public CharacterPipelineComponent getStAXSerializingComponent() {
final StAXSerializingComponent rslt = new StAXSerializingComponent();
rslt.setWrappedComponent(getPostThemeTransformLogger());
final Map<String, CharacterEventSource> chunkingElements = new HashMap<>();
chunkingElements.put(IUserLayoutManager.CHANNEL, getPortletContentPlaceholderEventSource());
chunkingElements.put(IUserLayoutManager.CHANNEL_HEADER, getPortletHeaderPlaceholderEventSource());
chunkingElements.put(ChunkPointPlaceholderEventSource.CHUNK_POINT, getChunkPointPlaceholderEventSource());
chunkingElements.put(PortletAnalyticsDataPlaceholderEventSource.PORTLET_ANALYTICS_SCRIPT, getPortletAnalyticsDataPlaceholderEventSource());
chunkingElements.put(PageAnalyticsDataPlaceholderEventSource.PAGE_ANALYTICS_SCRIPT, getPageAnalyticsDataPlaceholderEventSource());
rslt.setChunkingElements(chunkingElements);
final Map<String, CharacterEventSource> chunkingPatterns = new HashMap<>();
chunkingPatterns.put(PORTLET_TITLE_PATTERN, getPortletTitlePlaceholderEventSource());
chunkingPatterns.put(PORTLET_HELP_PATTERN, getPortletHelpPlaceholderEventSource());
chunkingPatterns.put(PORTLET_NEW_ITEM_COUNT_PATTERN, getPortletNewItemCountPlaceholderEventSource());
chunkingPatterns.put(PORTLET_LINK_PATTERN, getPortletLinkPlaceholderEventSource());
rslt.setChunkingPatterns(chunkingPatterns);
return rslt;
}
Aggregations