Package org.nuxeo.wopi
Class Helpers
- java.lang.Object
-
- org.nuxeo.wopi.Helpers
-
public class Helpers extends Object
- Since:
- 10.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
createJWTToken()
static Blob
getEditableBlob(DocumentModel doc, String xpath)
static String
getHeader(javax.ws.rs.core.HttpHeaders httpHeaders, String headerName)
static String
getJWTToken(javax.servlet.http.HttpServletRequest request)
static long
getJWTTokenExp(String token)
static String
getWOPIURL(String baseURL, String action, DocumentModel doc, String xpath)
protected static boolean
isExternalBlobProvider(Blob blob)
Deprecated.since 11.1, usesupportsSync(org.nuxeo.ecm.core.api.Blob)
(with opposite semantics) insteadstatic String
principalFullName(NuxeoPrincipal principal)
static String
readUTF7String(String s)
protected static boolean
supportsSync(Blob blob)
protected static String
userDisplayName(String id, String first, String last)
-
-
-
Field Detail
-
UTF_7
public static final Charset UTF_7
-
-
Method Detail
-
createJWTToken
public static String createJWTToken()
-
getJWTToken
public static String getJWTToken(javax.servlet.http.HttpServletRequest request)
-
getJWTTokenExp
public static long getJWTTokenExp(String token)
-
principalFullName
public static String principalFullName(NuxeoPrincipal principal)
-
getEditableBlob
public static Blob getEditableBlob(DocumentModel doc, String xpath)
-
isExternalBlobProvider
@Deprecated protected static boolean isExternalBlobProvider(Blob blob)
Deprecated.since 11.1, usesupportsSync(org.nuxeo.ecm.core.api.Blob)
(with opposite semantics) instead
-
supportsSync
protected static boolean supportsSync(Blob blob)
-
getWOPIURL
public static String getWOPIURL(String baseURL, String action, DocumentModel doc, String xpath)
-
-