Search in sources :

Example 1 with GeoObjectExportFormat

use of net.geoprism.registry.etl.export.GeoObjectExportFormat 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);
    }
}
Also used : GeoObjectExportFormat(net.geoprism.registry.etl.export.GeoObjectExportFormat) GeoObjectJsonExporter(net.geoprism.registry.etl.export.GeoObjectJsonExporter) IOException(java.io.IOException) Request(com.runwaysdk.session.Request) ChangeRequest(net.geoprism.registry.action.ChangeRequest)

Aggregations

Request (com.runwaysdk.session.Request)1 IOException (java.io.IOException)1 ChangeRequest (net.geoprism.registry.action.ChangeRequest)1 GeoObjectExportFormat (net.geoprism.registry.etl.export.GeoObjectExportFormat)1 GeoObjectJsonExporter (net.geoprism.registry.etl.export.GeoObjectJsonExporter)1