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

public final class AuditContext extends Object
  • Field Details

  • Method Details

    • getActor

      @Nonnull public String getActor()
    • getHost

      @Nonnull public String getHost()
    • getScope

      public int getScope()
    • getPath

      @Nonnull public QualifiedPath getPath()
    • getTimestamp

      @Nonnull public 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