Package com.atlassian.crowd.dao.audit
Interface AuditDao
- All Known Implementing Classes:
AuditDAOHibernate
public interface AuditDao
Hibernate DAO for storing and accessing the audit log
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(AuditLogChangesetEntity changeset) Persists the changeset and its entrieslong
int
removeChangesetsOlderThan
(long timestamp) Removes the audit log entries older than specified timestamp<RESULT> List<RESULT>
search
(AuditLogQuery<RESULT> query) Searches the audit log for entries matching the specified criteria
-
Method Details
-
add
Persists the changeset and its entries- Parameters:
changeset
- the changeset to persist
-
search
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
-