Class AttachmentConfig

java.lang.Object
com.atlassian.jira.config.util.AttachmentConfig

@ReturnValuesAreNonnullByDefault @ParametersAreNonnullByDefault public class AttachmentConfig extends Object
Represents instance-wide configuration about attachments.
Since:
9.7
  • Method Details

    • builder

      public static AttachmentConfig.Builder builder(AttachmentConfig config)
    • copy

      public AttachmentConfig.Builder copy()
    • getAttachmentPath

      public Optional<com.atlassian.dc.filestore.api.FileStore.Path> getAttachmentPath()
      Returns a FileStore.Path that points to the location attachments are stored. Will be empty if attachments are disabled.
      Returns:
      see description
    • isAttachmentsEnabled

      public boolean isAttachmentsEnabled()
      Indicates whether attachments are enabled.
      Returns:
      see description
    • isThumbnailsEnabled

      public boolean isThumbnailsEnabled()
      Indicates whether attachment thumbnails should be shown.
      Returns:
      see description
    • isZipSupportEnabled

      public boolean isZipSupportEnabled()
      Indicates whether zip support is enabled.
      Returns:
      see description
    • getMaxAttachmentSize

      public long getMaxAttachmentSize()
      Gets the maximum upload size for attachments.
      Returns:
      maximum attachment size in bytes
    • getExtensionRestrictionMode

      public ExtensionRestrictionMode getExtensionRestrictionMode()
      Indicates mode of restricting attachments by file extension.
    • getFilteredFileExtensions

      public String getFilteredFileExtensions()
      Gets a comma-separated list of file extensions to be used for the selected ExtensionRestrictionMode.
    • isFilterFilesWithoutExtensions

      public boolean isFilterFilesWithoutExtensions()
      Indicates whether files without extensions should be included for the selected ExtensionRestrictionMode.