public class NXAuditEventsService extends DefaultComponent
Modifier and Type | Field and Description |
---|---|
protected AuditBackend |
backend |
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, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
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
public NXAuditEventsService()
public void applicationStarted(ComponentContext context)
Component
applicationStarted
in interface Component
applicationStarted
in class DefaultComponent
public void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextprotected void doRegisterAdapter(AdapterDescriptor desc)
protected void doRegisterBackend(AuditBackendDescriptor 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 © 2015 Nuxeo SA. All rights reserved.