org.esupportail.portal.channels.CWebdav.renderXml
Class RenderXmlShowCurrentDir

java.lang.Object
  extended byorg.esupportail.portal.channels.CWebdav.renderXml.RenderXmlShowCurrentDir

public class RenderXmlShowCurrentDir
extends java.lang.Object

Id: RenderXmlShowCurrentDir.java,v1.0 15 avr. 2004
Copyright (c) 2004 Esup Portail (www.esup-portail.org)
Classes: RenderXmlShowCurrentDir
Original Author: Yohan Colmant
Get the XML to show the curent dir


Constructor Summary
RenderXmlShowCurrentDir()
           
 
Method Summary
static java.lang.StringBuffer getXml(DavAccess access, java.util.ArrayList spaces, Space currentSpace, java.lang.String targetDirectory, WebdavException error, java.lang.String information, Config config)
          Return the XML representing the curent dir
static java.lang.StringBuffer getXml(DavAccess access, java.util.ArrayList spaces, Space currentSpace, WebdavException error, java.lang.String information, Config config)
          Return the XML representing the curent dir
private static java.lang.StringBuffer getXmlAction(Config config)
          Get the XML for the action bar
private static java.lang.StringBuffer getXmlContent(ChannelWebdavResource[] ressources, Config config)
          Get the XML for the content
private static java.lang.StringBuffer getXmlError(WebdavException error, int internalError)
          Get the XML for the error bar
private static java.lang.StringBuffer getXmlInformation(java.lang.String information)
          Get the XML for the info bar
private static java.lang.StringBuffer getXmlNavigation(java.util.ArrayList spaces, Space currentSpace)
          Get the XML for the navigation bar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderXmlShowCurrentDir

public RenderXmlShowCurrentDir()
Method Detail

getXml

public static java.lang.StringBuffer getXml(DavAccess access,
                                            java.util.ArrayList spaces,
                                            Space currentSpace,
                                            WebdavException error,
                                            java.lang.String information,
                                            Config config)
Return the XML representing the curent dir

Parameters:
access - the object used to access the webdav
spaces - the visibles spaces
currentSpace - the current space used
error - the error exception
information - this information message
config - the Config object for the Channel
Returns:
the xml generated

getXml

public static java.lang.StringBuffer getXml(DavAccess access,
                                            java.util.ArrayList spaces,
                                            Space currentSpace,
                                            java.lang.String targetDirectory,
                                            WebdavException error,
                                            java.lang.String information,
                                            Config config)
Return the XML representing the curent dir

Parameters:
access - the object used to access the webdav
spaces - the visibles spaces
currentSpace - the current space used
targetDirectory - the directory we want to show
error - the error exception
information - this information message
config - the Config object for the Channel
Returns:
the xml generated

getXmlNavigation

private static java.lang.StringBuffer getXmlNavigation(java.util.ArrayList spaces,
                                                       Space currentSpace)
Get the XML for the navigation bar

Parameters:
spaces - the visibles spaces
currentSpace - the current space used
Returns:
the XML as a StringBuffer

getXmlError

private static java.lang.StringBuffer getXmlError(WebdavException error,
                                                  int internalError)
Get the XML for the error bar

Parameters:
error - the error
internalError - if there is an internal error
Returns:
the XML as a StringBuffer

getXmlInformation

private static java.lang.StringBuffer getXmlInformation(java.lang.String information)
Get the XML for the info bar

Parameters:
information - the information message code
Returns:
the XML as a StringBuffer

getXmlAction

private static java.lang.StringBuffer getXmlAction(Config config)
                                            throws PropertiesException
Get the XML for the action bar

Parameters:
config - the Config object for the Channel
Returns:
the XML as a StringBuffer
Throws:
PropertiesException

getXmlContent

private static java.lang.StringBuffer getXmlContent(ChannelWebdavResource[] ressources,
                                                    Config config)
                                             throws PropertiesException
Get the XML for the content

Parameters:
ressources - all the ChannelWebdavResource objects
config - the Config object for the Channel
Returns:
the XML as a StringBuffer
Throws:
PropertiesException