Class FileWebdavTag.Webdav

  • Enclosing class:
    FileWebdavTag

    public static class FileWebdavTag.Webdav
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String baseUrl  
      protected Member loggedMember  
      protected java.lang.String title  
      protected java.lang.String userLang  
    • Constructor Summary

      Constructors 
      Constructor Description
      Webdav​(java.lang.String title, java.lang.String userLang, java.lang.String baseUrl, Member loggedMember)  
    • Field Detail

      • title

        protected java.lang.String title
      • userLang

        protected java.lang.String userLang
      • baseUrl

        protected java.lang.String baseUrl
      • loggedMember

        protected Member loggedMember
    • Constructor Detail

      • Webdav

        public Webdav​(java.lang.String title,
                      java.lang.String userLang,
                      java.lang.String baseUrl,
                      Member loggedMember)
    • Method Detail

      • printDownloadIcon

        public void printDownloadIcon​(java.lang.StringBuffer sb,
                                      FileDocument doc)
        Prints a download link for the specified FileDocument.
        Parameters:
        sb - the buffer to fill
        doc - the document to work with
      • canUseWebdavFileIcon

        public static boolean canUseWebdavFileIcon()
        Check if the current member/context/browser can use the webdav edit icon.

        The rule : Reserved to windows, but for the browser, it depends on which file edition mode is enabled (legacy lnk or new Jalios Office Launcher)

        Returns:
        true if the WebdavFolderIcon can be used, false otherwise.
        Since:
        jcms-6.1
      • printWebdavFileIcon

        public void printWebdavFileIcon​(java.lang.StringBuffer sb,
                                        FileDocument doc)
        Check Webdav rights then print a Webdav edit icon
        Parameters:
        sb - the buffer to fill
        doc - the document to work with
      • printWebdavFileIcon

        public void printWebdavFileIcon​(java.lang.StringBuffer sb,
                                        FileDocument doc,
                                        boolean checkRights)
        A convenient method to generate Webdav FileIcon without checking rights
        Parameters:
        sb - the buffer to fill
        doc - the document to work with
        checkRights - true to check webdav rights
      • canUseWebdavFolderIcon

        public static boolean canUseWebdavFolderIcon()
        Check if the current member/context/browser can use the webdav folder icon.

        The rule : Reserved to IE for Windows.

        Returns:
        true if the WebdavFolderIcon can be used, false otherwise.
        Since:
        jcms-6.1
      • printWebdavFolderIcon

        public void printWebdavFolderIcon​(java.lang.StringBuffer sb,
                                          Category cat,
                                          Workspace ws)
        Print the Webdav Folder Icon for the given Category and Workspace
        Parameters:
        sb - the buffer to fill
        cat - the category to display
        ws - the workspace to use
      • printWebdavFolderIcon

        public void printWebdavFolderIcon​(java.lang.StringBuffer sb,
                                          Workspace ws)
        Print the Webdav Folder Icon for the given Workspace
        Parameters:
        sb - the buffer to fill
        ws - the workspace to display
      • printWebdavFolderIcon

        public void printWebdavFolderIcon​(java.lang.StringBuffer sb,
                                          FileDocument doc)
        Print the Webdav Folder Icon for the first valid parent folder of the specified Document.
        Parameters:
        sb - the buffer to fill
        doc - the FileDocument to display
      • printWebdavFolderIcon

        public void printWebdavFolderIcon​(java.lang.StringBuffer sb)
        Print the Webdav root Folder Icon
        Parameters:
        sb - the buffer to fill