Class AbstractAuditBackend<L extends LogEntry>
java.lang.Object
org.nuxeo.ecm.platform.audit.service.AbstractAuditBackend<L>
- Type Parameters:
L
- to give the log entry type for the newAuditBackend
interface that defines a new entry type.
- All Implemented Interfaces:
AuditAdmin
,AuditLogger<L>
,AuditReader<L>
,AuditStorage
,Logs<L>
,AuditBackend<L>
- Direct Known Subclasses:
AbstractAuditBackend
,DefaultAuditBackend
@Deprecated(since="2025.0",
forRemoval=true)
public abstract class AbstractAuditBackend<L extends LogEntry>
extends Object
implements AuditBackend<L>, AuditStorage
Deprecated, for removal: This API element is subject to removal in a future version.
Abstract class to share code between
AuditBackend
implementations- Author:
- tiry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final NXAuditEventsService
Deprecated, for removal: This API element is subject to removal in a future version.protected final AuditBackendDescriptor
Deprecated, for removal: This API element is subject to removal in a future version.protected final ExpressionEvaluator
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.protected static final org.apache.logging.log4j.Logger
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Deprecated, for removal: This API element is subject to removal in a future version.protected
AbstractAuditBackend
(NXAuditEventsService component, AuditBackendDescriptor config) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated, for removal: This API element is subject to removal in a future version.buildEntryFromEvent
(Event event) Deprecated, for removal: This API element is subject to removal in a future version.Returns a log entry representation of an event.protected LogEntry
doCreateAndFillEntryFromDocument
(DocumentModel doc, Principal principal) Deprecated, for removal: This API element is subject to removal in a future version.protected void
doPutExtendedInfos
(LogEntry entry, EventContext eventContext, DocumentModel source, Principal principal) Deprecated, for removal: This API element is subject to removal in a future version.protected long
doSyncNode
(BaseLogEntryProvider provider, CoreSession session, DocumentModel node, boolean recurs) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns the list of auditable event names.protected DocumentModel
guardedDocument
(CoreSession session, DocumentRef reference) Deprecated, for removal: This API element is subject to removal in a future version.protected DocumentModelList
guardedDocumentChildren
(CoreSession session, DocumentRef reference) Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
isAuditable
(EventBundle eventBundle) Deprecated, for removal: This API element is subject to removal in a future version.abstract ExtendedInfo
newExtendedInfo
(Serializable value) Deprecated, for removal: This API element is subject to removal in a future version.Create a new ExtendedInfo instanceDeprecated, for removal: This API element is subject to removal in a future version.Create a new LogEntry instance.protected void
populateExtendedInfo
(LogEntry entry, DocumentModel source, ExpressionContext context, Collection<ExtendedInfoDescriptor> extInfos) Deprecated, for removal: This API element is subject to removal in a future version.void
restore
(AuditStorage auditStorage, int batchSize, int keepAlive) Deprecated, for removal: This API element is subject to removal in a future version.Restore the backend from the givenAuditStorage
protected long
syncLogCreationEntries
(BaseLogEntryProvider provider, String repoId, String path, Boolean recurs) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditAdmin
getEventsCount, syncLogCreationEntries
Methods inherited from interface org.nuxeo.ecm.platform.audit.service.AuditBackend
getApplicationStartedOrder, onApplicationStarted, onApplicationStopped
Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditLogger
addLogEntries
Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditReader
getLatestLogId, getLogEntriesAfter, getLogEntriesFor, getLogEntryByID, nativeQuery, nativeQuery, nativeQueryLogs, queryLogs, queryLogs, queryLogsByPage, queryLogsByPage, queryLogsByPage, queryLogsByPage
Methods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditStorage
append, scroll, scroll
-
Field Details
-
log
protected static final org.apache.logging.log4j.Logger logDeprecated, for removal: This API element is subject to removal in a future version. -
FORCE_AUDIT_FACET
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
component
Deprecated, for removal: This API element is subject to removal in a future version. -
config
Deprecated, for removal: This API element is subject to removal in a future version. -
expressionEvaluator
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
AbstractAuditBackend
Deprecated, for removal: This API element is subject to removal in a future version. -
AbstractAuditBackend
protected AbstractAuditBackend()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
guardedDocument
Deprecated, for removal: This API element is subject to removal in a future version. -
guardedDocumentChildren
Deprecated, for removal: This API element is subject to removal in a future version. -
doCreateAndFillEntryFromDocument
Deprecated, for removal: This API element is subject to removal in a future version. -
doPutExtendedInfos
protected void doPutExtendedInfos(LogEntry entry, EventContext eventContext, DocumentModel source, Principal principal) Deprecated, for removal: This API element is subject to removal in a future version. -
populateExtendedInfo
protected void populateExtendedInfo(LogEntry entry, DocumentModel source, ExpressionContext context, Collection<ExtendedInfoDescriptor> extInfos) Deprecated, for removal: This API element is subject to removal in a future version.- Since:
- 7.4
-
getAuditableEventNames
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AuditLogger
Returns the list of auditable event names.- Specified by:
getAuditableEventNames
in interfaceAuditLogger<L extends LogEntry>
- Returns:
- a set of String representing event names.
-
buildEntryFromEvent
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AuditLogger
Returns a log entry representation of an event.- Specified by:
buildEntryFromEvent
in interfaceAuditLogger<L extends LogEntry>
-
newLogEntry
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AuditLogger
Create a new LogEntry instance.- Specified by:
newLogEntry
in interfaceAuditLogger<L extends LogEntry>
-
newExtendedInfo
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<L extends LogEntry>
-
syncLogCreationEntries
protected long syncLogCreationEntries(BaseLogEntryProvider provider, String repoId, String path, Boolean recurs) Deprecated, for removal: This API element is subject to removal in a future version. -
doSyncNode
protected long doSyncNode(BaseLogEntryProvider provider, CoreSession session, DocumentModel node, boolean recurs) Deprecated, for removal: This API element is subject to removal in a future version. -
isAuditable
Deprecated, for removal: This API element is subject to removal in a future version. -
await
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
await
in interfaceAuditLogger<L extends LogEntry>
- Throws:
InterruptedException
-
restore
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AuditBackend
Restore the backend from the givenAuditStorage
- Specified by:
restore
in interfaceAuditBackend<L extends LogEntry>
- Parameters:
auditStorage
- the audit storagebatchSize
- the batch sizekeepAlive
- the keep alive duration
-
AbstractAuditBackend
instead