Search in sources :

Example 1 with PortalRenderEvent

use of org.apereo.portal.events.PortalRenderEvent in project uPortal by Jasig.

the class PortletRenderEventConverter method getLrsObject.

@Override
protected LrsObject getLrsObject(PortalEvent event) {
    final String targetedLayoutNodeId = ((PortalRenderEvent) event).getTargetedLayoutNodeId();
    final AggregatedTabMapping aggregatedTabMapping = aggregatedTabLookupDao.getMappedTabForLayoutId(targetedLayoutNodeId);
    final Builder<String, LocalizedString> definitionBuilder = ImmutableMap.builder();
    definitionBuilder.put("name", new LocalizedString(Locale.US, aggregatedTabMapping.getDisplayString()));
    return new LrsObject(buildUrn("tab", aggregatedTabMapping.getFragmentName()), getDefaultObjectType(), definitionBuilder.build());
}
Also used : PortalRenderEvent(org.apereo.portal.events.PortalRenderEvent) LrsObject(org.apereo.portal.events.tincan.om.LrsObject) LocalizedString(org.apereo.portal.events.tincan.om.LocalizedString) LocalizedString(org.apereo.portal.events.tincan.om.LocalizedString) AggregatedTabMapping(org.apereo.portal.events.aggr.tabs.AggregatedTabMapping)

Aggregations

PortalRenderEvent (org.apereo.portal.events.PortalRenderEvent)1 AggregatedTabMapping (org.apereo.portal.events.aggr.tabs.AggregatedTabMapping)1 LocalizedString (org.apereo.portal.events.tincan.om.LocalizedString)1 LrsObject (org.apereo.portal.events.tincan.om.LrsObject)1