public abstract class AuditEventHandlerBase extends Object implements AuditEventHandler
Modifier and Type | Field and Description |
---|---|
protected EventTopicsMetaData |
eventTopicsMetaData
The event topic meta data for the handler.
|
Modifier | Constructor and Description |
---|---|
protected |
AuditEventHandlerBase(String name,
EventTopicsMetaData eventTopicsMetaData,
Set<String> acceptedTopics,
boolean enabled)
Create a new AuditEventHandler instance.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getHandledTopics()
Gets the names of all audit event topics this handler is registered against.
|
String |
getName()
Gets the name of this audit event handler.
|
Promise<ActionResponse,ResourceException> |
handleAction(Context context,
String topic,
ActionRequest request)
Performs an action.
|
boolean |
isEnabled()
Checks if the audit event handler is enabled.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
publishEvent, queryEvents, readEvent, shutdown, startup
protected final EventTopicsMetaData eventTopicsMetaData
protected AuditEventHandlerBase(String name, EventTopicsMetaData eventTopicsMetaData, Set<String> acceptedTopics, boolean enabled)
name
- The name of this AuditEventHandler.eventTopicsMetaData
- Provides meta-data describing the audit event topics this AuditEventHandler may have to handle.acceptedTopics
- Audit event topics the AuditEventHandler will handle.enabled
- Whether or not the audit event handler is enabled.public String getName()
AuditEventHandler
getName
in interface AuditEventHandler
public Set<String> getHandledTopics()
AuditEventHandler
getHandledTopics
in interface AuditEventHandler
public boolean isEnabled()
AuditEventHandler
isEnabled
in interface AuditEventHandler
public Promise<ActionResponse,ResourceException> handleAction(Context context, String topic, ActionRequest request)
AuditEventHandler
handleAction
in interface AuditEventHandler
context
- The context chain that initiated the event.topic
- The topic on which action is performed.request
- The request with the action.Copyright 2011-2017 ForgeRock AS.