Search in sources :

Example 1 with PortletExecutionAggregationKey

use of org.apereo.portal.events.aggr.portletexec.PortletExecutionAggregationKey in project uPortal by Jasig.

the class PortletExecutionStatisticsController method createAggregationsQueryKeyset.

@Override
protected Set<PortletExecutionAggregationKey> createAggregationsQueryKeyset(Set<PortletExecutionAggregationDiscriminator> columnDiscriminators, PortletExecutionReportForm 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<PortletExecutionAggregationKey> keys = new HashSet<PortletExecutionAggregationKey>();
    for (PortletExecutionAggregationDiscriminator discriminator : columnDiscriminators) {
        keys.add(new PortletExecutionAggregationKeyImpl(interval, discriminator.getAggregatedGroup(), discriminator.getPortletMapping(), discriminator.getExecutionType()));
    }
    return keys;
}
Also used : PortletExecutionAggregationDiscriminator(org.apereo.portal.events.aggr.portletexec.PortletExecutionAggregationDiscriminator) PortletExecutionAggregationKeyImpl(org.apereo.portal.events.aggr.portletexec.PortletExecutionAggregationKeyImpl) PortletExecutionAggregationKey(org.apereo.portal.events.aggr.portletexec.PortletExecutionAggregationKey) AggregationInterval(org.apereo.portal.events.aggr.AggregationInterval) HashSet(java.util.HashSet)

Aggregations

HashSet (java.util.HashSet)1 AggregationInterval (org.apereo.portal.events.aggr.AggregationInterval)1 PortletExecutionAggregationDiscriminator (org.apereo.portal.events.aggr.portletexec.PortletExecutionAggregationDiscriminator)1 PortletExecutionAggregationKey (org.apereo.portal.events.aggr.portletexec.PortletExecutionAggregationKey)1 PortletExecutionAggregationKeyImpl (org.apereo.portal.events.aggr.portletexec.PortletExecutionAggregationKeyImpl)1