Package org.nuxeo.ecm.platform.audit.api
Interface AuditLogger<L extends LogEntry>
- Type Parameters:
L
- to give the log entry type for the newAuditBackend
interface that defines a new entry type.
- All Known Subinterfaces:
AuditBackend
,AuditBackend<L>
,Logs<L>
,LogsRemote
- All Known Implementing Classes:
AbstractAuditBackend
,AbstractAuditBackend
,DefaultAuditBackend
,MemAuditBackend
,MongoDBAuditBackend
,OpenSearchAuditBackend
,SQLAuditBackend
Deprecated, for removal: This API element is subject to removal in a future version.
Interface for adding audit logs.
- Author:
- tiry
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLogEntries
(List<L> entries) Deprecated, for removal: This API element is subject to removal in a future version.Adds given log entries.boolean
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useorg.nuxeo.ecm.platform.audit.service.AuditService#await(Duration)
insteadbuildEntryFromEvent
(Event event) Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useorg.nuxeo.ecm.platform.audit.service.AuditService#buildEntryFromEvent()
insteadDeprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useorg.nuxeo.ecm.platform.audit.service.AuditService#getAuditableEventNames()
insteadnewExtendedInfo
(Serializable value) Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useLogEntryBuilder.extended(String, Object)
insteadDeprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useLogEntry.builder()
instead
-
Method Details
-
getAuditableEventNames
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useorg.nuxeo.ecm.platform.audit.service.AuditService#getAuditableEventNames()
insteadReturns the list of auditable event names.- Returns:
- a set of String representing event names.
-
newLogEntry
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useLogEntry.builder()
insteadCreate a new LogEntry instance. -
newExtendedInfo
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useLogEntryBuilder.extended(String, Object)
insteadCreate a new ExtendedInfo instance -
addLogEntries
Deprecated, for removal: This API element is subject to removal in a future version.Adds given log entries.- Parameters:
entries
- the list of log entries.
-
await
@Deprecated(since="2025.0", forRemoval=true) boolean await(long time, TimeUnit unit) throws InterruptedException Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useorg.nuxeo.ecm.platform.audit.service.AuditService#await(Duration)
instead- Throws:
InterruptedException
- Since:
- 8.2
-
buildEntryFromEvent
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useorg.nuxeo.ecm.platform.audit.service.AuditService#buildEntryFromEvent()
insteadReturns a log entry representation of an event.- Since:
- 9.3
-
AuditBackend
instead