Search in sources :

Example 1 with EnrollmentHandler

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;
}
Also used : TrackedEntityInstanceStoreImpl(org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceStoreImpl) TrackedEntityAttributeValueHandler(org.hisp.dhis.android.core.trackedentity.TrackedEntityAttributeValueHandler) EnrollmentHandler(org.hisp.dhis.android.core.enrollment.EnrollmentHandler) TrackedEntityInstanceStore(org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceStore) TrackedEntityInstanceHandler(org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceHandler)

Example 2 with EnrollmentHandler

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;
}
Also used : EnrollmentStore(org.hisp.dhis.android.core.enrollment.EnrollmentStore) EnrollmentStoreImpl(org.hisp.dhis.android.core.enrollment.EnrollmentStoreImpl) EventHandler(org.hisp.dhis.android.core.event.EventHandler) EnrollmentHandler(org.hisp.dhis.android.core.enrollment.EnrollmentHandler)

Aggregations

EnrollmentHandler (org.hisp.dhis.android.core.enrollment.EnrollmentHandler)2 EnrollmentStore (org.hisp.dhis.android.core.enrollment.EnrollmentStore)1 EnrollmentStoreImpl (org.hisp.dhis.android.core.enrollment.EnrollmentStoreImpl)1 EventHandler (org.hisp.dhis.android.core.event.EventHandler)1 TrackedEntityAttributeValueHandler (org.hisp.dhis.android.core.trackedentity.TrackedEntityAttributeValueHandler)1 TrackedEntityInstanceHandler (org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceHandler)1 TrackedEntityInstanceStore (org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceStore)1 TrackedEntityInstanceStoreImpl (org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceStoreImpl)1