Class SilverpeasJcrWebdavContext


  • public class SilverpeasJcrWebdavContext
    extends Object
    Author:
    Yohann Chastagnier
    • Method Detail

      • clearFromToken

        public static void clearFromToken​(String token)
        Clears the application cache from the data handled by SilverpeasJcrWebdavContext and associated to the given token.
        Parameters:
        token - the token from which the cache must be cleared.
      • createWebdavContext

        public static SilverpeasJcrWebdavContext createWebdavContext​(String jcrDocumentUrlLocation,
                                                                     String token)
        Initializing an instance from the document URL location into the JCR and a token.
        Parameters:
        jcrDocumentUrlLocation - the document url location into the JCR.
        token - the token to introduce.
        Returns:
        the SilverpeasJcrWebdavContext instance initialized with the given data. The webdavUrl has been computed.
      • getWebdavContext

        public static SilverpeasJcrWebdavContext getWebdavContext​(String webDavUrl)
        Initializing an instance from a computed webdavUrl.
        If no token is found from the given URL, no exception is thrown and getToken() will return an empty string.
        Parameters:
        webDavUrl - the webdav url.
        Returns:
        the SilverpeasJcrWebdavContext instance initialized with the given webdavUrl. The document URL location into the JCR is decoded and the token has been extracted.
      • getJcrDocumentUrlLocation

        public String getJcrDocumentUrlLocation()
        Gets the document URL location into the JCR.
        Returns:
        the URL as String.
      • getWebDavUrl

        public String getWebDavUrl()
        Gets the computed webdav URL.
        Returns:
        the URL as String.
      • getToken

        public String getToken()
        The authentication token.
        Returns:
        the token as String.