Search in sources :

Example 1 with TabRenderAggregationKey

use of org.apereo.portal.events.aggr.tabrender.TabRenderAggregationKey in project uPortal by Jasig.

the class TabRenderStatisticsController method createAggregationsQueryKeyset.

@Override
protected Set<TabRenderAggregationKey> createAggregationsQueryKeyset(Set<TabRenderAggregationDiscriminator> columnDiscriminators, TabRenderReportForm form) {
    // Create keys (that exclude the temporal date/time information) from the interval
    // and the data in the column discriminators.
    final AggregationInterval interval = form.getInterval();
    final HashSet<TabRenderAggregationKey> keys = new HashSet<TabRenderAggregationKey>();
    for (TabRenderAggregationDiscriminator discriminator : columnDiscriminators) {
        keys.add(new TabRenderAggregationKeyImpl(interval, discriminator.getAggregatedGroup(), discriminator.getTabMapping()));
    }
    return keys;
}
Also used : TabRenderAggregationDiscriminator(org.apereo.portal.events.aggr.tabrender.TabRenderAggregationDiscriminator) AggregationInterval(org.apereo.portal.events.aggr.AggregationInterval) TabRenderAggregationKeyImpl(org.apereo.portal.events.aggr.tabrender.TabRenderAggregationKeyImpl) HashSet(java.util.HashSet) TabRenderAggregationKey(org.apereo.portal.events.aggr.tabrender.TabRenderAggregationKey)

Aggregations

HashSet (java.util.HashSet)1 AggregationInterval (org.apereo.portal.events.aggr.AggregationInterval)1 TabRenderAggregationDiscriminator (org.apereo.portal.events.aggr.tabrender.TabRenderAggregationDiscriminator)1 TabRenderAggregationKey (org.apereo.portal.events.aggr.tabrender.TabRenderAggregationKey)1 TabRenderAggregationKeyImpl (org.apereo.portal.events.aggr.tabrender.TabRenderAggregationKeyImpl)1