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
 Category getWebdavCategoryForDocument(FileDocument doc)
           
 String getWebdavCatPath(Category cat)
          Returns path of the current category
 Category getWebdavRoot()
           
 boolean isWebdavEditable(FileDocument doc)
           
 void printDownloadIcon(StringBuffer sb, FileDocument doc)
           
 void printWebdavFileIcon(StringBuffer sb, FileDocument doc, Category cat)
          Check Webdav rights then Print a WebdavFile icon
 void printWebdavFileIcon(StringBuffer sb, FileDocument doc, Category cat, boolean checkRights)
          A convenient method to generate Webdav FileIcon without checking rights
 void printWebdavFolderIcon(StringBuffer sb, Category cat, Workspace ws, boolean showRoot)
          Print the Webdav Folder Icon for the given Category and Workspace
 void printWebdavFolderIcon(StringBuffer sb, FileDocument doc)
          Print the Webdav Folder Icon for the given FileDocument
 
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)

isWebdavEditable

public boolean isWebdavEditable(FileDocument doc)

printWebdavFileIcon

public void printWebdavFileIcon(StringBuffer sb,
                                FileDocument doc,
                                Category cat)
Check Webdav rights then Print a WebdavFile icon

Parameters:
sb - the buffer to fill
doc - the document to work with
cat - the category to use

printWebdavFileIcon

public void printWebdavFileIcon(StringBuffer sb,
                                FileDocument doc,
                                Category cat,
                                boolean checkRights)
A convenient method to generate Webdav FileIcon without checking rights

Parameters:
sb - the buffer to fill
doc - the document to work with
cat - the category to use
checkRights - true to check webdav rights

printWebdavFolderIcon

public void printWebdavFolderIcon(StringBuffer sb,
                                  FileDocument doc)
Print the Webdav Folder Icon for the given FileDocument

Parameters:
sb - the buffer to fill
doc - the FileDocument
Since:
jcms-5.7.0

printWebdavFolderIcon

public void printWebdavFolderIcon(StringBuffer sb,
                                  Category cat,
                                  Workspace ws,
                                  boolean showRoot)
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
showRoot - should the root be displayed

getWebdavCatPath

public String getWebdavCatPath(Category cat)
Returns path of the current category

Parameters:
cat - the current category
Returns:
String the path

getWebdavRoot

public Category getWebdavRoot()

getWebdavCategoryForDocument

public Category getWebdavCategoryForDocument(FileDocument doc)


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