Interface AuditModelRegistry

  • All Known Implementing Classes:
    AuditModelRegistryImpl

    public interface AuditModelRegistry
    Interface for component used to store audit model definitions.
    Since:
    3.3
    Author:
    Derek Hulley
    • Method Detail

      • loadAuditModels

        void loadAuditModels()
        Method to load audit models into memory. This method is also responsible for persisting the audit models for later retrieval.

        Note, the models are loaded in a new transaction, so this method can be called by any code at any time.

      • isAuditEnabled

        boolean isAuditEnabled()
        Determines whether audit is globally enabled or disabled.
        Returns:
        true if audit is enabled
      • getAuditApplications

        Map<String,​AuditApplication> getAuditApplications()
        Get a map of all audit applications key by name
        Returns:
        the audit applications
        Since:
        3.4
      • getAuditApplicationByKey

        AuditApplication getAuditApplicationByKey​(String key)
        Get the application model for the given root key (as defined on the application)
        Parameters:
        key - the key defined on the application
        Returns:
        the java model (null if not found)
      • getAuditApplicationByName

        AuditApplication getAuditApplicationByName​(String applicationName)
        Get the application model for the given application name
        Parameters:
        applicationName - the name of the audited application
        Returns:
        the java model (null if not found)
      • getAuditPathMapper

        PathMapper getAuditPathMapper()
        Get the path mapper.
        Returns:
        the path mapper