use of org.hisp.dhis.android.core.enrollment.EnrollmentHandler in project dhis2-android-sdk by dhis2.
the class HandlerFactory method createTrackedEntityInstanceHandler.
public static TrackedEntityInstanceHandler createTrackedEntityInstanceHandler(DatabaseAdapter databaseAdapter) {
TrackedEntityInstanceStore trackedEntityInstanceStore = new TrackedEntityInstanceStoreImpl(databaseAdapter);
TrackedEntityAttributeValueHandler trackedEntityAttributeValueHandler = createTrackedEntityAttributeValueHandler(databaseAdapter);
EnrollmentHandler enrollmentHandler = createEnrollmentHandler(databaseAdapter);
TrackedEntityInstanceHandler trackedEntityInstanceHandler = new TrackedEntityInstanceHandler(trackedEntityInstanceStore, trackedEntityAttributeValueHandler, enrollmentHandler);
return trackedEntityInstanceHandler;
}
use of org.hisp.dhis.android.core.enrollment.EnrollmentHandler in project dhis2-android-sdk by dhis2.
the class HandlerFactory method createEnrollmentHandler.
public static EnrollmentHandler createEnrollmentHandler(DatabaseAdapter databaseAdapter) {
EnrollmentStore enrollmentStore = new EnrollmentStoreImpl(databaseAdapter);
EventHandler eventHandler = createEventHandler(databaseAdapter);
EnrollmentHandler enrollmentHandler = new EnrollmentHandler(databaseAdapter, enrollmentStore, eventHandler);
return enrollmentHandler;
}
Aggregations