org.esupportail.portal.channels.CStockage.channelAction
Class AbstractDefaultRenderXml

java.lang.Object
  extended byorg.esupportail.portal.channels.CStockage.channelAction.AbstractDefaultRenderXml
Direct Known Subclasses:
DefaultRenderXml, DefaultRenderXml

public abstract class AbstractDefaultRenderXml
extends java.lang.Object

Id: AbstractDefaultRenderXml.java,v 1.0 24 sept. 2004 Copyright (c) 2004 Esup Portail (www.esup-portail.org) Classes: AbstractDefaultRenderXml Original Author: Yohan Colmant The default render xml for the channel. It defines the generic bars likes navigation


Constructor Summary
AbstractDefaultRenderXml()
           
 
Method Summary
protected static java.lang.StringBuffer getLastUpdateDateXml(java.util.Calendar lastModified)
          Return the xml used to set the last update date
protected static java.lang.String getLengthFormat(long contentLength)
          Return the good length format to print
static java.lang.StringBuffer getXmlError(ChannelException error, int internalError)
          Get the XML for the error bar
static java.lang.StringBuffer getXmlForPasswordSetting(java.util.ArrayList spaces, Space currentSpace, ChannelException error)
          Return the XML representing the curent dir
static java.lang.StringBuffer getXmlInformation(java.lang.String information)
          Get the XML for the info bar
protected static java.lang.StringBuffer getXmlNavigation(java.util.ArrayList spaces, Space currentSpace)
          Get the XML for the navigation bar
protected static java.lang.StringBuffer getXmlPassword(java.lang.String login, java.lang.String password, boolean loginReadOnly)
          Get the XML for the password bar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDefaultRenderXml

public AbstractDefaultRenderXml()
Method Detail

getXmlNavigation

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

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

getXmlError

public static java.lang.StringBuffer getXmlError(ChannelException 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

public 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

getXmlForPasswordSetting

public static java.lang.StringBuffer getXmlForPasswordSetting(java.util.ArrayList spaces,
                                                              Space currentSpace,
                                                              ChannelException error)
                                                       throws PropertiesException
Return the XML representing the curent dir

Parameters:
spaces - the default spaces
currentSpace - the current space used
error - the error exception
Returns:
the xml generated
Throws:
PropertiesException

getXmlPassword

protected static java.lang.StringBuffer getXmlPassword(java.lang.String login,
                                                       java.lang.String password,
                                                       boolean loginReadOnly)
Get the XML for the password bar

Parameters:
login - the user login used
password - the user password used
Returns:
the XML as a StringBuffer

getLengthFormat

protected static java.lang.String getLengthFormat(long contentLength)
Return the good length format to print

Parameters:
contentLength - the content length
Returns:
the string to show

getLastUpdateDateXml

protected static java.lang.StringBuffer getLastUpdateDateXml(java.util.Calendar lastModified)
Return the xml used to set the last update date

Parameters:
lastModified - the last update date
Returns:
the string to show