|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DocumentBuilder
A document builder builds a document from a URL.
Field Summary | |
---|---|
static java.lang.String |
ROLE
The Avalon role. |
Method Summary | |
---|---|
java.lang.String |
buildCanonicalUrl(DocumentFactory factory,
DocumentLocator locator)
Builds an URL corresponding to a CMS document. |
DocumentLocator |
getLocator(DocumentFactory factory,
java.lang.String webappUrl)
Returns a document for a web application URL. |
boolean |
isDocument(DocumentFactory factory,
java.lang.String url)
Checks if an URL corresponds to a CMS document. |
boolean |
isValidDocumentName(java.lang.String documentName)
Checks if a document name is valid. |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
DocumentLocator getLocator(DocumentFactory factory, java.lang.String webappUrl) throws DocumentBuildException
factory
- The factory.webappUrl
- The web application URL.
DocumentBuildException
- if an error occurs.boolean isDocument(DocumentFactory factory, java.lang.String url) throws DocumentBuildException
factory
- The document factory.url
- The URL of the form /{publication-id}/...
DocumentBuildException
- when something went wrong.java.lang.String buildCanonicalUrl(DocumentFactory factory, DocumentLocator locator)
factory
- The document factory.locator
- The locator.
boolean isValidDocumentName(java.lang.String documentName)
documentName
- The document name.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |