Interface AuditDAO


public interface AuditDAO
  • Method Details

    • getAuditLogForSite

      List<AuditLog> getAuditLogForSite(Map params)
    • getAuditLogForSiteTotal

      int getAuditLogForSiteTotal(Map params)
    • getAuditLog

      List<AuditLog> getAuditLog(Map params)
    • getAuditLogTotal

      int getAuditLogTotal(Map params)
    • getAuditLogEntry

      AuditLog getAuditLogEntry(Map params)
    • insertAuditLog

      int insertAuditLog(AuditLog auditLog)
    • insertAuditLogParams

      void insertAuditLogParams(Map params)
    • selectUserFeedEntriesHideLive

      List<AuditLog> selectUserFeedEntriesHideLive(Map params)
    • selectUserFeedEntries

      List<AuditLog> selectUserFeedEntries(Map params)
    • getAuditDashboardTotal

      int getAuditDashboardTotal(Map params)
      Get total number of records for audit dashboard
      Parameters:
      params - SQL query parameters
      Returns:
      total number of records
    • getAuditDashboard

      List<AuditLog> getAuditDashboard(Map params)
      Get records for audit dashboard content
      Parameters:
      params - SQL query parameters
      Returns:
      records for audit dashboard
    • deleteAuditLogForSite

      void deleteAuditLogForSite(@Param("siteId") long siteId)
      Delete audit log for site
      Parameters:
      siteId - site id
    • getCommitAuthor

      Person getCommitAuthor(@Param("commitId") String commitId, @Param("path") String path)
      Gets the author of a commit. This will retrieve a Person object from the database when the commit was created by Studio, meaning the following conditions are met:
      • There is an audit entry for the given commit id
      • AND the audit entry origin is API
      • AND the audit entry primary_target_value is the given path
      Parameters:
      commitId - the commit id
      path - the path (to match primary_target_value)
      Returns:
      the Person author or the commit, if found, null otherwise.