Class AuditEventTopicState

java.lang.Object
org.forgerock.audit.events.handlers.AuditEventTopicState

public final class AuditEventTopicState extends Object
Stores the state of the details sent to AuditEventHandler.publishEvent(Context, String, JsonValue). The state contains the context, topic, and event content.
  • Constructor Details

    • AuditEventTopicState

      public AuditEventTopicState(org.forgerock.services.context.Context context, String topic, JsonValue event)
      Creates a (topic,event) pair.
      Parameters:
      context - The context that triggered the audit event.
      topic - The topic.
      event - The event content.
  • Method Details

    • getTopic

      public String getTopic()
      Returns the topic of the event.
      Returns:
      the topic
    • getEvent

      public JsonValue getEvent()
      Returns the event content.
      Returns:
      the event
    • getContext

      public org.forgerock.services.context.Context getContext()
      Returns the context that triggered the event.
      Returns:
      the context
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object