Class FileStoresConfigHandler
java.lang.Object
com.atlassian.jira.config.filestore.FileStoresConfigHandler
- All Implemented Interfaces:
CustomConfigHandler<FileStoresConfig>
@ParametersAreNonnullByDefault
public class FileStoresConfigHandler
extends Object
implements CustomConfigHandler<FileStoresConfig>
Parses filestore configuration. Allows multiple filestores to be defined and associated with one more
FileStoreAssociationTarget
.
The writeTo(org.dom4j.Element, com.atlassian.jira.config.filestore.FileStoresConfig)
method has not been implemented. Users are expected to manually
edit the configuration.- Since:
- 9.9
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse
(org.dom4j.Element element) Tries to parse configuration from an xml file.void
writeTo
(org.dom4j.Element element, FileStoresConfig fileStoresConfig)
-
Field Details
-
FILESTORE_CANNOT_BE_PARSED_MESSAGE
-
-
Constructor Details
-
FileStoresConfigHandler
public FileStoresConfigHandler()
-
-
Method Details
-
getBeanClass
- Specified by:
getBeanClass
in interfaceCustomConfigHandler<FileStoresConfig>
- Returns:
- the class of the config bean that this class works with
-
parse
Tries to parse configuration from an xml file. Example configuration xml:<?xml version="1.1" ?> <filestore-config>
<s3-filestore id="avatarBucket"> <bucket-name>exmple-bucket</bucket-name> </s3-filestore>us-east-1 - Specified by:
parse
in interfaceCustomConfigHandler<FileStoresConfig>
- Parameters:
element
- the rootElement
of the xml to parse- Returns:
- a
FileStoresConfig
which represents the parsed config. It may contain errors where parts of the config could not be parsed. - Throws:
ConfigParseException
- if the high-level structure of the passedElement
is not valid.
-
writeTo
- Specified by:
writeTo
in interfaceCustomConfigHandler<FileStoresConfig>
-