Class AttachmentFileStoreFactory
- java.lang.Object
-
- com.atlassian.confluence.impl.pages.attachments.filesystem.AttachmentFileStoreFactory
-
public class AttachmentFileStoreFactory extends Object
Factory for creatingAttachmentDataFileSysteminstances. If there are S3 properties set, then anObjectStorageAttachmentDataFileSystemwill be returned. Otherwise, it returns an instance ofContentDirectoryStructureAttachmentDataFileSystemAdapter.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFLUENCE_ATTACHMENTS_VER004_DARK_FEATURE_DISABLEDstatic StringS3_ATTACHMENT_ROOT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttachmentDataFileSystemgetInstance(ContentDirectoryStructureAttachmentDataFileSystemV003 structureV3, ContentDirectoryStructureAttachmentDataFileSystemV004 structureV4, com.atlassian.config.ApplicationConfiguration appConfig, DarkFeaturesManager darkFeaturesManager, ClusterConfigurationHelperInternal clusterConfigurationHelper, ZduManager zduManager, com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager)Produces instance ofAttachmentDataFileSystembased 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, DarkFeaturesManager darkFeaturesManager, ClusterConfigurationHelperInternal clusterConfigurationHelper, ZduManager zduManager, com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager) throws IOException
Produces instance ofAttachmentDataFileSystembased 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
-
-