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.Builderbuilder(AttachmentConfig config) copy()Optional<com.atlassian.dc.filestore.api.FileStore.Path>Returns aFileStore.Paththat 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.longGets the maximum upload size for attachments.booleanIndicates whether attachments are enabled.booleanIndicates whether files without extensions should be included for the selectedExtensionRestrictionMode.booleanIndicates whether attachment thumbnails should be shown.booleanIndicates whether zip support is enabled.
-
Method Details
-
builder
-
copy
-
getAttachmentPath
Returns aFileStore.Paththat 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.
-