@ReturnValuesAreNonnullByDefault @ParametersAreNonnullByDefault public class AttachmentConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AttachmentConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AttachmentConfig.Builder |
builder(AttachmentConfig config) |
AttachmentConfig.Builder |
copy() |
Optional<com.atlassian.dc.filestore.api.FileStore.Path> |
getAttachmentPath()
Returns a
FileStore.Path that points to the location attachments are stored. |
ExtensionRestrictionMode |
getExtensionRestrictionMode()
Indicates mode of restricting attachments by file extension.
|
String |
getFilteredFileExtensions()
Gets a comma-separated list of file extensions to be used for the selected
ExtensionRestrictionMode. |
long |
getMaxAttachmentSize()
Gets the maximum upload size for attachments.
|
boolean |
isAttachmentsEnabled()
Indicates whether attachments are enabled.
|
boolean |
isFilterFilesWithoutExtensions()
Indicates whether files without extensions should be included for the selected
ExtensionRestrictionMode. |
boolean |
isThumbnailsEnabled()
Indicates whether attachment thumbnails should be shown.
|
boolean |
isZipSupportEnabled()
Indicates whether zip support is enabled.
|
public static AttachmentConfig.Builder builder(AttachmentConfig config)
public AttachmentConfig.Builder copy()
public Optional<com.atlassian.dc.filestore.api.FileStore.Path> getAttachmentPath()
FileStore.Path that points to the location attachments are stored.
Will be empty if attachments are disabled.public boolean isAttachmentsEnabled()
public boolean isThumbnailsEnabled()
public boolean isZipSupportEnabled()
public long getMaxAttachmentSize()
public ExtensionRestrictionMode getExtensionRestrictionMode()
public String getFilteredFileExtensions()
ExtensionRestrictionMode.public boolean isFilterFilesWithoutExtensions()
ExtensionRestrictionMode.Copyright © 2002-2024 Atlassian. All Rights Reserved.