java.lang.Object
com.inductiveautomation.ignition.gateway.audit.AuditContext

public final class AuditContext extends Object
  • Field Details

  • Method Details

    • unknown

      public static Supplier<AuditContext> unknown(int scope)
      Convenience method to create a new unknown AuditContext with the given ApplicationScope.
      Parameters:
      scope - The application scope.
      Returns:
      The Supplier of the AuditContext.
    • getActor

      public @NonNull String getActor()
    • getHost

      public @NonNull String getHost()
    • getScope

      public int getScope()
    • getPath

      public @NonNull QualifiedPath getPath()
    • getTimestamp

      public @NonNull Date getTimestamp()
    • getStatusCode

      public int getStatusCode()
    • toRecordBuilder

      public AuditRecordBuilder toRecordBuilder()
      Pull fields from this AuditContext into a new AuditRecordBuilder instance, which should then be supplied with (at minimum) an action, target, and value. Project specific, or otherwise more 'narrow' systems, should also extend the QualifiedPath available on this AuditContext, to provide more specific context; see also WellKnownPathTypes for inspiration.
    • toContextBuilder

      public AuditContext.Builder toContextBuilder()
      Returns:
      a new AuditContext.Builder with all fields set to this context's fields