Interface AuditTrailManager

    • Field Detail

      • LOG

        static final org.slf4j.Logger LOG
      • MAPPER

        static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
    • Method Detail

      • toJson

        static java.lang.String toJson​(java.lang.Object arg)
      • record

        void record​(AuditActionContext auditActionContext)
        Make an audit trail record. Implementations could use any type of back end medium to serialize audit trail data i.e. RDBMS, log file, IO stream, SMTP, JMS queue or what ever else imaginable.

        This concept is somewhat similar to log4j Appender.

        Parameters:
        auditActionContext - the audit action context
      • getAuditRecordsSince

        java.util.Set<? extends AuditActionContext> getAuditRecordsSince​(java.time.LocalDate sinceDate)
        Gets audit records since.
        Parameters:
        sinceDate - the since date
        Returns:
        the audit records since
      • removeAll

        void removeAll()
        Remove all.
      • clean

        default void clean()
        Specified by:
        clean in interface org.apereo.inspektr.common.Cleanable