use of org.activityinfo.shared.command.handler.pivot.PivotTableDataBuilder 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) {
PivotResult result = getDispatcher().execute(new PivotSites(element.allDimensions(), filter));
PivotTableDataBuilder builder = new PivotTableDataBuilder();
return builder.build(element, rowDims, colDims, result.getBuckets());
}
use of org.activityinfo.shared.command.handler.pivot.PivotTableDataBuilder in project activityinfo by bedatadriven.
the class GeneratePivotTableHandler method buildResult.
protected PivotContent buildResult(PivotTableReportElement model, PivotResult result) {
PivotTableDataBuilder builder = new PivotTableDataBuilder();
PivotTableData data = builder.build(model, model.getRowDimensions(), model.getColumnDimensions(), result.getBuckets());
PivotContent content = new PivotContent();
content.setEffectiveFilter(model.getFilter());
content.setData(data);
return content;
}
Aggregations