|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.cms.publication.util.DocumentLanguagesHelper
public class DocumentLanguagesHelper
Helper class for the policy GUI.
Constructor Summary | |
---|---|
DocumentLanguagesHelper(java.util.Map objectModel,
org.apache.avalon.framework.service.ServiceManager manager)
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 |
getLanguage()
|
java.lang.String[] |
getLanguages()
All available languages for the current URL. |
protected DocumentLocator |
getLocator()
|
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 |
---|
public DocumentLanguagesHelper(java.util.Map objectModel, org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.cocoon.ProcessingException
objectModel
- the objectModelmanager
- The service manager.
org.apache.cocoon.ProcessingException
- if the page envelope could not be created.Method Detail |
---|
public java.lang.String getLanguage() throws org.apache.cocoon.ProcessingException
org.apache.cocoon.ProcessingException
- if an error occurs.public java.lang.String[] getLanguages() throws org.apache.cocoon.ProcessingException
org.apache.cocoon.ProcessingException
public java.lang.String getUrl(java.lang.String language) throws org.apache.cocoon.ProcessingException
language
- the language
org.apache.cocoon.ProcessingException
- if the document for the given language could not be created.protected Document getDocument(java.lang.String language) throws org.apache.cocoon.ProcessingException
language
- the language
org.apache.cocoon.ProcessingException
- if the document for the given language could not be created.protected DocumentLocator getLocator() throws DocumentBuildException
DocumentBuildException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |