use of net.geoprism.registry.etl.export.GeoObjectJsonExporter in project geoprism-registry by terraframe.
the class ServerGeoObjectService method getAll.
@Request(RequestType.SESSION)
public JsonObject getAll(String sessionId, String gotCode, String hierarchyCode, Date since, Boolean includeLevel, String format, String externalSystemId, Integer pageNumber, Integer pageSize) {
GeoObjectExportFormat goef = null;
if (format != null && format.length() > 0) {
goef = GeoObjectExportFormat.valueOf(format);
}
GeoObjectJsonExporter exporter = new GeoObjectJsonExporter(gotCode, hierarchyCode, since, includeLevel, goef, externalSystemId, pageSize, pageNumber);
try {
return exporter.export();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
Aggregations