use of org.hisp.dhis.dxf2.events.trackedentity.ImportTrackedEntitiesTask in project dhis2-core by dhis2.
the class TrackedEntityInstanceAsyncStrategyImpl method mergeOrDeleteTrackedEntityInstances.
@Override
public ImportSummaries mergeOrDeleteTrackedEntityInstances(TrackerEntityInstanceRequest trackerEntityInstanceRequest) throws IOException, BadRequestException {
List<TrackedEntityInstance> trackedEntityInstanceList = getTrackedEntityInstancesListByMediaType(trackerEntityInstanceRequest.getMediaType(), trackerEntityInstanceRequest.getInputStream());
taskExecutor.executeTask(new ImportTrackedEntitiesTask(trackedEntityInstanceList, trackedEntityInstanceService, trackerEntityInstanceRequest.getImportOptions(), trackerEntityInstanceRequest.getJobConfiguration()));
return null;
}
Aggregations