Search in sources :

Example 6 with PivotSites

use of org.activityinfo.legacy.shared.command.PivotSites in project activityinfo by bedatadriven.

the class PivotGenerator method generateData.

protected PivotTableData generateData(int userId, Locale locale, T element, Filter filter, List<Dimension> rowDims, List<Dimension> colDims) {
    PivotSites command = new PivotSites(element.allDimensions(), filter);
    PivotResult result = command.isTooBroad() ? new PivotResult() : getDispatcher().execute(command);
    PivotTableDataBuilder builder = new PivotTableDataBuilder();
    return builder.build(rowDims, colDims, result.getBuckets());
}
Also used : PivotSites(org.activityinfo.legacy.shared.command.PivotSites) PivotResult(org.activityinfo.legacy.shared.command.PivotSites.PivotResult) PivotTableDataBuilder(org.activityinfo.legacy.shared.impl.pivot.PivotTableDataBuilder)

Aggregations

PivotSites (org.activityinfo.legacy.shared.command.PivotSites)6 Dimension (org.activityinfo.legacy.shared.reports.model.Dimension)3 Filter (org.activityinfo.legacy.shared.command.Filter)2 PivotResult (org.activityinfo.legacy.shared.command.PivotSites.PivotResult)2 Bucket (org.activityinfo.legacy.shared.command.result.Bucket)2 EntityCategory (org.activityinfo.legacy.shared.reports.content.EntityCategory)2 HashSet (java.util.HashSet)1 GET (javax.ws.rs.GET)1 Produces (javax.ws.rs.Produces)1 WebApplicationException (javax.ws.rs.WebApplicationException)1 GetPartnersDimension (org.activityinfo.legacy.shared.command.GetPartnersDimension)1 PartnerResult (org.activityinfo.legacy.shared.command.result.PartnerResult)1 PivotTableDataBuilder (org.activityinfo.legacy.shared.impl.pivot.PivotTableDataBuilder)1 PartnerDTO (org.activityinfo.legacy.shared.model.PartnerDTO)1 AdminMarker (org.activityinfo.legacy.shared.reports.content.AdminMarker)1 PivotContent (org.activityinfo.legacy.shared.reports.content.PivotContent)1 AdminDimension (org.activityinfo.legacy.shared.reports.model.AdminDimension)1 DateDimension (org.activityinfo.legacy.shared.reports.model.DateDimension)1 Month (org.activityinfo.model.type.time.Month)1 DateUtilCalendarImpl (org.activityinfo.server.report.util.DateUtilCalendarImpl)1