EmailRecordService¶
- public interface EmailRecordService extends MotechDataService<EmailRecord>¶
This service provides data access for org.motechproject.email.domain.EmailRecord. The implementation is generated by Motech Data Services and published as an OSGi service.
Methods¶
countFind¶
- long countFind(String fromAddress, String toAddress, String subject, String message, Range<DateTime> deliveryTimeRange, Set<DeliveryStatus> deliveryStatuses)¶
Returns the count of all EmailRecord entries matching the specified search parameters.
Parameters: - fromAddress – the sender address on which to search
- toAddress – the recipient address on which to search
- subject – the subject on which to search
- message – the message body on which to search
- deliveryTimeRange – the delivery time range on which to search
- deliveryStatuses – the delivery statuses on which to search
Returns: the count of EmailRecord entries that match the specified criteria
find¶
- List<EmailRecord> find(String fromAddress, String toAddress, String subject, String message, Range<DateTime> deliveryTimeRange, Set<DeliveryStatus> deliveryStatuses, QueryParams queryParams)¶
Finds and returns all EmailRecord entries matching the specified search parameters. This method is exposed as a org.motechproject.mds.annotations.Lookup through Motech Data Services.
Parameters: - fromAddress – the sender address on which to search
- toAddress – the recipient address on which to search
- subject – the subject on which to search
- message – the message body on which to search
- deliveryTimeRange – the delivery time range on which to search
- deliveryStatuses – the delivery statuses on which to search
- queryParams – the query parameters to include with the search criteria
Returns: the list of EmailRecord entries that match the specified criteria
See also: org.motechproject.mds.annotations
findByRecipientAddress¶
- List<EmailRecord> findByRecipientAddress(String recipientAddress)¶
Finds and returns all EmailRecord entries for the specified recipient address. This method is exposed as a org.motechproject.mds.annotations.Lookup through Motech Data Services.
Parameters: - recipientAddress – the recipient address on which to search
Returns: the list of EmailRecord entries that match the specified address
See also: org.motechproject.mds.annotations