Class AppMailIssuesScanner

java.lang.Object
com.atlassian.crowd.manager.emailscan.scanner.AppMailIssuesScanner

public class AppMailIssuesScanner extends Object
  • Constructor Details

    • AppMailIssuesScanner

      public AppMailIssuesScanner(com.atlassian.crowd.manager.emailscan.scanner.AppIssuesWithMailsValidator appIssuesWithMailsValidator, AppIssuesWithMailsScanResultDAO appIssuesWithMailsScanResultDAO, Clock clock)
  • Method Details

    • runScan

      @Transactional public ValidationResult runScan(long appId) throws ApplicationNotFoundException
      Runs emails scan for a given application. Scan counts invalid emails and duplicates within users that belong to an application. Latest result of the scan is persisted in DB.
      Parameters:
      appId - application ID for which scan will be run
      Throws:
      ApplicationNotFoundException - when application with provided ID does not exist
    • getLastScanResult

      public Optional<ValidationResult> getLastScanResult(long appId)