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());
}
Aggregations