Class AttachmentFileStoreFactory
java.lang.Object
com.atlassian.confluence.impl.pages.attachments.filesystem.AttachmentFileStoreFactory
Factory for creating
AttachmentDataFileSystem
instances. If there are S3 properties set, then an
ObjectStorageAttachmentDataFileSystem
will be returned. Otherwise, it returns an instance of
ContentDirectoryStructureAttachmentDataFileSystemAdapter
.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AttachmentDataFileSystem
getInstance
(ContentDirectoryStructureAttachmentDataFileSystemV003 structureV3, ContentDirectoryStructureAttachmentDataFileSystemV004 structureV4, com.atlassian.config.ApplicationConfiguration appConfig, DarkFeaturesManager darkFeaturesManager, ClusterConfigurationHelperInternal clusterConfigurationHelper, ZduManager zduManager, com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager, LicenseService licenseService) Produces instance ofAttachmentDataFileSystem
based on the defined properties.
-
Field Details
-
S3_ATTACHMENT_ROOT
- See Also:
-
CONFLUENCE_ATTACHMENTS_VER004_DARK_FEATURE_DISABLED
- See Also:
-
-
Method Details
-
getInstance
public static AttachmentDataFileSystem getInstance(ContentDirectoryStructureAttachmentDataFileSystemV003 structureV3, ContentDirectoryStructureAttachmentDataFileSystemV004 structureV4, com.atlassian.config.ApplicationConfiguration appConfig, DarkFeaturesManager darkFeaturesManager, ClusterConfigurationHelperInternal clusterConfigurationHelper, ZduManager zduManager, com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager, LicenseService licenseService) throws IOException Produces instance ofAttachmentDataFileSystem
based on the defined properties. Object storage type will be produced if there are sufficient details to configure it, otherwise the regular Filesystem type is returned.- Parameters:
structureV3
- - AttachmentDataFileSystem for file system structure version 3structureV4
- - AttachmentDataFileSystem for file system structure version 4appConfig
- application configuration- Returns:
- new instance of underlying attachment storage
- Throws:
IOException
-