|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.cms.publication.xsp.DocumentReferencesHelper
public class DocumentReferencesHelper
Helper class for finding references to the current document.
Constructor Summary | |
---|---|
DocumentReferencesHelper(java.util.Map objectModel)
Create a new DocumentReferencesHelper |
Method Summary | |
---|---|
protected java.lang.String[] |
getInternalLinks(java.io.File file)
Finds all internal links in the given file. |
Document[] |
getInternalReferences()
Find all internal references in the current document to documents which have not been published yet. |
Document[] |
getReferences(java.lang.String area)
Find a list of document-ids which have references to the current document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentReferencesHelper(java.util.Map objectModel) throws org.apache.cocoon.ProcessingException
objectModel
- the objectModel
org.apache.cocoon.ProcessingException
- if the page envelope could not be created.Method Detail |
---|
protected java.lang.String[] getInternalLinks(java.io.File file) throws javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException, org.xml.sax.SAXException, java.io.IOException
file
-
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
org.xml.sax.SAXException
java.io.IOException
public Document[] getReferences(java.lang.String area) throws org.apache.cocoon.ProcessingException
array
of documents if there are references,
an empty array
otherwise
org.apache.cocoon.ProcessingException
- if the search for references failed.public Document[] getInternalReferences() throws org.apache.cocoon.ProcessingException
array
of Document
of references
from the current document to documents which have not been published yet.
org.apache.cocoon.ProcessingException
- if the current document cannot be opened.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |