Interface ConfigurationCheck
- All Known Implementing Classes:
AttachmentDirectoryChecker
,BackupChecker
,CrowdApplicationCheck
,DashboardConfigurationCheck
,IndexDirectoryChecker
,MailChecker
,PlaintextEncoderChecker
,ServiceChecker
public interface ConfigurationCheck
Interface for objects that wish to check the correctness of some JIRA xml.
- Since:
- v4.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncheckConfiguration
(JiraConfig config, CheckOptions options) Check the correctness of the passed JIRA XML.void
fixConfiguration
(JiraConfig config, CheckOptions options) Fix the passed JIRA configuration and remove any errors.
-
Method Details
-
checkConfiguration
Check the correctness of the passed JIRA XML. It must be possible to call this method multiple times with different agruments (i.e. the object should be stateless).- Parameters:
config
- the configuration to check.options
- the context for the check. This is where errors can be reported.- Returns:
- the errors that were found in the passed configuration file.
-
fixConfiguration
Fix the passed JIRA configuration and remove any errors.- Parameters:
config
- the configuration to check.options
- the context for the check. This can be used to see what checks are currently enabled for the passed configuration.
-