Interface AttachmentConfigStore

All Known Implementing Classes:
DefaultAttachmentConfigStore

public interface AttachmentConfigStore
Responsible for accessing and storing the instance-wide attachment configuration.
Since:
9.7
  • Method Details

    • getConfig

      @Nonnull AttachmentConfig 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

      ErrorCollection setConfig(AttachmentConfig config)
      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

      ErrorCollection validateConfig(AttachmentConfig config)
      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

      @Nonnull FileStoreAnalyticInfo getFileStoreAnalyticInfo()
      Returns FileStoreAnalyticInfo based on the currently configured file store
      Returns:
      see description