com.jalios.jcms.taglib
Class FileWebdavTag.Webdav

java.lang.Object
  extended by com.jalios.jcms.taglib.FileWebdavTag.Webdav
Enclosing class:
FileWebdavTag

public static class FileWebdavTag.Webdav
extends Object


Field Summary
protected  String baseUrl
           
protected  Member loggedMember
           
protected  String title
           
protected  String userLang
           
 
Constructor Summary
FileWebdavTag.Webdav(String title, String userLang, String baseUrl, Member loggedMember)
           
 
Method Summary
static boolean canUseWebdavFileIcon()
          Check if the current member/context/browser can use the webdav edit icon.
static boolean canUseWebdavFolderIcon()
          Check if the current member/context/browser can use the webdav folder icon.
 void printDownloadIcon(StringBuffer sb, FileDocument doc)
          Prints a download link for the specified FileDocument.
 void printWebdavFileIcon(StringBuffer sb, FileDocument doc)
          Check Webdav rights then print a Webdav edit icon
 void printWebdavFileIcon(StringBuffer sb, FileDocument doc, boolean checkRights)
          A convenient method to generate Webdav FileIcon without checking rights
 void printWebdavFolderIcon(StringBuffer sb)
          Print the Webdav root Folder Icon
 void printWebdavFolderIcon(StringBuffer sb, Category cat, Workspace ws)
          Print the Webdav Folder Icon for the given Category and Workspace
 void printWebdavFolderIcon(StringBuffer sb, FileDocument doc)
          Print the Webdav Folder Icon for the first valid parent folder of the specified Document.
 void printWebdavFolderIcon(StringBuffer sb, Workspace ws)
          Print the Webdav Folder Icon for the given Workspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

protected String title

userLang

protected String userLang

baseUrl

protected String baseUrl

loggedMember

protected Member loggedMember
Constructor Detail

FileWebdavTag.Webdav

public FileWebdavTag.Webdav(String title,
                            String userLang,
                            String baseUrl,
                            Member loggedMember)
Method Detail

printDownloadIcon

public void printDownloadIcon(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(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(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(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(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(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(StringBuffer sb)
Print the Webdav root Folder Icon

Parameters:
sb - the buffer to fill


Copyright © 2001-2010 Jalios SA. All Rights Reserved.