public final class

AttachmentDirectoryChecker

extends Object
implements ConfigurationCheck
java.lang.Object
   ↳ com.atlassian.jira.functest.config.AttachmentDirectoryChecker

Class Overview

A check to make sure that attachments is correctly configured in JIRA XML data.

Summary

Constants
String CHECKID_ATTACH_DIR Check to set the attachment path to a default of #JIRA_FUNC_ATTACHMENT.
String CHECKID_ATTACH_HOME Check to see if the attachment directory has been configured.
Public Constructors
AttachmentDirectoryChecker()
Public Methods
ConfigurationCheck.Result checkConfiguration(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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.functest.config.ConfigurationCheck

Constants

public static final String CHECKID_ATTACH_DIR

Check to set the attachment path to a default of #JIRA_FUNC_ATTACHMENT.

Constant Value: "attachdirectory"

public static final String CHECKID_ATTACH_HOME

Check to see if the attachment directory has been configured.

Constant Value: "attachhome"

Public Constructors

public AttachmentDirectoryChecker ()

Public Methods

public ConfigurationCheck.Result checkConfiguration (JiraConfig config, CheckOptions options)

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.

public void fixConfiguration (JiraConfig config, CheckOptions options)

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.