Search in sources :

Example 6 with DataExportJob

use of net.geoprism.registry.etl.export.DataExportJob in project geoprism-registry by terraframe.

the class ETLService method getExportDetails.

@Request(RequestType.SESSION)
public JsonObject getExportDetails(String sessionId, String historyId, int pageSize, int pageNumber) {
    ExportHistory hist = ExportHistory.get(historyId);
    DataExportJob job = (DataExportJob) hist.getAllJob().getAll().get(0);
    GeoprismUser user = GeoprismUser.get(job.getRunAsUser().getOid());
    JsonObject jo = this.serializeHistory(hist, user, job);
    jo.add("exportErrors", this.getExportErrors(sessionId, historyId, pageSize, pageNumber));
    return jo;
}
Also used : ExportHistory(net.geoprism.registry.etl.export.ExportHistory) JsonObject(com.google.gson.JsonObject) GeoprismUser(net.geoprism.GeoprismUser) DataExportJob(net.geoprism.registry.etl.export.DataExportJob) Request(com.runwaysdk.session.Request)

Aggregations

DataExportJob (net.geoprism.registry.etl.export.DataExportJob)6 ExportHistory (net.geoprism.registry.etl.export.ExportHistory)4 Request (com.runwaysdk.session.Request)3 GeoprismUser (net.geoprism.GeoprismUser)3 JsonObject (com.google.gson.JsonObject)2 Transaction (com.runwaysdk.dataaccess.transaction.Transaction)2 QueryFactory (com.runwaysdk.query.QueryFactory)1 SessionIF (com.runwaysdk.session.SessionIF)1 LinkedList (java.util.LinkedList)1 SynchronizationConfig (net.geoprism.registry.SynchronizationConfig)1 DataExportJobQuery (net.geoprism.registry.etl.export.DataExportJobQuery)1 ExportHistoryQuery (net.geoprism.registry.etl.export.ExportHistoryQuery)1 JsonWrapper (net.geoprism.registry.view.JsonWrapper)1