Class FileInfo

java.lang.Object
org.nuxeo.wopi.FileInfo

public class FileInfo extends Object
Given a WOPI file id, this class extracts information about a blob: a repository name, a doc id and the blob xpath.

A WOPI file id is a base64 encoded string formatted as repositoryName/docId/xpath.

Since:
10.3
  • Field Details

    • repositoryName

      public final String repositoryName
    • docId

      public final String docId
    • xpath

      public final String xpath
  • Constructor Details

    • FileInfo

      public FileInfo(String fileId)
  • Method Details

    • computeFileId

      public static String computeFileId(String repositoryName, String docId, String xpath)
      Returns a WOPI file id given a repositoryName, docId and a blob xpath.
    • computeFileId

      public static String computeFileId(DocumentModel doc, String xpath)
      Returns a WOPI file id given a doc, and a blob xpath.