use of org.apereo.portal.events.aggr.tabs.AggregatedTabMapping in project uPortal by Jasig.
the class JpaTabRenderAggregationDaoTest method createAggregationKey.
@Override
protected TabRenderAggregationKey createAggregationKey(AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
final DateDimension dateDimension = intervalInfo.getDateDimension();
final TimeDimension timeDimension = intervalInfo.getTimeDimension();
final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
final AggregatedTabMapping mappedTab = this.aggregatedTabLookupDao.getMappedTabForLayoutId("u1l1n1");
return new TabRenderAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup, mappedTab);
}
use of org.apereo.portal.events.aggr.tabs.AggregatedTabMapping 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