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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionparse(org.dom4j.Element element) Tries to parse configuration from an xml file.voidwriteTo(org.dom4j.Element element, FileStoresConfig fileStoresConfig) 
- 
Field Details- 
FILESTORE_CANNOT_BE_PARSED_MESSAGE
 
- 
- 
Constructor Details- 
FileStoresConfigHandlerpublic FileStoresConfigHandler()
 
- 
- 
Method Details- 
getBeanClass- Specified by:
- getBeanClassin interface- CustomConfigHandler<FileStoresConfig>
- Returns:
- the class of the config bean that this class works with
 
- 
parseTries to parse configuration from an xml file. Example configuration xml:invalid input: '<'?xml version="1.1" ?> invalid input: '<'filestore-config> invalid input: '<'s3-filestore id="avatarBucket"> invalid input: '<'bucket-name>exmple-bucketinvalid input: '<'/bucket-name> invalid input: '<'/s3-filestore>us-east-1 - Specified by:
- parsein interface- CustomConfigHandler<FileStoresConfig>
- Parameters:
- element- the root- Elementof the xml to parse
- Returns:
- a FileStoresConfigwhich 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 passed- Elementis not valid.
 
- 
writeTo- Specified by:
- writeToin interface- CustomConfigHandler<FileStoresConfig>
 
 
-