Interface AuditDAO


public interface AuditDAO
  • Method Details

    • 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)
    • deleteAuditLogForSite

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

      List<CommitAuthor> getCommitAuthors(@Param("siteId") long siteId, @Param("commitIds") List<String> commitIds, @Param("path") String path)
      Gets commit authors from a list of commit ids. This will retrieve a CommitAuthor 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:
      siteId - site id
      commitIds - the commit ids
      path - the path (to match primary_target_value)
      Returns:
      the List of CommitAuthor if found
    • isAudited

      boolean isAudited(@Param("siteId") long siteId, @Param("commitId") String commitId)
      Checks if a commit has been audited.
      Parameters:
      siteId - site id
      commitId - commit id
      Returns:
      true if an entry exists in audit table for the given commit id, false otherwise.