org.apache.lenya.cms.publication.xsp
Class DocumentLanguagesHelper

java.lang.Object
  extended by org.apache.lenya.cms.publication.xsp.DocumentLanguagesHelper

public class DocumentLanguagesHelper
extends java.lang.Object

Helper class for the policy GUI.


Constructor Summary
DocumentLanguagesHelper(java.util.Map objectModel)
          Create a new DocumentlanguageHelper.
 
Method Summary
protected  Document getDocument(java.lang.String language)
          Create a document for a given language and the parameters given in the contructor.
 java.lang.String getInfoUrl(java.lang.String language)
          Compute the info area URL for a given language and the parameters given in the contructor.
 java.lang.String getUrl(java.lang.String language)
          Compute the URL for a given language and the parameters given in the contructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentLanguagesHelper

public DocumentLanguagesHelper(java.util.Map objectModel)
                        throws org.apache.cocoon.ProcessingException
Create a new DocumentlanguageHelper.

Parameters:
objectModel - the objectModel
Throws:
org.apache.cocoon.ProcessingException - if the page envelope could not be created.
Method Detail

getUrl

public java.lang.String getUrl(java.lang.String language)
                        throws org.apache.cocoon.ProcessingException
Compute the URL for a given language and the parameters given in the contructor.

Parameters:
language - the language
Returns:
the url for the given language
Throws:
org.apache.cocoon.ProcessingException - if the document for the given language could not be created.

getInfoUrl

public java.lang.String getInfoUrl(java.lang.String language)
                            throws org.apache.cocoon.ProcessingException
Compute the info area URL for a given language and the parameters given in the contructor.

Parameters:
language - the language
Returns:
the url for the given language
Throws:
org.apache.cocoon.ProcessingException - if the document for the given language could not be created.

getDocument

protected Document getDocument(java.lang.String language)
                        throws org.apache.cocoon.ProcessingException
Create a document for a given language and the parameters given in the contructor.

Parameters:
language - the language
Returns:
the document with the given language
Throws:
org.apache.cocoon.ProcessingException - if the document for the given language could not be created.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.