Package org.nuxeo.wopi
Class FileInfo
java.lang.Object
org.nuxeo.wopi.FileInfo
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
.
-
Field Details
-
repositoryName
-
docId
-
xpath
-
-
Constructor Details
-
FileInfo
-
-
Method Details
-
computeFileId
Returns a WOPI file id given arepositoryName
,docId
and a blobxpath
. -
computeFileId
Returns a WOPI file id given adoc
, and a blobxpath
.
-