Package com.atlassian.jira.config.util
Class AttachmentConfig
java.lang.Object
com.atlassian.jira.config.util.AttachmentConfig
@ReturnValuesAreNonnullByDefault
@ParametersAreNonnullByDefault
public class AttachmentConfig
extends Object
Represents instance-wide configuration about attachments.
- Since:
- 9.7
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AttachmentConfig.Builder
builder
(AttachmentConfig config) copy()
Optional<com.atlassian.dc.filestore.api.FileStore.Path>
Returns aFileStore.Path
that points to the location attachments are stored.Indicates mode of restricting attachments by file extension.Gets a comma-separated list of file extensions to be used for the selectedExtensionRestrictionMode
.long
Gets the maximum upload size for attachments.boolean
Indicates whether attachments are enabled.boolean
Indicates whether files without extensions should be included for the selectedExtensionRestrictionMode
.boolean
Indicates whether attachment thumbnails should be shown.boolean
Indicates whether zip support is enabled.
-
Method Details
-
builder
-
copy
-
getAttachmentPath
Returns aFileStore.Path
that points to the location attachments are stored. Will be empty if attachments are disabled.- Returns:
- see description
-
isAttachmentsEnabled
public boolean isAttachmentsEnabled()Indicates whether attachments are enabled.- Returns:
- see description
-
isThumbnailsEnabled
public boolean isThumbnailsEnabled()Indicates whether attachment thumbnails should be shown.- Returns:
- see description
-
isZipSupportEnabled
public boolean isZipSupportEnabled()Indicates whether zip support is enabled.- Returns:
- see description
-
getMaxAttachmentSize
public long getMaxAttachmentSize()Gets the maximum upload size for attachments.- Returns:
- maximum attachment size in bytes
-
getExtensionRestrictionMode
Indicates mode of restricting attachments by file extension. -
getFilteredFileExtensions
Gets a comma-separated list of file extensions to be used for the selectedExtensionRestrictionMode
. -
isFilterFilesWithoutExtensions
public boolean isFilterFilesWithoutExtensions()Indicates whether files without extensions should be included for the selectedExtensionRestrictionMode
.
-