Package org.craftercms.studio.api.v2.dal
Interface AuditDAO
public interface AuditDAO
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAuditLogForSite
(long siteId) Delete audit log for sitegetAuditLog
(Map params) getAuditLogEntry
(Map params) int
getAuditLogTotal
(Map params) getCommitAuthors
(long siteId, List<String> commitIds, String path) Gets commit authors from a list of commit ids.int
insertAuditLog
(AuditLog auditLog) void
insertAuditLogParams
(Map params) boolean
Checks if a commit has been audited.selectUserFeedEntries
(Map params) selectUserFeedEntriesHideLive
(Map params)
-
Method Details
-
getAuditLog
-
getAuditLogTotal
-
getAuditLogEntry
-
insertAuditLog
-
insertAuditLogParams
-
selectUserFeedEntriesHideLive
-
selectUserFeedEntries
-
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 aCommitAuthor
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 idcommitIds
- the commit idspath
- the path (to match primary_target_value)- Returns:
- the List of
CommitAuthor
if found
-
isAudited
Checks if a commit has been audited.- Parameters:
siteId
- site idcommitId
- commit id- Returns:
- true if an entry exists in audit table for the given commit id, false otherwise.
-