Class Helpers

java.lang.Object
org.nuxeo.wopi.Helpers

public class Helpers extends Object
Since:
10.3
  • Field Details

    • UTF_7

      public static final Charset UTF_7
  • Method Details

    • readUTF7String

      public static String readUTF7String(String s)
    • 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, use supportsSync(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)
    • userDisplayName

      protected static String userDisplayName(String id, String first, String last)
    • getHeader

      public static String getHeader(javax.ws.rs.core.HttpHeaders httpHeaders, String headerName)