Class AuditContext


  • public final class AuditContext
    extends java.lang.Object
    • Field Detail

      • UNKNOWN

        public static final java.util.function.Supplier<AuditContext> UNKNOWN
    • Method Detail

      • getActor

        @Nonnull
        public java.lang.String getActor()
      • getHost

        @Nonnull
        public java.lang.String getHost()
      • getScope

        public int getScope()
      • getTimestamp

        @Nonnull
        public java.util.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.