Package org.nuxeo.audit.service
Class AbstractAuditBackend
java.lang.Object
org.nuxeo.ecm.platform.audit.service.AbstractAuditBackend<LogEntry>
org.nuxeo.audit.service.AbstractAuditBackend
- All Implemented Interfaces:
AuditBackend,AuditAdmin,AuditLogger<LogEntry>,AuditReader<LogEntry>,AuditStorage,Logs<LogEntry>,AuditBackend<LogEntry>
- Direct Known Subclasses:
MemAuditBackend,MongoDBAuditBackend,OpenSearchAuditBackend,SQLAuditBackend
public abstract class AbstractAuditBackend
extends AbstractAuditBackend<LogEntry>
implements AuditBackend
Abstract class to share code between
AuditBackend implementations- Since:
- 2025.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nuxeo.audit.service.AuditBackend
AuditBackend.Capability -
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.platform.audit.service.AbstractAuditBackend
component, config, expressionEvaluator, FORCE_AUDIT_FACET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidINTERNAL METHOD FOR TESTS, DO NOT USE.protected LogEntrydoCreateAndFillEntryFromDocument(DocumentModel doc, Principal principal) intDeprecated, for removal: This API element is subject to removal in a future version.newExtendedInfo(Serializable value) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.scroll(QueryBuilder queryBuilder, int batchSize, int keepAliveSeconds) longsyncLogCreationEntries(String repoId, String path, Boolean recurs) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.nuxeo.ecm.platform.audit.service.AbstractAuditBackend
await, buildEntryFromEvent, doPutExtendedInfos, doSyncNode, getAuditableEventNames, guardedDocument, guardedDocumentChildren, isAuditable, newLogEntry, populateExtendedInfo, restore, syncLogCreationEntriesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.audit.service.AuditBackend
addLogEntries, getEventsCount, getLatestLogId, getLogEntriesFor, getLogEntryByID, hasCapability, queryLogsMethods inherited from interface org.nuxeo.ecm.platform.audit.service.AuditBackend
restoreMethods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditLogger
await, buildEntryFromEvent, getAuditableEventNames, newLogEntryMethods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditReader
getLogEntriesAfter, nativeQuery, nativeQuery, nativeQueryLogs, queryLogs, queryLogsByPage, queryLogsByPage, queryLogsByPage, queryLogsByPage
-
Field Details
-
log
protected static final org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
AbstractAuditBackend
public AbstractAuditBackend()
-
-
Method Details
-
doCreateAndFillEntryFromDocument
- Overrides:
doCreateAndFillEntryFromDocumentin classAbstractAuditBackend<LogEntry>
-
clearEntries
protected void clearEntries()INTERNAL METHOD FOR TESTS, DO NOT USE. -
newExtendedInfo
@Deprecated(since="2025.0", forRemoval=true) public ExtendedInfo newExtendedInfo(Serializable value) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AuditLoggerCreate a new ExtendedInfo instance- Specified by:
newExtendedInfoin interfaceAuditLogger<LogEntry>- Specified by:
newExtendedInfoin classAbstractAuditBackend<LogEntry>
-
getApplicationStartedOrder
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getApplicationStartedOrderin interfaceAuditBackend<LogEntry>
-
onApplicationStarted
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onApplicationStartedin interfaceAuditBackend<LogEntry>
-
onApplicationStopped
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onApplicationStoppedin interfaceAuditBackend<LogEntry>
-
syncLogCreationEntries
@Deprecated(since="2025.0", forRemoval=true) public long syncLogCreationEntries(String repoId, String path, Boolean recurs) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AuditAdminForces log Synchronisation for a branch of the repository. This can be useful to add the create entries if DB was initialized from a bulk import.- Specified by:
syncLogCreationEntriesin interfaceAuditAdmin
-
append
- Specified by:
appendin interfaceAuditStorage
-
scroll
- Specified by:
scrollin interfaceAuditStorage
-
scroll
- Specified by:
scrollin interfaceAuditStorage
-