Class AuditUtils

java.lang.Object
org.forgerock.openig.tools.notifications.AuditUtils

public final class AuditUtils extends Object
Utility class.
  • Method Details

    • notificationAuditor

      public static NotificationAuditor notificationAuditor(AuditService auditService, boolean auditIgnoredNotifications, Clock clock)
      Create an implementation of the NotificationAuditor to use to audit notifications. If the audit service is not running or is not auditing notifications, the result will be a no-op implementation.
      Parameters:
      auditService - the AuditService to use
      auditIgnoredNotifications - when true (and auditing is enabled), all notifications will be audited, even if they do not trigger a change in state.
      clock - the Clock to use when generating audit events
      Returns:
      an implementation of the NotificationAuditor to use to audit notifications
    • notificationsAuditSchema

      public static Map<String,JsonValue> notificationsAuditSchema()
      Return a Map that represents the JSON schema for the notifications audit event.
      Returns:
      a Map that represents the JSON schema for the notifications audit event