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
static String
S3_ATTACHMENT_ROOT
-
Constructor Summary
Constructors Constructor Description AttachmentFileStoreFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttachmentDataFileSystem
getInstance(AttachmentDataStorageLocationResolver rootDirV003, AttachmentDataStorageLocationResolver rootDirV004, DeferredFileDeletionQueue deferredFileDeletionQueue, com.atlassian.config.ApplicationConfiguration appConfig, com.atlassian.sal.api.features.DarkFeatureManager salDarkFeatureManager)
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
public static final String CONFLUENCE_ATTACHMENTS_VER004_DARK_FEATURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static AttachmentDataFileSystem getInstance(AttachmentDataStorageLocationResolver rootDirV003, AttachmentDataStorageLocationResolver rootDirV004, DeferredFileDeletionQueue deferredFileDeletionQueue, com.atlassian.config.ApplicationConfiguration appConfig, com.atlassian.sal.api.features.DarkFeatureManager salDarkFeatureManager)
Produces instance ofAttachmentDataFileSystem
based on the defined properties. Object storage type will be produced if there are sufficient details to configure it, otherwise it Filesystem type is returned.- Parameters:
rootDirV003
- - root directory path resolver for attachments version 003rootDirV004
- - root directory path resolver for attachments version 004deferredFileDeletionQueue
-appConfig
- application configuration- Returns:
- new instance of underlying attachment storage
-
-