Interface AuditDao

All Known Implementing Classes:
AuditDAOHibernate

public interface AuditDao
Hibernate DAO for storing and accessing the audit log
  • Method Details

    • add

      void add(AuditLogChangesetEntity changeset)
      Persists the changeset and its entries
      Parameters:
      changeset - the changeset to persist
    • search

      <RESULT> List<RESULT> search(AuditLogQuery<RESULT> query)
      Searches the audit log for entries matching the specified criteria
      Parameters:
      query - the search criteria
      Returns:
      a list of changesets with entries matching the criteria
    • removeChangesetsOlderThan

      int removeChangesetsOlderThan(long timestamp)
      Removes the audit log entries older than specified timestamp
      Parameters:
      timestamp - the timestamp
      Returns:
      number of deleted entities
    • getAuditLogSize

      long getAuditLogSize()
      Returns:
      the amount of changesets in the audit log