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

java.lang.Object
  extended byorg.esupportail.portal.channels.CStockage.channelAction.AbstractDefaultRenderXml
      extended byorg.esupportail.portal.channels.CStockage.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 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, SharingTool sharingTool, java.lang.String currentSortType)
          Return the XML representing the curent dir
private static java.lang.StringBuffer getXmlAction(Space currentSpace, SharingTool sharingTool)
          Get the XML for the action bar
private static java.lang.StringBuffer getXmlContent(ChannelResource[] resources, java.lang.String currentSortType)
          Get the XML for the content
private static java.lang.StringBuffer getXmlForResource(java.lang.String name, java.lang.String type, java.lang.String weight, java.util.Calendar date)
          Return the xml for one resource
 
Methods inherited from class org.esupportail.portal.channels.CStockage.channelAction.AbstractDefaultRenderXml
getLastUpdateDateXml, 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 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,
                                            SharingTool sharingTool,
                                            java.lang.String currentSortType)
Return the XML representing the curent dir

Parameters:
spaces - the spaces into the channel
currentSpace - the current space used
error - the error exception
information - this information message
sharingTool - the sharing tool for the current directory
currentSortType - The current and default sort type for the resources
Returns:
the xml generated

getXmlAction

private static java.lang.StringBuffer getXmlAction(Space currentSpace,
                                                   SharingTool sharingTool)
                                            throws PropertiesException
Get the XML for the action bar

Parameters:
currentSpace - current channel path
sharingTool - the sharing tool for the current directory
Returns:
the XML as a StringBuffer
Throws:
PropertiesException

getXmlContent

private static java.lang.StringBuffer getXmlContent(ChannelResource[] resources,
                                                    java.lang.String currentSortType)
                                             throws PropertiesException
Get the XML for the content

Parameters:
resources - all the ChannelWebdavResource objects
currentSortType - The current and default sort type for the resources
Returns:
the XML as a StringBuffer
Throws:
PropertiesException

getXmlForResource

private static java.lang.StringBuffer getXmlForResource(java.lang.String name,
                                                        java.lang.String type,
                                                        java.lang.String weight,
                                                        java.util.Calendar date)
Return the xml for one resource

Parameters:
name - the name of the resource
type - the type of the resource
weight - the weight of the resource
date - the last modification date
Returns:
the xml for one resource