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
      • getAuditRecords

        java.util.Set<? extends AuditActionContext> getAuditRecords​(java.util.Map<AuditTrailManager.WhereClauseFields,​java.lang.Object> whereClause)
        Gets audit records since.
        Parameters:
        whereClause - the where clause
        Returns:
        the audit records since
      • removeAll

        default void removeAll()
        Remove all.
      • clean

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