Package com.atlassian.jira.filestore
Class AttachmentFileStoreSwitcher
java.lang.Object
com.atlassian.jira.filestore.FileStoreSwitcher<AttachmentFileStoreProvider>
com.atlassian.jira.filestore.AttachmentFileStoreSwitcher
This class is responsible for determining which
AttachmentFileStoreProvider
should be loaded by Pico.-
Field Summary
Fields inherited from class com.atlassian.jira.filestore.FileStoreSwitcher
S3_BUCKET_PROPERTY_NAME, S3_ENDPOINT_OVERRIDE_PROPERTY_NAME, S3_MAX_CONCURRENCY, S3_REGION_PROPERTY_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentFileStoreSwitcher
(JiraProperties jiraSystemProperties, DataCenterOrDevModeCheck dataCenterOrDevModeCheck, FileStoresConfigurationLoader fileStoresConfigurationLoader, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.atlassian.fugue.Either<String,
io.atlassian.fugue.Unit> Only DC installations are licensed to store files in alternative object stores.Methods inherited from class com.atlassian.jira.filestore.FileStoreSwitcher
getComponentImplementation, getFileStoreConfig, isS3ConfiguredViaSystemProperties
-
Constructor Details
-
AttachmentFileStoreSwitcher
public AttachmentFileStoreSwitcher(JiraProperties jiraSystemProperties, DataCenterOrDevModeCheck dataCenterOrDevModeCheck, FileStoresConfigurationLoader fileStoresConfigurationLoader, FeatureManager featureManager)
-
-
Method Details
-
canUseAlternateFileStore
Description copied from class:FileStoreSwitcher
Only DC installations are licensed to store files in alternative object stores. This method checks if the current installation is using a DC license or is in dev mode.- Overrides:
canUseAlternateFileStore
in classFileStoreSwitcher<AttachmentFileStoreProvider>
- Returns:
- either representing whether an alternative object stores can be enabled or an error string
-