Package com.atlassian.jira.config.util
Class DefaultAttachmentConfigStore
java.lang.Object
com.atlassian.jira.config.util.DefaultAttachmentConfigStore
- All Implemented Interfaces:
AttachmentConfigStore
@ParametersAreNonnullByDefault
public class DefaultAttachmentConfigStore
extends Object
implements AttachmentConfigStore
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAttachmentConfigStore(ApplicationProperties applicationProperties, AttachmentFileStoreProvider attachmentFileStoreProvider) -
Method Summary
Modifier and TypeMethodDescriptionGets attachment related config for this Jira instance.ReturnsFileStoreAnalyticInfobased on the currently configured file storesetConfig(AttachmentConfig config) Sets attachment related config for this Jira instance.validateConfig(AttachmentConfig config) Validates attachment related config for this instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.config.util.AttachmentConfigStore
isAttachmentsDownloadableAsZip
-
Constructor Details
-
DefaultAttachmentConfigStore
public DefaultAttachmentConfigStore(ApplicationProperties applicationProperties, AttachmentFileStoreProvider attachmentFileStoreProvider)
-
-
Method Details
-
getConfig
Description copied from interface:AttachmentConfigStoreGets attachment related config for this Jira instance.- Specified by:
getConfigin interfaceAttachmentConfigStore- Returns:
- see description
-
setConfig
Description copied from interface:AttachmentConfigStoreSets 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.- Specified by:
setConfigin interfaceAttachmentConfigStore- Parameters:
config- the config to set- Returns:
- a collection of validation errors. If there are any errors then the config was not set.
-
validateConfig
Description copied from interface:AttachmentConfigStoreValidates attachment related config for this instance.- Specified by:
validateConfigin interfaceAttachmentConfigStore- Parameters:
config- the config to validate- Returns:
- a collection of validation errors with field keys that match field names in
AttachmentConfig
-
getFileStoreAnalyticInfo
Description copied from interface:AttachmentConfigStoreReturnsFileStoreAnalyticInfobased on the currently configured file store- Specified by:
getFileStoreAnalyticInfoin interfaceAttachmentConfigStore- Returns:
- see description
-