use of net.geoprism.registry.etl.export.ExportErrorQuery in project geoprism-registry by terraframe.
the class DHIS2SynchronizationManager method handleExportErrors.
private void handleExportErrors() {
ExportErrorQuery query = new ExportErrorQuery(new QueryFactory());
query.WHERE(query.getHistory().EQ(history));
Boolean hasErrors = query.getCount() > 0;
if (hasErrors) {
ExportJobHasErrors ex = new ExportJobHasErrors();
throw ex;
}
}
use of net.geoprism.registry.etl.export.ExportErrorQuery in project geoprism-registry by terraframe.
the class ETLService method getExportErrors.
@Request(RequestType.SESSION)
public JsonObject getExportErrors(String sessionId, String historyId, int pageSize, int pageNumber) {
JsonArray ja = new JsonArray();
ExportErrorQuery query = new ExportErrorQuery(new QueryFactory());
query.WHERE(query.getHistory().EQ(historyId));
query.ORDER_BY(query.getRowIndex(), SortOrder.ASC);
query.restrictRows(pageSize, pageNumber);
try (OIterator<? extends ExportError> it = query.getIterator()) {
List<ExportError> results = new LinkedList<>(it.getAll());
return new Page<ExportError>(query.getCount(), query.getPageNumber(), query.getPageSize(), results).toJSON();
}
}
use of net.geoprism.registry.etl.export.ExportErrorQuery in project geoprism-registry by terraframe.
the class FhirExportSynchronizationManager method handleExportErrors.
private void handleExportErrors() {
ExportErrorQuery query = new ExportErrorQuery(new QueryFactory());
query.WHERE(query.getHistory().EQ(history));
Boolean hasErrors = query.getCount() > 0;
if (hasErrors) {
ExportJobHasErrors ex = new ExportJobHasErrors();
throw ex;
}
}
use of net.geoprism.registry.etl.export.ExportErrorQuery in project geoprism-registry by terraframe.
the class FhirImportSynchronizationManager method handleExportErrors.
private void handleExportErrors() {
ExportErrorQuery query = new ExportErrorQuery(new QueryFactory());
query.WHERE(query.getHistory().EQ(history));
Boolean hasErrors = query.getCount() > 0;
if (hasErrors) {
ExportJobHasErrors ex = new ExportJobHasErrors();
throw ex;
}
}
Aggregations