EmailAuditService¶
-
public interface
EmailAuditService¶ The
EmailAuditServiceinterface provides methods for logging email activity, as well as searching and deleting the email logs.
Methods¶
countEmailRecords¶
-
long
countEmailRecords(EmailRecordSearchCriteria criteria)¶ Returns the count of
EmailRecordentries matching the specified search criteria.Returns: the count of email records matching the provided criteria
delete¶
-
void
delete(EmailRecord emailRecord)¶ Deletes the specified
EmailRecordentry from the email log.
findAllEmailRecords¶
-
List<EmailRecord>
findAllEmailRecords()¶ Finds and returns all
EmailRecordentries in the email log.Returns: all email records in the email log
findById¶
-
EmailRecord
findById(long id)¶ Finds an
EmailRecordin the log by ID.Parameters: - id – the identifier of the record to find
Returns: the email record that matches the provided identifier, or null if no matching record exists
findEmailRecords¶
-
List<EmailRecord>
findEmailRecords(EmailRecordSearchCriteria criteria)¶ Finds and returns all
EmailRecordentries matching the specified search criteria.Returns: all email records matching the provided criteria