ActivityDataService

public interface ActivityDataService extends MotechDataService<ActivityRecord>

Interface for repository that persists simple records and allows CRUD. MotechDataService base class will provide the implementation of this class as well as methods for adding, deleting, saving and finding all instances. In this class we define and custom lookups we may need.

Methods

findRecordById

ActivityRecord findRecordById(Long id)

findRecordsForUser

List<ActivityRecord> findRecordsForUser(String externalId)

findRecordsForUserByState

List<ActivityRecord> findRecordsForUserByState(String externalId, ActivityState state)