Package org.craftercms.studio.api.v2.dal
Interface AuditDAO
public interface AuditDAO
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAuditLogForSite
(long siteId) Delete audit log for sitegetAuditDashboard
(Map params) Get records for audit dashboard contentint
getAuditDashboardTotal
(Map params) Get total number of records for audit dashboardgetAuditLog
(Map params) getAuditLogEntry
(Map params) getAuditLogForSite
(Map params) int
getAuditLogForSiteTotal
(Map params) int
getAuditLogTotal
(Map params) getCommitAuthor
(String commitId, String path) Gets the author of a commit.int
insertAuditLog
(AuditLog auditLog) void
insertAuditLogParams
(Map params) selectUserFeedEntries
(Map params) selectUserFeedEntriesHideLive
(Map params)
-
Method Details
-
getAuditLogForSite
-
getAuditLogForSiteTotal
-
getAuditLog
-
getAuditLogTotal
-
getAuditLogEntry
-
insertAuditLog
-
insertAuditLogParams
-
selectUserFeedEntriesHideLive
-
selectUserFeedEntries
-
getAuditDashboardTotal
Get total number of records for audit dashboard- Parameters:
params
- SQL query parameters- Returns:
- total number of records
-
getAuditDashboard
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
Gets the author of a commit. This will retrieve aPerson
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 idpath
- the path (to match primary_target_value)- Returns:
- the
Person
author or the commit, if found, null otherwise.
-