use of org.hisp.dhis.visualization.Visualization in project dhis2-core by dhis2.
the class DhisConvenienceTest method createVisualization.
public static Visualization createVisualization(char uniqueCharacter) {
Visualization visualization = new Visualization();
visualization.setAutoFields();
visualization.setName("Visualization" + uniqueCharacter);
visualization.setType(PIVOT_TABLE);
return visualization;
}
use of org.hisp.dhis.visualization.Visualization in project dhis2-core by dhis2.
the class VisualizationController method deserializeJsonEntity.
@Override
protected Visualization deserializeJsonEntity(final HttpServletRequest request) throws IOException {
final Visualization visualization = super.deserializeJsonEntity(request);
addDimensionsInto(visualization);
return visualization;
}
use of org.hisp.dhis.visualization.Visualization in project dhis2-core by dhis2.
the class VisualizationDataController method getReportTableGrid.
private Grid getReportTableGrid(String uid, String organisationUnitUid, Date date) {
Visualization visualization = visualizationService.getVisualizationNoAcl(uid);
if (organisationUnitUid == null && visualization.hasReportingParams() && visualization.getReportingParams().isOrganisationUnitSet()) {
organisationUnitUid = organisationUnitService.getRootOrganisationUnits().iterator().next().getUid();
}
date = date != null ? date : new Date();
return visualizationGridService.getVisualizationGrid(uid, date, organisationUnitUid);
}
Aggregations