|
||||||||
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.DocumentHelper
public class DocumentHelper
Helper class to handle documents from XSP.
Constructor Summary | |
---|---|
DocumentHelper(org.apache.avalon.framework.service.ServiceManager manager,
java.util.Map _objectModel)
Ctor. |
Method Summary | |
---|---|
java.lang.String |
getCompleteParentUrl()
Returns the complete URL of the parent document. |
java.lang.String |
getDocumentUrl(java.lang.String uuid,
java.lang.String documentArea,
java.lang.String language)
Creates a document URL. |
static Document |
getExistingLanguageVersion(Document document)
Returns an existing language version of a document. |
static Document |
getExistingLanguageVersion(Document document,
java.lang.String preferredLanguage)
Returns an existing language version of a document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentHelper(org.apache.avalon.framework.service.ServiceManager manager, java.util.Map _objectModel)
manager
- The service manager._objectModel
- The Cocoon object model.Method Detail |
---|
public java.lang.String getDocumentUrl(java.lang.String uuid, java.lang.String documentArea, java.lang.String language) throws org.apache.cocoon.ProcessingException
uuid
- The target document UUID.documentArea
- The target area.language
- The target language.
org.apache.cocoon.ProcessingException
- if something went wrong.public java.lang.String getCompleteParentUrl() throws org.apache.cocoon.ProcessingException
org.apache.cocoon.ProcessingException
- when something went wrong.public static Document getExistingLanguageVersion(Document document) throws DocumentException
document
- The document.
DocumentException
- when an error occurs.public static Document getExistingLanguageVersion(Document document, java.lang.String preferredLanguage) throws DocumentException
document
- The document.preferredLanguage
- The preferred language.
DocumentException
- when an error occurs.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |