Package org.nuxeo.audit.service
Interface AuditBackend
- All Superinterfaces:
AuditAdmin
,AuditBackend<LogEntry>
,AuditLogger<LogEntry>
,AuditReader<LogEntry>
,Logs<LogEntry>
- All Known Implementing Classes:
AbstractAuditBackend
,MemAuditBackend
,MongoDBAuditBackend
,OpenSearchAuditBackend
,SQLAuditBackend
- Since:
- 2025.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLogEntries
(List<LogEntry> entries) Adds given log entries.getEventsCount
(String eventId) default long
getLatestLogId
(String repositoryId, String... eventIds) Returns the latest log id matching events and repository or 0 when no match found.getLogEntriesFor
(String uuid, String repositoryId) Returns the logs given a doc uuid and a repository id.getLogEntryByID
(long id) Returns a given log entry given its id.boolean
hasCapability
(AuditBackend.Capability capability) Checks whether the backend has the capability.queryLogs
(QueryBuilder builder) Returns the logs given a collection of predicates and a default sort.Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditAdmin
syncLogCreationEntries
Methods inherited from interface org.nuxeo.ecm.platform.audit.service.AuditBackend
getApplicationStartedOrder, onApplicationStarted, onApplicationStopped, restore
Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditLogger
await, buildEntryFromEvent, getAuditableEventNames, newExtendedInfo, newLogEntry
Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditReader
getLogEntriesAfter, nativeQuery, nativeQuery, nativeQueryLogs, queryLogs, queryLogsByPage, queryLogsByPage, queryLogsByPage, queryLogsByPage
-
Method Details
-
addLogEntries
Adds given log entries.- Specified by:
addLogEntries
in interfaceAuditLogger<LogEntry>
- Parameters:
entries
- the list of log entries.
-
getEventsCount
- Specified by:
getEventsCount
in interfaceAuditAdmin
-
getLogEntryByID
Returns a given log entry given its id.- Specified by:
getLogEntryByID
in interfaceAuditReader<LogEntry>
- Parameters:
id
- the log entry identifier- Returns:
- a LogEntry instance
-
queryLogs
Returns the logs given a collection of predicates and a default sort.- Specified by:
queryLogs
in interfaceAuditReader<LogEntry>
- Parameters:
builder
- the query builder to fetch log entries- Returns:
- a list of log entries
- Since:
- 9.3
-
getLogEntriesFor
Returns the logs given a doc uuid and a repository id.- Specified by:
getLogEntriesFor
in interfaceAuditReader<LogEntry>
- Parameters:
uuid
- the document uuidrepositoryId
- the repository id- Returns:
- a list of log entries
- Since:
- 8.4
-
getLatestLogId
Returns the latest log id matching events and repository or 0 when no match found.- Specified by:
getLatestLogId
in interfaceAuditReader<LogEntry>
- Since:
- 9.3
-
hasCapability
Checks whether the backend has the capability.
-