Search in sources :

Example 1 with ImportTrackedEntitiesTask

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;
}
Also used : TrackedEntityInstance(org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance) ImportTrackedEntitiesTask(org.hisp.dhis.dxf2.events.trackedentity.ImportTrackedEntitiesTask)

Aggregations

ImportTrackedEntitiesTask (org.hisp.dhis.dxf2.events.trackedentity.ImportTrackedEntitiesTask)1 TrackedEntityInstance (org.hisp.dhis.dxf2.events.trackedentity.TrackedEntityInstance)1