Interface AppIssuesWithMailsScanResultDAO

All Known Implementing Classes:
AppIssuesWithMailsScanResultDAOHibernate

public interface AppIssuesWithMailsScanResultDAO
Manages persistence of AppIssuesWithMailScanResultEntity.
  • Method Details

    • persistLatestResult

      void persistLatestResult(AppIssuesWithMailScanResultEntity appIssuesWithMailScanResultEntity)
      Persists scan result for a given application. Overrides old scan result for given app if exists.
      Parameters:
      appIssuesWithMailScanResultEntity - scan result entity
    • getLatestResult

      Optional<AppIssuesWithMailScanResultEntity> getLatestResult(long appId)
      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