Package com.atlassian.jira.config.util
Class DefaultAttachmentConfigManager
java.lang.Object
com.atlassian.jira.config.util.DefaultAttachmentConfigManager
- All Implemented Interfaces:
AttachmentConfigManager
@ParametersAreNonnullByDefault
public class DefaultAttachmentConfigManager
extends Object
implements AttachmentConfigManager
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAttachmentConfigManager
(AttachmentConfigStore attachmentConfigStore, JiraHome jiraHome) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the default relative path to temporary attachments.Indicates mode of restricting attachments by file extension.Returns a comma-separated list of file extensions to be used for the selectedExtensionRestrictionMode
.long
Gets the maximum upload size for attachments.Returns the directory for temporary attachments.boolean
Indicates whether attachments can be downloaded as ZIP files.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.
-
Constructor Details
-
DefaultAttachmentConfigManager
public DefaultAttachmentConfigManager(AttachmentConfigStore attachmentConfigStore, JiraHome jiraHome)
-
-
Method Details
-
getDefaultTempAttachmentDirectory
Returns the default relative path to temporary attachments. -
isAttachmentsEnabled
public boolean isAttachmentsEnabled()Description copied from interface:AttachmentConfigManager
Indicates whether attachments are enabled.- Specified by:
isAttachmentsEnabled
in interfaceAttachmentConfigManager
- Returns:
- see description
-
getMaxAttachmentSize
public long getMaxAttachmentSize()Description copied from interface:AttachmentConfigManager
Gets the maximum upload size for attachments.- Specified by:
getMaxAttachmentSize
in interfaceAttachmentConfigManager
- Returns:
- maximum attachment size in bytes
-
isThumbnailsEnabled
public boolean isThumbnailsEnabled()Description copied from interface:AttachmentConfigManager
Indicates whether attachment thumbnails should be shown.- Specified by:
isThumbnailsEnabled
in interfaceAttachmentConfigManager
- Returns:
- see description
-
isAttachmentsDownloadableAsZip
public boolean isAttachmentsDownloadableAsZip()Description copied from interface:AttachmentConfigManager
Indicates whether attachments can be downloaded as ZIP files.- Specified by:
isAttachmentsDownloadableAsZip
in interfaceAttachmentConfigManager
- Returns:
- see description
-
getExtensionRestrictionMode
Description copied from interface:AttachmentConfigManager
Indicates mode of restricting attachments by file extension.- Specified by:
getExtensionRestrictionMode
in interfaceAttachmentConfigManager
-
getFilteredFileExtensions
Description copied from interface:AttachmentConfigManager
Returns a comma-separated list of file extensions to be used for the selectedExtensionRestrictionMode
.- Specified by:
getFilteredFileExtensions
in interfaceAttachmentConfigManager
-
isFilterFilesWithoutExtensions
public boolean isFilterFilesWithoutExtensions()Description copied from interface:AttachmentConfigManager
Indicates whether files without extensions should be included for the selectedExtensionRestrictionMode
.- Specified by:
isFilterFilesWithoutExtensions
in interfaceAttachmentConfigManager
-
getTemporaryAttachmentDirectory
Description copied from interface:AttachmentConfigManager
Returns the directory for temporary attachments.- Specified by:
getTemporaryAttachmentDirectory
in interfaceAttachmentConfigManager
- Returns:
- see description
-