Search in sources :

Example 16 with TimeDimension

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

the class SearchRequestAggregator method createAggregationKey.

@Override
protected SearchRequestAggregationKey createAggregationKey(PortletActionExecutionEvent e, EventAggregationContext eventAggregationContext, AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
    final TimeDimension timeDimension = intervalInfo.getTimeDimension();
    final DateDimension dateDimension = intervalInfo.getDateDimension();
    final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
    String query = e.getParameters().get(TARGET_PARAM).get(0);
    SearchRequestAggregationKey key = new SearchRequestAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup, query);
    return key;
}
Also used : TimeDimension(org.apereo.portal.events.aggr.TimeDimension) DateDimension(org.apereo.portal.events.aggr.DateDimension) AggregationInterval(org.apereo.portal.events.aggr.AggregationInterval)

Example 17 with TimeDimension

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

the class JpaPortletLayoutAggregationDao method createAggregationInstance.

@Override
protected PortletLayoutAggregationImpl createAggregationInstance(PortletLayoutAggregationKey key) {
    final TimeDimension timeDimension = key.getTimeDimension();
    final DateDimension dateDimension = key.getDateDimension();
    final AggregationInterval interval = key.getInterval();
    final AggregatedGroupMapping aggregatedGroup = key.getAggregatedGroup();
    final AggregatedPortletMapping portletMapping = key.getPortletMapping();
    return new PortletLayoutAggregationImpl(timeDimension, dateDimension, interval, aggregatedGroup, portletMapping);
}
Also used : AggregatedGroupMapping(org.apereo.portal.events.aggr.groups.AggregatedGroupMapping) AggregatedPortletMapping(org.apereo.portal.events.aggr.portlets.AggregatedPortletMapping) TimeDimension(org.apereo.portal.events.aggr.TimeDimension) DateDimension(org.apereo.portal.events.aggr.DateDimension) AggregationInterval(org.apereo.portal.events.aggr.AggregationInterval)

Example 18 with TimeDimension

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

the class PortletLayoutAggregator method createAggregationKey.

@Override
protected PortletLayoutAggregationKey createAggregationKey(PortletLayoutPortalEvent e, EventAggregationContext eventAggregationContext, AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
    final TimeDimension timeDimension = intervalInfo.getTimeDimension();
    final DateDimension dateDimension = intervalInfo.getDateDimension();
    final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
    Map<String, AggregatedPortletMapping> mappedPortlets = eventAggregationContext.getAttribute(MAPPED_PORTLETS_CACHE_KEY);
    if (mappedPortlets == null) {
        mappedPortlets = new HashMap<String, AggregatedPortletMapping>();
        eventAggregationContext.setAttribute(MAPPED_PORTLETS_CACHE_KEY, mappedPortlets);
    }
    final String fname = e.getFname();
    AggregatedPortletMapping mappedPortlet = mappedPortlets.get(fname);
    if (mappedPortlet == null) {
        mappedPortlet = this.aggregatedPortletLookupDao.getMappedPortletForFname(fname);
        mappedPortlets.put(fname, mappedPortlet);
    }
    return new PortletLayoutAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup, mappedPortlet);
}
Also used : AggregatedPortletMapping(org.apereo.portal.events.aggr.portlets.AggregatedPortletMapping) TimeDimension(org.apereo.portal.events.aggr.TimeDimension) DateDimension(org.apereo.portal.events.aggr.DateDimension) AggregationInterval(org.apereo.portal.events.aggr.AggregationInterval)

Example 19 with TimeDimension

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

the class ConcurrentUserAggregator method createAggregationKey.

@Override
protected ConcurrentUserAggregationKey createAggregationKey(PortalEvent e, EventAggregationContext eventAggregationContext, AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
    final TimeDimension timeDimension = intervalInfo.getTimeDimension();
    final DateDimension dateDimension = intervalInfo.getDateDimension();
    final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
    return new ConcurrentUserAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup);
}
Also used : TimeDimension(org.apereo.portal.events.aggr.TimeDimension) DateDimension(org.apereo.portal.events.aggr.DateDimension) AggregationInterval(org.apereo.portal.events.aggr.AggregationInterval)

Example 20 with TimeDimension

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

the class JpaConcurrentUserAggregationDao method createAggregationInstance.

@Override
protected ConcurrentUserAggregationImpl createAggregationInstance(ConcurrentUserAggregationKey key) {
    final TimeDimension timeDimension = key.getTimeDimension();
    final DateDimension dateDimension = key.getDateDimension();
    final AggregationInterval interval = key.getInterval();
    final AggregatedGroupMapping aggregatedGroup = key.getAggregatedGroup();
    return new ConcurrentUserAggregationImpl(timeDimension, dateDimension, interval, aggregatedGroup);
}
Also used : AggregatedGroupMapping(org.apereo.portal.events.aggr.groups.AggregatedGroupMapping) TimeDimension(org.apereo.portal.events.aggr.TimeDimension) DateDimension(org.apereo.portal.events.aggr.DateDimension) AggregationInterval(org.apereo.portal.events.aggr.AggregationInterval)

Aggregations

TimeDimension (org.apereo.portal.events.aggr.TimeDimension)21 AggregationInterval (org.apereo.portal.events.aggr.AggregationInterval)20 DateDimension (org.apereo.portal.events.aggr.DateDimension)20 AggregatedGroupMapping (org.apereo.portal.events.aggr.groups.AggregatedGroupMapping)6 AggregatedPortletMapping (org.apereo.portal.events.aggr.portlets.AggregatedPortletMapping)6 AggregatedTabMapping (org.apereo.portal.events.aggr.tabs.AggregatedTabMapping)4 ExecutionType (org.apereo.portal.events.aggr.portletexec.PortletExecutionAggregationKey.ExecutionType)1