use of org.apereo.portal.events.aggr.DateDimension in project uPortal by Jasig.
the class JpaConcurrentUserAggregationDaoTest method createAggregations.
@Override
protected Map<ConcurrentUserAggregationKey, ConcurrentUserAggregationImpl> createAggregations(AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
final DateDimension dateDimension = intervalInfo.getDateDimension();
final TimeDimension timeDimension = intervalInfo.getTimeDimension();
final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
final ConcurrentUserAggregationKeyImpl key = new ConcurrentUserAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup);
final ConcurrentUserAggregationImpl aggr = concurrentUserAggregationDao.createAggregation(key);
return Collections.<ConcurrentUserAggregationKey, ConcurrentUserAggregationImpl>singletonMap(key, aggr);
}
use of org.apereo.portal.events.aggr.DateDimension in project uPortal by Jasig.
the class JpaConcurrentUserAggregationDaoTest method createAggregationKey.
@Override
protected ConcurrentUserAggregationKey createAggregationKey(AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
final DateDimension dateDimension = intervalInfo.getDateDimension();
final TimeDimension timeDimension = intervalInfo.getTimeDimension();
final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
return new ConcurrentUserAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup);
}
use of org.apereo.portal.events.aggr.DateDimension in project uPortal by Jasig.
the class JpaPortletExecutionAggregationDaoTest method createAggregationKey.
@Override
protected PortletExecutionAggregationKey createAggregationKey(AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
final DateDimension dateDimension = intervalInfo.getDateDimension();
final TimeDimension timeDimension = intervalInfo.getTimeDimension();
final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
final AggregatedPortletMapping mappedPortlet = aggregatedPortletLookupDao.getMappedPortletForFname("Foo");
return new PortletExecutionAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup, mappedPortlet, ExecutionType.ALL);
}
use of org.apereo.portal.events.aggr.DateDimension in project uPortal by Jasig.
the class JpaPortletExecutionAggregationDaoTest method createAggregations.
@Override
protected Map<PortletExecutionAggregationKey, PortletExecutionAggregationImpl> createAggregations(AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
final DateDimension dateDimension = intervalInfo.getDateDimension();
final TimeDimension timeDimension = intervalInfo.getTimeDimension();
final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
final AggregatedPortletMapping mappedPortlet = aggregatedPortletLookupDao.getMappedPortletForFname("Foo");
final PortletExecutionAggregationKeyImpl key = new PortletExecutionAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup, mappedPortlet, ExecutionType.ALL);
final PortletExecutionAggregationImpl aggr = portletExecutionAggregationDao.createAggregation(key);
return Collections.<PortletExecutionAggregationKey, PortletExecutionAggregationImpl>singletonMap(key, aggr);
}
use of org.apereo.portal.events.aggr.DateDimension in project uPortal by Jasig.
the class JpaLoginAggregationDaoTest method createAggregations.
@Override
protected Map<LoginAggregationKey, LoginAggregationImpl> createAggregations(AggregationIntervalInfo intervalInfo, AggregatedGroupMapping aggregatedGroup) {
final DateDimension dateDimension = intervalInfo.getDateDimension();
final TimeDimension timeDimension = intervalInfo.getTimeDimension();
final AggregationInterval aggregationInterval = intervalInfo.getAggregationInterval();
final LoginAggregationKeyImpl key = new LoginAggregationKeyImpl(dateDimension, timeDimension, aggregationInterval, aggregatedGroup);
final LoginAggregationImpl aggr = loginAggregationDao.createAggregation(key);
return Collections.<LoginAggregationKey, LoginAggregationImpl>singletonMap(key, aggr);
}
Aggregations