org.esupportail.portal.channels.CWebdav.channelAction.classic
Class DefaultRenderXml

java.lang.Object
  extended byorg.esupportail.portal.channels.CWebdav.channelAction.AbstractDefaultRenderXml
      extended byorg.esupportail.portal.channels.CWebdav.channelAction.classic.DefaultRenderXml

public class DefaultRenderXml
extends AbstractDefaultRenderXml

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


Field Summary
protected static org.apache.commons.logging.Log log
          Logger object
 
Constructor Summary
DefaultRenderXml()
           
 
Method Summary
static java.lang.StringBuffer getXml(java.util.ArrayList spaces, Space currentSpace, ChannelException error, java.lang.String information, ChannelConfiguration config)
          Return the XML representing the curent dir
static java.lang.StringBuffer getXml(java.util.ArrayList spaces, Space currentSpace, java.lang.String targetDirectory, ChannelException error, java.lang.String information, ChannelConfiguration config)
          Return the XML representing the curent dir
private static java.lang.StringBuffer getXmlAction(ChannelConfiguration config)
          Get the XML for the action bar
private static java.lang.StringBuffer getXmlContent(ChannelResource[] ressources, ChannelConfiguration config)
          Get the XML for the content
 
Methods inherited from class org.esupportail.portal.channels.CWebdav.channelAction.AbstractDefaultRenderXml
getLengthFormat, getXmlError, getXmlForPasswordSetting, getXmlInformation, getXmlNavigation, getXmlPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Logger object

Constructor Detail

DefaultRenderXml

public DefaultRenderXml()
Method Detail

getXml

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

Parameters:
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(java.util.ArrayList spaces,
                                            Space currentSpace,
                                            java.lang.String targetDirectory,
                                            ChannelException error,
                                            java.lang.String information,
                                            ChannelConfiguration config)
Return the XML representing the curent dir

Parameters:
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

getXmlAction

private static java.lang.StringBuffer getXmlAction(ChannelConfiguration 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(ChannelResource[] ressources,
                                                    ChannelConfiguration 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