EmailRecordService¶
-
public interface
EmailRecordServiceextends 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
EmailRecordentries 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
EmailRecordentries 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
EmailRecordentries matching the specified search parameters. This method is exposed as aorg.motechproject.mds.annotations.Lookupthrough 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
EmailRecordentries that match the specified criteriaSee also:
org.motechproject.mds.annotations
findByRecipientAddress¶
-
List<EmailRecord>
findByRecipientAddress(String recipientAddress)¶ Finds and returns all
EmailRecordentries for the specified recipient address. This method is exposed as aorg.motechproject.mds.annotations.Lookupthrough Motech Data Services.Parameters: - recipientAddress – the recipient address on which to search
Returns: the list of
EmailRecordentries that match the specified addressSee also:
org.motechproject.mds.annotations