Package org.nuxeo.wopi
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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
computeFileId(String repositoryName, String docId, String xpath)
Returns a WOPI file id given arepositoryName
,docId
and a blobxpath
.static String
computeFileId(DocumentModel doc, String xpath)
Returns a WOPI file id given adoc
, and a blobxpath
.
-
-
-
Constructor Detail
-
FileInfo
public FileInfo(String fileId)
-
-
Method Detail
-
computeFileId
public static String computeFileId(String repositoryName, String docId, String xpath)
Returns a WOPI file id given arepositoryName
,docId
and a blobxpath
.
-
computeFileId
public static String computeFileId(DocumentModel doc, String xpath)
Returns a WOPI file id given adoc
, and a blobxpath
.
-
-