Class AuditEventHandlerBase

    • Field Detail

      • eventTopicsMetaData

        protected final EventTopicsMetaData eventTopicsMetaData
        The event topic meta data for the handler.
    • Constructor Detail

      • AuditEventHandlerBase

        protected AuditEventHandlerBase​(String name,
                                        EventTopicsMetaData eventTopicsMetaData,
                                        Set<String> acceptedTopics,
                                        boolean enabled)
        Create a new AuditEventHandler instance.
        Parameters:
        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.
    • Method Detail

      • getHandledTopics

        public Set<String> getHandledTopics()
        Description copied from interface: AuditEventHandler
        Gets the names of all audit event topics this handler is registered against.
        Specified by:
        getHandledTopics in interface AuditEventHandler
        Returns:
        the names of all topics handled by this object.
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: AuditEventHandler
        Checks if the audit event handler is enabled.
        Specified by:
        isEnabled in interface AuditEventHandler
        Returns:
        whether or not the audit event handler is enabled
      • handleAction

        public Promise<ActionResponse,​ResourceException> handleAction​(org.forgerock.services.context.Context context,
                                                                            String topic,
                                                                            ActionRequest request)
        Description copied from interface: AuditEventHandler
        Performs an action.
        Specified by:
        handleAction in interface AuditEventHandler
        Parameters:
        context - The context chain that initiated the event.
        topic - The topic on which action is performed.
        request - The request with the action.
        Returns:
        a promise with either a response or an exception