Interface AppIssuesWithMailsScanResultDAO
- All Known Implementing Classes:
AppIssuesWithMailsScanResultDAOHibernate
public interface AppIssuesWithMailsScanResultDAO
Manages persistence of
AppIssuesWithMailScanResultEntity
.-
Method Summary
Modifier and TypeMethodDescriptiongetLatestResult
(long appId) Gets latest scan result for a given application.void
persistLatestResult
(AppIssuesWithMailScanResultEntity appIssuesWithMailScanResultEntity) Persists scan result for a given application.void
removeLatestResultIfPresent
(long appId) Removes latest scan result for a given application.
-
Method Details
-
persistLatestResult
Persists scan result for a given application. Overrides old scan result for given app if exists.- Parameters:
appIssuesWithMailScanResultEntity
- scan result entity
-
getLatestResult
Gets latest scan result for a given application.- Parameters:
appId
- application ID- Returns:
- optional containing scan results or empty optional if no scan results found
-
removeLatestResultIfPresent
void removeLatestResultIfPresent(long appId) Removes latest scan result for a given application. Does nothing when there is no scan result present.- Parameters:
appId
- application ID
-