Class AttachmentV4Helper
- java.lang.Object
-
- com.atlassian.confluence.impl.pages.attachments.AttachmentV4Helper
-
public class AttachmentV4Helper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
NUM_OF_SUBFOLDERS
static int
TOTAL_NUM_OF_SUBFOLDERS
-
Constructor Summary
Constructors Constructor Description AttachmentV4Helper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.atlassian.dc.filestore.api.FileStore.Path>
AttachmentDataFile<T>getAttachmentDataFileV004(T basePath, AttachmentRef attachment, AttachmentDataStreamType dataStreamType)
static <T extends com.atlassian.dc.filestore.api.FileStore.Path>
TgetContainerPathForAttachmentVersions(T basePath, long attachmentId)
static <T extends com.atlassian.dc.filestore.api.FileStore.Path>
TgetDirectoryV004(T basePath, long id)
Get the directory corresponding to the given content ID.
-
-
-
Field Detail
-
TOTAL_NUM_OF_SUBFOLDERS
public static final int TOTAL_NUM_OF_SUBFOLDERS
- See Also:
- Constant Field Values
-
NUM_OF_SUBFOLDERS
public static final int NUM_OF_SUBFOLDERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDirectoryV004
public static <T extends com.atlassian.dc.filestore.api.FileStore.Path> T getDirectoryV004(T basePath, long id)
Get the directory corresponding to the given content ID. The directory may or may not exist already. E.g. for id 12345678 and base path /parent it will produce a path /parent/10/98
-
getContainerPathForAttachmentVersions
public static <T extends com.atlassian.dc.filestore.api.FileStore.Path> T getContainerPathForAttachmentVersions(T basePath, long attachmentId)
-
getAttachmentDataFileV004
public <T extends com.atlassian.dc.filestore.api.FileStore.Path> AttachmentDataFile<T> getAttachmentDataFileV004(T basePath, AttachmentRef attachment, AttachmentDataStreamType dataStreamType)
-
-