Search in sources :

Example 1 with StAXSerializingComponent

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;
}
Also used : HashMap(java.util.HashMap) StAXSerializingComponent(org.apereo.portal.rendering.StAXSerializingComponent) CharacterEventSource(org.apereo.portal.character.stream.CharacterEventSource) Bean(org.springframework.context.annotation.Bean)

Aggregations

HashMap (java.util.HashMap)1 CharacterEventSource (org.apereo.portal.character.stream.CharacterEventSource)1 StAXSerializingComponent (org.apereo.portal.rendering.StAXSerializingComponent)1 Bean (org.springframework.context.annotation.Bean)1