public class NXAuditEventsService extends DefaultComponent
Modifier and Type | Field and Description |
---|---|
protected AuditBackend |
backend |
protected AuditBackendDescriptor |
backendConfig |
protected AuditBulker |
bulker |
protected AuditBulkerDescriptor |
bulkerConfig |
static String |
DISABLE_AUDIT_LOGGER
If passed as true on the event properties, event not logged
|
protected Set<AdapterDescriptor> |
documentAdapters |
protected Map<String,List<ExtendedInfoDescriptor>> |
eventExtendedInfoDescriptors |
protected Set<String> |
eventNames |
protected Set<ExtendedInfoDescriptor> |
extendedInfoDescriptors |
protected static org.apache.commons.logging.Log |
log |
static ComponentName |
NAME |
lastModified
Constructor and Description |
---|
NXAuditEventsService() |
activate, deactivate, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted
public static final ComponentName NAME
public static final String DISABLE_AUDIT_LOGGER
protected static final org.apache.commons.logging.Log log
protected final Set<ExtendedInfoDescriptor> extendedInfoDescriptors
protected final Map<String,List<ExtendedInfoDescriptor>> eventExtendedInfoDescriptors
protected final Set<AdapterDescriptor> documentAdapters
protected final Set<String> eventNames
protected AuditBackend backend
protected AuditBackendDescriptor backendConfig
protected AuditBulker bulker
protected AuditBulkerDescriptor bulkerConfig
public NXAuditEventsService()
public int getApplicationStartedOrder()
Component
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext)
.
Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
public void start(ComponentContext context)
Component
start
in interface Component
start
in class DefaultComponent
public void stop(ComponentContext context)
Component
stop
in interface Component
stop
in class DefaultComponent
protected void doRegisterAdapter(AdapterDescriptor desc)
protected void doRegisterEvent(EventDescriptor desc)
protected void doRegisterExtendedInfo(ExtendedInfoDescriptor desc)
protected void doUnregisterAdapter(AdapterDescriptor desc)
protected void doUnregisterEvent(EventDescriptor desc)
protected void doUnregisterExtendedInfo(ExtendedInfoDescriptor desc)
public <T> T getAdapter(Class<T> adapter)
Adaptable
null
if no such object can be found.getAdapter
in interface Adaptable
getAdapter
in class DefaultComponent
adapter
- the adapter class to look upnull
if this object does not have an adapter for
the given classpublic Set<String> getAuditableEventNames()
public AuditBackend getBackend()
public Set<AdapterDescriptor> getDocumentAdapters()
public Map<String,List<ExtendedInfoDescriptor>> getEventExtendedInfoDescriptors()
public Set<ExtendedInfoDescriptor> getExtendedInfoDescriptors()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
Copyright © 2017 Nuxeo. All rights reserved.