Package com.atlassian.jira.config.util
Interface AttachmentConfigStore
- All Known Implementing Classes:
DefaultAttachmentConfigStore
public interface AttachmentConfigStore
Responsible for accessing and storing the instance-wide attachment configuration.
- Since:
- 9.7
-
Method Summary
Modifier and TypeMethodDescriptionGets attachment related config for this Jira instance.ReturnsFileStoreAnalyticInfo
based on the currently configured file storedefault boolean
Indicates whether the user can download attachments as ZIP files.setConfig
(AttachmentConfig config) Sets attachment related config for this Jira instance.validateConfig
(AttachmentConfig config) Validates attachment related config for this instance.
-
Method Details
-
getConfig
Gets attachment related config for this Jira instance.- Returns:
- see description
-
isAttachmentsDownloadableAsZip
default boolean isAttachmentsDownloadableAsZip()Indicates whether the user can download attachments as ZIP files.- Returns:
- see description
-
setConfig
Sets attachment related config for this Jira instance. This also validates the config. If there are any validation errors then none of the config was modified.- Parameters:
config
- the config to set- Returns:
- a collection of validation errors. If there are any errors then the config was not set.
-
validateConfig
Validates attachment related config for this instance.- Parameters:
config
- the config to validate- Returns:
- a collection of validation errors with field keys that match field names in
AttachmentConfig
-
getFileStoreAnalyticInfo
ReturnsFileStoreAnalyticInfo
based on the currently configured file store- Returns:
- see description
-