Class DashboardConfigurationCheck
java.lang.Object
com.atlassian.jira.functest.config.dashboard.DashboardConfigurationCheck
- All Implemented Interfaces:
ConfigurationCheck
Configuration check that ensures dashboard configuration is clean and consistent.
- Since:
- v4.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.config.ConfigurationCheck
ConfigurationCheck.Result -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCheck to see if there are any gadets with absolute URLs are defined.static final StringCheck to see if there are non-system dashboards.static final StringCheck to see if there are any external gadgets defined.static final StringCheck to see if there are gadgets on the dashboards. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckConfiguration(JiraConfig config, CheckOptions options) Check the correctness of the passed JIRA XML.voidfixConfiguration(JiraConfig config, CheckOptions options) Fix the passed JIRA configuration and remove any errors.
-
Field Details
-
CHECKID_DASHBOARDS
Check to see if there are non-system dashboards.- See Also:
-
CHECKID_GADGETS
Check to see if there are gadgets on the dashboards.- See Also:
-
CHECKID_EXTERNAL
Check to see if there are any external gadgets defined.- See Also:
-
CHECKID_ABSOLUTE
Check to see if there are any gadets with absolute URLs are defined.- See Also:
-
-
Constructor Details
-
DashboardConfigurationCheck
public DashboardConfigurationCheck()
-
-
Method Details
-
checkConfiguration
Description copied from interface:ConfigurationCheckCheck 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).- Specified by:
checkConfigurationin interfaceConfigurationCheck- 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
Description copied from interface:ConfigurationCheckFix the passed JIRA configuration and remove any errors.- Specified by:
fixConfigurationin interfaceConfigurationCheck- 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.
-