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 StringReturns 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.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.
-
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:AttachmentConfigManagerIndicates whether attachments are enabled.- Specified by:
isAttachmentsEnabledin interfaceAttachmentConfigManager- Returns:
- see description
-
getMaxAttachmentSize
public long getMaxAttachmentSize()Description copied from interface:AttachmentConfigManagerGets the maximum upload size for attachments.- Specified by:
getMaxAttachmentSizein interfaceAttachmentConfigManager- Returns:
- maximum attachment size in bytes
-
isThumbnailsEnabled
public boolean isThumbnailsEnabled()Description copied from interface:AttachmentConfigManagerIndicates whether attachment thumbnails should be shown.- Specified by:
isThumbnailsEnabledin interfaceAttachmentConfigManager- Returns:
- see description
-
isAttachmentsDownloadableAsZip
public boolean isAttachmentsDownloadableAsZip()Description copied from interface:AttachmentConfigManagerIndicates whether attachments can be downloaded as ZIP files.- Specified by:
isAttachmentsDownloadableAsZipin interfaceAttachmentConfigManager- Returns:
- see description
-
getExtensionRestrictionMode
Description copied from interface:AttachmentConfigManagerIndicates mode of restricting attachments by file extension.- Specified by:
getExtensionRestrictionModein interfaceAttachmentConfigManager
-
getFilteredFileExtensions
Description copied from interface:AttachmentConfigManagerReturns a comma-separated list of file extensions to be used for the selectedExtensionRestrictionMode.- Specified by:
getFilteredFileExtensionsin interfaceAttachmentConfigManager
-
isFilterFilesWithoutExtensions
public boolean isFilterFilesWithoutExtensions()Description copied from interface:AttachmentConfigManagerIndicates whether files without extensions should be included for the selectedExtensionRestrictionMode.- Specified by:
isFilterFilesWithoutExtensionsin interfaceAttachmentConfigManager
-
getTemporaryAttachmentDirectory
Description copied from interface:AttachmentConfigManagerReturns the directory for temporary attachments.- Specified by:
getTemporaryAttachmentDirectoryin interfaceAttachmentConfigManager- Returns:
- see description
-