Search in sources :

Example 1 with PortletLayoutAggregationKey

use of org.apereo.portal.events.aggr.portletlayout.PortletLayoutAggregationKey in project uPortal by Jasig.

the class BasePortletLayoutStatisticsController method createAggregationsQueryKeyset.

@Override
protected Set<PortletLayoutAggregationKey> createAggregationsQueryKeyset(Set<PortletLayoutAggregationDiscriminator> columnDiscriminators, F 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<PortletLayoutAggregationKey> keys = new HashSet<PortletLayoutAggregationKey>();
    for (PortletLayoutAggregationDiscriminator discriminator : columnDiscriminators) {
        keys.add(new PortletLayoutAggregationKeyImpl(interval, discriminator.getAggregatedGroup(), discriminator.getPortletMapping()));
    }
    return keys;
}
Also used : PortletLayoutAggregationDiscriminator(org.apereo.portal.events.aggr.portletlayout.PortletLayoutAggregationDiscriminator) PortletLayoutAggregationKeyImpl(org.apereo.portal.events.aggr.portletlayout.PortletLayoutAggregationKeyImpl) AggregationInterval(org.apereo.portal.events.aggr.AggregationInterval) HashSet(java.util.HashSet) PortletLayoutAggregationKey(org.apereo.portal.events.aggr.portletlayout.PortletLayoutAggregationKey)

Aggregations

HashSet (java.util.HashSet)1 AggregationInterval (org.apereo.portal.events.aggr.AggregationInterval)1 PortletLayoutAggregationDiscriminator (org.apereo.portal.events.aggr.portletlayout.PortletLayoutAggregationDiscriminator)1 PortletLayoutAggregationKey (org.apereo.portal.events.aggr.portletlayout.PortletLayoutAggregationKey)1 PortletLayoutAggregationKeyImpl (org.apereo.portal.events.aggr.portletlayout.PortletLayoutAggregationKeyImpl)1