Interface AttachmentConfigManager

All Known Implementing Classes:
DefaultAttachmentConfigManager

@PublicApi public interface AttachmentConfigManager
Readonly API for attachment configuration.
Since:
9.6
  • Method Details

    • isAttachmentsEnabled

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

      boolean isThumbnailsEnabled()
      Indicates whether attachment thumbnails should be shown.
      Returns:
      see description
      Since:
      9.7
    • getMaxAttachmentSize

      long getMaxAttachmentSize()
      Gets the maximum upload size for attachments.
      Returns:
      maximum attachment size in bytes
      Since:
      9.7
    • isAttachmentsDownloadableAsZip

      boolean isAttachmentsDownloadableAsZip()
      Indicates whether attachments can be downloaded as ZIP files.
      Returns:
      see description
      Since:
      9.7
    • getTemporaryAttachmentDirectory

      File getTemporaryAttachmentDirectory()
      Returns the directory for temporary attachments.
      Returns:
      see description
      Since:
      9.7
    • getExtensionRestrictionMode

      ExtensionRestrictionMode getExtensionRestrictionMode()
      Indicates mode of restricting attachments by file extension.
      Since:
      9.15
    • getFilteredFileExtensions

      String getFilteredFileExtensions()
      Returns a comma-separated list of file extensions to be used for the selected ExtensionRestrictionMode.
      Since:
      9.15
    • isFilterFilesWithoutExtensions

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