Package org.nuxeo.audit.mongodb
Class MongoDBAuditBackendFactory
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.audit.mongodb.MongoDBAuditBackendFactory
- All Implemented Interfaces:
AuditBackendFactory<MongoDBAuditBackend>
,Adaptable
,Component
,Extensible
,TimestampedService
public class MongoDBAuditBackendFactory
extends DefaultComponent
implements AuditBackendFactory<MongoDBAuditBackend>
- Since:
- 2025.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map
<String, MongoDBAuditBackend> protected static final String
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAuditBackend
(String name) instantiateBackend
(MongoDBAuditBackendDescriptor descriptor) void
start
(ComponentContext context) Start the component.void
stop
(ComponentContext context) Stop the component.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtension
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.AuditBackendFactory
getApplicationStartedOrder
Methods inherited from interface org.nuxeo.runtime.model.Component
activate, deactivate, setName
Methods inherited from interface org.nuxeo.runtime.model.Extensible
registerExtension, unregisterExtension
Methods inherited from interface org.nuxeo.runtime.service.TimestampedService
getLastModified, setLastModified
-
Field Details
-
XP_BACKEND
- See Also:
-
backends
-
-
Constructor Details
-
MongoDBAuditBackendFactory
public MongoDBAuditBackendFactory()
-
-
Method Details
-
start
Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
instantiateBackend
protected MongoDBAuditBackendFactory.MongoDBAuditBackendWithName instantiateBackend(MongoDBAuditBackendDescriptor descriptor) -
stop
Description copied from interface:Component
Stop the component.- Specified by:
stop
in interfaceComponent
- Overrides:
stop
in classDefaultComponent
-
getAuditBackend
- Specified by:
getAuditBackend
in interfaceAuditBackendFactory<MongoDBAuditBackend>
- Returns:
- the
AuditBackend
with the givenname
-