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