Class AuditUtils
java.lang.Object
org.forgerock.openig.tools.notifications.AuditUtils
Utility class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic NotificationAuditornotificationAuditor(AuditService auditService, boolean auditIgnoredNotifications, Clock clock, org.forgerock.openig.tracing.TracingProvider tracingProvider) Create an implementation of theNotificationAuditorto use to audit notifications.Return aMapthat represents the JSON schema for the notifications audit event.
-
Method Details
-
notificationAuditor
public static NotificationAuditor notificationAuditor(AuditService auditService, boolean auditIgnoredNotifications, Clock clock, org.forgerock.openig.tracing.TracingProvider tracingProvider) Create an implementation of theNotificationAuditorto 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- theAuditServiceto useauditIgnoredNotifications- when true (and auditing is enabled), all notifications will be audited, even if they do not trigger a change in state.clock- theClockto use when generating audit eventstracingProvider- theTracingProviderto use to create a tracing context for the audit event- Returns:
- an implementation of the
NotificationAuditorto use to audit notifications
-
notificationsAuditSchema
Return aMapthat represents the JSON schema for the notifications audit event.- Returns:
- a
Mapthat represents the JSON schema for the notifications audit event
-