Class AttachmentFileStoreFactory
- java.lang.Object
-
- com.atlassian.confluence.impl.pages.attachments.filesystem.AttachmentFileStoreFactory
-
public class AttachmentFileStoreFactory extends Object
Factory for creatingAttachmentDataFileSystem
instances. If there are S3 properties set, then anObjectStorageAttachmentDataFileSystem
will be returned. Otherwise, it returns an instance ofContentDirectoryStructureAttachmentDataFileSystemAdapter
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFLUENCE_ATTACHMENTS_VER004_DARK_FEATURE_DISABLED
static String
S3_ATTACHMENT_ROOT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttachmentDataFileSystem
getInstance(ContentDirectoryStructureAttachmentDataFileSystemV003 structureV3, ContentDirectoryStructureAttachmentDataFileSystemV004 structureV4, com.atlassian.config.ApplicationConfiguration appConfig, com.atlassian.sal.api.features.DarkFeatureManager salDarkFeatureManager, ClusterConfigurationHelperInternal clusterConfigurationHelper, ZduManager zduManager, com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager)
Produces instance ofAttachmentDataFileSystem
based on the defined properties.
-
-
-
Field Detail
-
S3_ATTACHMENT_ROOT
public static final String S3_ATTACHMENT_ROOT
- See Also:
- Constant Field Values
-
CONFLUENCE_ATTACHMENTS_VER004_DARK_FEATURE_DISABLED
public static final String CONFLUENCE_ATTACHMENTS_VER004_DARK_FEATURE_DISABLED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static AttachmentDataFileSystem getInstance(ContentDirectoryStructureAttachmentDataFileSystemV003 structureV3, ContentDirectoryStructureAttachmentDataFileSystemV004 structureV4, com.atlassian.config.ApplicationConfiguration appConfig, com.atlassian.sal.api.features.DarkFeatureManager salDarkFeatureManager, ClusterConfigurationHelperInternal clusterConfigurationHelper, ZduManager zduManager, com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager) 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
-
-