Interface InternalAuditService
- All Superinterfaces:
AuditService
Extends AuditService for operations like removing stale entries, etc
-
Method Summary
Modifier and TypeMethodDescriptionlongintremoveEntriesOlderThan(Instant cutoff) Removes entries created before the given instantintRemoves stale entries basing on current configurationvoidsaveAudits(Collection<AuditLogChangeset> changesets) Persists the given audit log changesets.Methods inherited from interface com.atlassian.crowd.manager.audit.AuditService
getConfiguration, isEnabled, saveAudit, saveConfiguration, searchAuditLog, shouldAuditEvent
-
Method Details
-
removeStaleEntries
int removeStaleEntries()Removes stale entries basing on current configuration- Returns:
- number of removed entries
-
removeEntriesOlderThan
Removes entries created before the given instant- Returns:
- number of removed entries
- Since:
- v3.2
-
saveAudits
Persists the given audit log changesets. Their timestamps will be set to the current time. Will not do anything when audit log is disabled.- Parameters:
changesets- the changesets that will be persisted- Since:
- v3.2
-
getAuditLogSize
long getAuditLogSize()- Returns:
- the amount of changesets in the audit log
-