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 newAuditBackendinterface 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 NXAuditEventsServiceDeprecated, for removal: This API element is subject to removal in a future version.protected final AuditBackendDescriptorDeprecated, for removal: This API element is subject to removal in a future version.protected final ExpressionEvaluatorDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final org.apache.logging.log4j.LoggerDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated, for removal: This API element is subject to removal in a future version.protectedAbstractAuditBackend(NXAuditEventsService component, AuditBackendDescriptor config) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, 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 LogEntrydoCreateAndFillEntryFromDocument(DocumentModel doc, Principal principal) Deprecated, for removal: This API element is subject to removal in a future version.protected voiddoPutExtendedInfos(LogEntry entry, EventContext eventContext, DocumentModel source, Principal principal) Deprecated, for removal: This API element is subject to removal in a future version.protected longdoSyncNode(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 DocumentModelguardedDocument(CoreSession session, DocumentRef reference) Deprecated, for removal: This API element is subject to removal in a future version.protected DocumentModelListguardedDocumentChildren(CoreSession session, DocumentRef reference) Deprecated, for removal: This API element is subject to removal in a future version.protected booleanisAuditable(EventBundle eventBundle) Deprecated, for removal: This API element is subject to removal in a future version.abstract ExtendedInfonewExtendedInfo(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 voidpopulateExtendedInfo(LogEntry entry, DocumentModel source, ExpressionContext context, Collection<ExtendedInfoDescriptor> extInfos) Deprecated, for removal: This API element is subject to removal in a future version.voidrestore(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 givenAuditStorageprotected longsyncLogCreationEntries(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, waitMethods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditAdmin
getEventsCount, syncLogCreationEntriesMethods inherited from interface org.nuxeo.ecm.platform.audit.service.AuditBackend
getApplicationStartedOrder, onApplicationStarted, onApplicationStoppedMethods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditLogger
addLogEntriesMethods inherited from interface org.nuxeo.ecm.platform.audit.api.AuditReader
getLatestLogId, getLogEntriesAfter, getLogEntriesFor, getLogEntryByID, nativeQuery, nativeQuery, nativeQueryLogs, queryLogs, queryLogs, queryLogsByPage, queryLogsByPage, queryLogsByPage, queryLogsByPageMethods 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:AuditLoggerReturns the list of auditable event names.- Specified by:
getAuditableEventNamesin 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:AuditLoggerReturns a log entry representation of an event.- Specified by:
buildEntryFromEventin interfaceAuditLogger<L extends LogEntry>
-
newLogEntry
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AuditLoggerCreate a new LogEntry instance.- Specified by:
newLogEntryin interfaceAuditLogger<L extends LogEntry>
-
newExtendedInfo
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<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:
awaitin 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:AuditBackendRestore the backend from the givenAuditStorage- Specified by:
restorein interfaceAuditBackend<L extends LogEntry>- Parameters:
auditStorage- the audit storagebatchSize- the batch sizekeepAlive- the keep alive duration
-
AbstractAuditBackendinstead