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 TypeMethodDescriptionvoid
protected void
INTERNAL METHOD FOR TESTS, DO NOT USE.protected LogEntry
doCreateAndFillEntryFromDocument
(DocumentModel doc, Principal principal) int
Deprecated, 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.void
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.scroll
(QueryBuilder queryBuilder, int batchSize, int keepAliveSeconds) long
syncLogCreationEntries
(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, syncLogCreationEntries
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.audit.service.AuditBackend
addLogEntries, getEventsCount, getLatestLogId, getLogEntriesFor, getLogEntryByID, hasCapability, queryLogs
Methods inherited from interface org.nuxeo.ecm.platform.audit.service.AuditBackend
restore
Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditLogger
await, buildEntryFromEvent, getAuditableEventNames, newLogEntry
Methods 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:
doCreateAndFillEntryFromDocument
in 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:AuditLogger
Create a new ExtendedInfo instance- Specified by:
newExtendedInfo
in interfaceAuditLogger<LogEntry>
- Specified by:
newExtendedInfo
in classAbstractAuditBackend<LogEntry>
-
getApplicationStartedOrder
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getApplicationStartedOrder
in interfaceAuditBackend<LogEntry>
-
onApplicationStarted
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onApplicationStarted
in interfaceAuditBackend<LogEntry>
-
onApplicationStopped
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onApplicationStopped
in 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:AuditAdmin
Forces 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:
syncLogCreationEntries
in interfaceAuditAdmin
-
append
- Specified by:
append
in interfaceAuditStorage
-
scroll
- Specified by:
scroll
in interfaceAuditStorage
-
scroll
- Specified by:
scroll
in interfaceAuditStorage
-