Package com.jalios.jcms.taglib
Class FileWebdavTag.Webdav
- java.lang.Object
-
- com.jalios.jcms.taglib.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.StringbaseUrlprotected MemberloggedMemberprotected java.lang.Stringtitleprotected java.lang.StringuserLang
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancanUseWebdavFileIcon()Check if the current member/context/browser can use the webdav edit icon.static booleancanUseWebdavFolderIcon()Check if the current member/context/browser can use the webdav folder icon.voidprintDownloadIcon(java.lang.StringBuffer sb, FileDocument doc)Prints a download link for the specified FileDocument.voidprintWebdavFileIcon(java.lang.StringBuffer sb, FileDocument doc)Check Webdav rights then print a Webdav edit iconvoidprintWebdavFileIcon(java.lang.StringBuffer sb, FileDocument doc, boolean checkRights)A convenient method to generate Webdav FileIcon without checking rightsvoidprintWebdavFolderIcon(java.lang.StringBuffer sb)Print the Webdav root Folder IconvoidprintWebdavFolderIcon(java.lang.StringBuffer sb, Category cat, Workspace ws)Print the Webdav Folder Icon for the given Category and WorkspacevoidprintWebdavFolderIcon(java.lang.StringBuffer sb, FileDocument doc)Print the Webdav Folder Icon for the first valid parent folder of the specified Document.voidprintWebdavFolderIcon(java.lang.StringBuffer sb, Workspace ws)Print the Webdav Folder Icon for the given Workspace
-
-
-
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 filldoc- 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 filldoc- 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 filldoc- the document to work withcheckRights- 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 fillcat- the category to displayws- 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 fillws- 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 filldoc- the FileDocument to display
-
printWebdavFolderIcon
public void printWebdavFolderIcon(java.lang.StringBuffer sb)
Print the Webdav root Folder Icon- Parameters:
sb- the buffer to fill
-
-