java.lang.Object
com.inductiveautomation.ignition.common.util.AuditStatus
All Implemented Interfaces:
Serializable

public class AuditStatus extends Object implements Serializable
Some stuff used to rely on StatusCode#getRawValue() and StatusCode#toString(), but now StatusCode isn't available for use. This is basically a copy of StatusCode so we don't fuck up backwards compatibility somehow.
See Also:
  • Field Details

    • GOOD

      public static final AuditStatus GOOD
    • UNCERTAIN

      public static final AuditStatus UNCERTAIN
    • BAD

      public static final AuditStatus BAD
    • BAD_SECURITY_CHECKS_FAILED

      public static final AuditStatus BAD_SECURITY_CHECKS_FAILED
    • BAD_INTERNAL_ERROR

      public static final AuditStatus BAD_INTERNAL_ERROR
    • BAD_DEMO_EXPIRED

      public static final AuditStatus BAD_DEMO_EXPIRED
    • STRUCTURE_CHANGED_MASK

      public static final int STRUCTURE_CHANGED_MASK
      See Also:
    • SEMANTICS_CHANGED_MASK

      public static final int SEMANTICS_CHANGED_MASK
      See Also:
    • value

      protected int value
  • Constructor Details

  • Method Details

    • hashCode

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

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

      public AuditStatus.Severity getSeverity()
    • isGood

      public boolean isGood()
    • getRawSubCode

      public short getRawSubCode()
    • getSubCode

      public AuditStatus.SubCode getSubCode()
    • isStructureChanged

      public boolean isStructureChanged()
    • isSemanticsChanged

      public boolean isSemanticsChanged()
    • getInfoType

      public AuditStatus.InfoType getInfoType()
    • getInfoBits

      public short getInfoBits()
      Returns the InfoBits of the StatusCode (bits 0:9). The structure of these bits depends on the InfoType
    • getRawValue

      public int getRawValue()
    • worstOf

      public static AuditStatus worstOf(AuditStatus q1, AuditStatus q2)
      Returns the 'worst' or 'most severe' of the two qualities.
    • worstOfAll

      public static AuditStatus worstOfAll(AuditStatus... q)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getName

      public String getName()