Interface AuditBackend
-
- All Superinterfaces:
AuditAdmin,AuditLogger,AuditReader,Logs
- All Known Implementing Classes:
AbstractAuditBackend,DefaultAuditBackend,ESAuditBackend,MongoDBAuditBackend
public interface AuditBackend extends Logs
Audit Backend SPI- Author:
- tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description intgetApplicationStartedOrder()voidonApplicationStarted()default voidonApplicationStopped()default voidonShutdown()Deprecated.since 9.2 replaced withonApplicationStopped()voidrestore(AuditStorage auditStorage, int batchSize, int keepAlive)Restore the backend from the givenAuditStorage-
Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditAdmin
getEventsCount, syncLogCreationEntries
-
Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditLogger
addLogEntries, await, buildEntryFromEvent, getAuditableEventNames, logEvent, logEvents, newExtendedInfo, newLogEntry
-
Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditReader
getLatestLogId, getLogEntriesAfter, getLogEntriesFor, getLogEntriesFor, getLogEntriesFor, getLogEntryByID, nativeQuery, nativeQuery, nativeQueryLogs, queryLogs, queryLogs, queryLogsByPage, queryLogsByPage, queryLogsByPage, queryLogsByPage
-
-
-
-
Method Detail
-
getApplicationStartedOrder
int getApplicationStartedOrder()
-
onApplicationStarted
void onApplicationStarted()
-
onApplicationStopped
default void onApplicationStopped()
- Since:
- 9.2 with default backward compatibility by delegating to deprecated API
onShutdown()
-
onShutdown
@Deprecated default void onShutdown()
Deprecated.since 9.2 replaced withonApplicationStopped()
-
restore
void restore(AuditStorage auditStorage, int batchSize, int keepAlive)
Restore the backend from the givenAuditStorage- Parameters:
auditStorage- the audit storagebatchSize- the batch sizekeepAlive- the keep alive duration- Since:
- 9.3
-
-