Package org.nuxeo.audit.service
Interface AuditBackend.CursorServiceScroll<C,O>
- Type Parameters:
C- The cursor type, for instanceIteratorO- The object type, for instanceLogEntryor third party type
- All Superinterfaces:
AuditAdmin,AuditBackend,AuditBackend<LogEntry>,AuditLogger<LogEntry>,AuditReader<LogEntry>,Logs<LogEntry>
- All Known Implementing Classes:
MemAuditBackend,MongoDBAuditBackend,OpenSearchAuditBackend
- Enclosing interface:
AuditBackend
Interface adding the cursor service capabilities to the audit backend. The cursor service is used to scroll large
result sets of log entries
- Since:
- 2025.18
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nuxeo.audit.service.AuditBackend
AuditBackend.Capability, AuditBackend.CursorServiceScroll<C,O> -
Method Summary
Modifier and TypeMethodDescriptiondefault voidclearScrollLogIds(String scrollId) default ScrollResult<String> scrollLogIds(String scrollId) default ScrollResult<String> scrollLogIds(QueryBuilder builder, int batchSize, Duration keepAlive) scrollLogIdsAsCursor(QueryBuilder builder, int batchSize, Duration keepAlive) Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditAdmin
syncLogCreationEntriesMethods inherited from interface org.nuxeo.audit.service.AuditBackend
addLogEntries, getEventsCount, getLatestLogId, getLogEntriesFor, getLogEntryByID, hasCapability, insertLogs, queryLogsMethods inherited from interface org.nuxeo.ecm.platform.audit.service.AuditBackend
getApplicationStartedOrder, onApplicationStarted, onApplicationStopped, restoreMethods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditLogger
await, buildEntryFromEvent, getAuditableEventNames, newExtendedInfo, newLogEntryMethods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditReader
getLogEntriesAfter, nativeQuery, nativeQuery, nativeQueryLogs, queryLogs, queryLogsByPage, queryLogsByPage, queryLogsByPage, queryLogsByPage
-
Method Details
-
getCursorService
CursorService<C,O, getCursorService()String> - Returns:
- the
CursorServiceto use when scrolling elements, the service must be a singleton
-
scrollLogIdsAsCursor
-
scrollLogIds
- Specified by:
scrollLogIdsin interfaceAuditBackend- Parameters:
builder- the query builder to scroll log entry idsbatchSize- the size of batches to scrollkeepAlive- the scroll keep alive duration- Returns:
- the scroll result
-
scrollLogIds
- Specified by:
scrollLogIdsin interfaceAuditBackend- Parameters:
scrollId- the scroll id- Returns:
- the scroll result
-
clearScrollLogIds
- Specified by:
clearScrollLogIdsin interfaceAuditBackend- Parameters:
scrollId- the scroll id to clear
-