Class DefaultAuditRecord

java.lang.Object
com.inductiveautomation.ignition.gateway.audit.DefaultAuditRecord
All Implemented Interfaces:
AuditRecord, Serializable

public class DefaultAuditRecord extends Object implements AuditRecord
A simple immutable implementation of AuditRecord
See Also:
  • Constructor Details

    • DefaultAuditRecord

      public DefaultAuditRecord(AuditAction action, String actionTarget, String actionValue, String actor, String actorHost, int originatingContext, String originatingSystem)
      Uses a GOOD status code and the current timestamp
    • DefaultAuditRecord

      public DefaultAuditRecord(String action, String actionTarget, String actionValue, String actor, String actorHost, int originatingContext, String originatingSystem, int statusCode, Date timestamp)
  • Method Details

    • getAction

      public String getAction()
      Description copied from interface: AuditRecord
      A description of the action. Examples: "tag write", "tag delete", "tag edit", " query update", " login", "logout" "project save"
      Specified by:
      getAction in interface AuditRecord
    • getActionTarget

      public String getActionTarget()
      Description copied from interface: AuditRecord
      The target of the action.
      Specified by:
      getActionTarget in interface AuditRecord
    • getActionValue

      public String getActionValue()
      Description copied from interface: AuditRecord
      The value of the action. Might not be present for all action types
      Specified by:
      getActionValue in interface AuditRecord
    • getActor

      public String getActor()
      Description copied from interface: AuditRecord
      Who performed the event. Should be a username or appropriate system equivalent if the event was performed automatically by a program
      Specified by:
      getActor in interface AuditRecord
    • getActorHost

      public String getActorHost()
      Description copied from interface: AuditRecord
      Where the actor was when the action was performed. Should be an IP address or a hostname of a computer
      Specified by:
      getActorHost in interface AuditRecord
    • getOriginatingContext

      public int getOriginatingContext()
      Description copied from interface: AuditRecord
      The ApplicationScope where this record was generated from
      Specified by:
      getOriginatingContext in interface AuditRecord
    • getOriginatingSystem

      public String getOriginatingSystem()
      Description copied from interface: AuditRecord
      A Description of the originating system for this record
      Specified by:
      getOriginatingSystem in interface AuditRecord
    • getStatusCode

      public int getStatusCode()
      Description copied from interface: AuditRecord
      The StatusCode that represents whether this action was successful or not.
      Specified by:
      getStatusCode in interface AuditRecord
    • getTimestamp

      public Date getTimestamp()
      Description copied from interface: AuditRecord
      The timestamp at which this record occured
      Specified by:
      getTimestamp in interface AuditRecord
    • toString

      public String toString()
      Overrides:
      toString in class Object