Class AttachmentV4Helper

java.lang.Object
com.atlassian.confluence.impl.pages.attachments.AttachmentV4Helper

public class AttachmentV4Helper extends Object
  • Field Details

  • Constructor Details

    • AttachmentV4Helper

      public AttachmentV4Helper()
  • Method Details

    • 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)