Package com.atlassian.jira.config.util
Class AttachmentConfig.Builder
java.lang.Object
com.atlassian.jira.config.util.AttachmentConfig.Builder
- Enclosing class:
- AttachmentConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
setAttachmentsEnabled
(boolean attachmentsEnabled) Specify whether attachments for this instance are enabled.setExtensionRestrictionMode
(ExtensionRestrictionMode extensionRestrictionMode) Specify mode of restricting attachments by file extension.setFilteredFileExtensions
(String filteredFileExtensions) Specify a comma-separated list of file extensions to be used for the selectedExtensionRestrictionMode
.setFilterFilesWithoutExtensions
(boolean filterFilesWithoutExtensions) Specify whether files without extensions should be included for the selectedExtensionRestrictionMode
.setMaxAttachmentSize
(long maxAttachmentSize) Sets the maximum upload size for attachments in bytes.setThumbnailsEnabled
(boolean thumbnailsEnabled) Specify whether to show thumbnails for attachments.setZipSupportEnabled
(boolean zipSupportEnabled) Specifies whether zip support is enabled.
-
Constructor Details
-
Builder
-
-
Method Details
-
setAttachmentsEnabled
Specify whether attachments for this instance are enabled.- Parameters:
attachmentsEnabled
- true if attachments are enabled.- Returns:
- the builder instance
-
setThumbnailsEnabled
Specify whether to show thumbnails for attachments.- Parameters:
thumbnailsEnabled
- true if thumbnails for attachments should be shown.- Returns:
- the builder instance
-
setMaxAttachmentSize
Sets the maximum upload size for attachments in bytes.- Parameters:
maxAttachmentSize
- see description- Returns:
- the builder instance
-
setZipSupportEnabled
Specifies whether zip support is enabled.- Parameters:
zipSupportEnabled
- see description- Returns:
- the builder instance
-
setExtensionRestrictionMode
public AttachmentConfig.Builder setExtensionRestrictionMode(ExtensionRestrictionMode extensionRestrictionMode) Specify mode of restricting attachments by file extension.- Parameters:
extensionRestrictionMode
- see description- Returns:
- the builder instance
-
setFilteredFileExtensions
Specify a comma-separated list of file extensions to be used for the selectedExtensionRestrictionMode
.- Parameters:
filteredFileExtensions
- see description- Returns:
- the builder instance
-
setFilterFilesWithoutExtensions
public AttachmentConfig.Builder setFilterFilesWithoutExtensions(boolean filterFilesWithoutExtensions) Specify whether files without extensions should be included for the selectedExtensionRestrictionMode
.- Parameters:
filterFilesWithoutExtensions
- see description- Returns:
- the builder instance
-
build
-