ScheduleTrackingServiceImpl

public class ScheduleTrackingServiceImpl implements ScheduleTrackingService

Implementation of org.motechproject.scheduletracking.service.ScheduleTrackingService.

Constructors

ScheduleTrackingServiceImpl

public ScheduleTrackingServiceImpl(EnrollmentsQueryService enrollmentsQueryService, ScheduleDataService scheduleDataService, EnrollmentService enrollmentService, EnrollmentRecordMapper enrollmentRecordMapper, EnrollmentDataService enrollmentDataService, SettingsFacade scheduleTrackingSettings)

Methods

add

public void add(String scheduleJson)

enroll

public Long enroll(EnrollmentRequest enrollmentRequest)

fulfillCurrentMilestone

public void fulfillCurrentMilestone(String externalId, String scheduleName, LocalDate fulfillmentDate, Time fulfillmentTime)

fulfillCurrentMilestone

public void fulfillCurrentMilestone(String externalId, String scheduleName, LocalDate fulfillmentDate)

getAlertTimings

public MilestoneAlerts getAlertTimings(EnrollmentRequest enrollmentRequest)

getAllSchedules

public List<Schedule> getAllSchedules()

getEnrollment

public EnrollmentRecord getEnrollment(String externalId, String scheduleName)

getScheduleByName

public Schedule getScheduleByName(String scheduleName)

remove

public void remove(String scheduleName)

searchWithWindowDates

public List<EnrollmentRecord> searchWithWindowDates(EnrollmentsQuery query)

unenroll

public void unenroll(String externalId, List<String> scheduleNames)

updateEnrollment

public void updateEnrollment(String externalId, String scheduleName, UpdateCriteria updateCriteria)