AlertsDataService

public interface AlertsDataService extends MotechDataService<Alert>

Data Service interface for org.motechproject.alerts.domain.Alerts. The implementation is provided by the Motech Data Services module.

Methods

countFindByStatus

long countFindByStatus(AlertStatus alertStatus)

findByAlertType

List<Alert> findByAlertType(AlertType alertType)

findByDateTime

List<Alert> findByDateTime(Range<DateTime> dateTimeRange)

findByExternalId

List<Alert> findByExternalId(String externalId)

findByPriority

List<Alert> findByPriority(Long priority)

findByStatus

List<Alert> findByStatus(AlertStatus alertStatus)