URIBuilder builder = new URIBuilder("api/reports/views/" + viewId + "/" + viewType.getUri());
JsonNode json = service.loadJson(service
.appendLocale(service.appendDateTime(service.appendFilter(builder, filters), dateInterval, timeInterval), locale)
.build().toString());
if (viewType == ViewType.TABLE) {
return new TableImpl(service, viewId, json, filters).setLocale(locale);
}
return json;
} catch (URISyntaxException e) {
throw new InternalConfigurationException(e);
}