Class AppMailIssuesScanner
java.lang.Object
com.atlassian.crowd.manager.emailscan.scanner.AppMailIssuesScanner
-
Constructor Summary
ConstructorDescriptionAppMailIssuesScanner
(com.atlassian.crowd.manager.emailscan.scanner.AppIssuesWithMailsValidator appIssuesWithMailsValidator, AppIssuesWithMailsScanResultDAO appIssuesWithMailsScanResultDAO, Clock clock) -
Method Summary
Modifier and TypeMethodDescriptiongetLastScanResult
(long appId) runScan
(long appId) Runs emails scan for a given application.
-
Constructor Details
-
AppMailIssuesScanner
public AppMailIssuesScanner(com.atlassian.crowd.manager.emailscan.scanner.AppIssuesWithMailsValidator appIssuesWithMailsValidator, AppIssuesWithMailsScanResultDAO appIssuesWithMailsScanResultDAO, Clock clock)
-
-
Method Details
-
runScan
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
-