Package com.atlassian.jira.config.util
Interface AttachmentConfigManager
- All Known Implementing Classes:
DefaultAttachmentConfigManager
@PublicApi
public interface AttachmentConfigManager
Readonly API for attachment configuration.
- Since:
- 9.6
-
Method Summary
Modifier and TypeMethodDescriptionIndicates mode of restricting attachments by file extension.Returns a comma-separated list of file extensions to be used for the selectedExtensionRestrictionMode.longGets the maximum upload size for attachments.Returns the directory for temporary attachments.booleanIndicates whether attachments can be downloaded as ZIP files.booleanIndicates whether attachments are enabled.booleanIndicates whether files without extensions should be included for the selectedExtensionRestrictionMode.booleanIndicates whether attachment thumbnails should be shown.
-
Method Details
-
isAttachmentsEnabled
boolean isAttachmentsEnabled()Indicates whether attachments are enabled.- Returns:
- see description
- Since:
- 9.7
-
isThumbnailsEnabled
boolean isThumbnailsEnabled()Indicates whether attachment thumbnails should be shown.- Returns:
- see description
- Since:
- 9.7
-
getMaxAttachmentSize
long getMaxAttachmentSize()Gets the maximum upload size for attachments.- Returns:
- maximum attachment size in bytes
- Since:
- 9.7
-
isAttachmentsDownloadableAsZip
boolean isAttachmentsDownloadableAsZip()Indicates whether attachments can be downloaded as ZIP files.- Returns:
- see description
- Since:
- 9.7
-
getTemporaryAttachmentDirectory
File getTemporaryAttachmentDirectory()Returns the directory for temporary attachments.- Returns:
- see description
- Since:
- 9.7
-
getExtensionRestrictionMode
ExtensionRestrictionMode getExtensionRestrictionMode()Indicates mode of restricting attachments by file extension.- Since:
- 9.15
-
getFilteredFileExtensions
String getFilteredFileExtensions()Returns a comma-separated list of file extensions to be used for the selectedExtensionRestrictionMode.- Since:
- 9.15
-
isFilterFilesWithoutExtensions
boolean isFilterFilesWithoutExtensions()Indicates whether files without extensions should be included for the selectedExtensionRestrictionMode.- Since:
- 9.15
-