|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface DocumentFactory
A DocumentIdentityMap avoids the multiple instanciation of a document object.
| Method Summary | |
|---|---|
boolean |
existsPublication(java.lang.String id)
|
Document |
get(DocumentIdentifier identifier)
Returns a document. |
Document |
get(DocumentLocator locator)
|
Document |
get(Publication publication,
java.lang.String area,
java.lang.String uuid)
Builds a document for the default language. |
Document |
get(Publication publication,
java.lang.String area,
java.lang.String uuid,
java.lang.String language)
Returns a document. |
Document |
get(Publication publication,
java.lang.String area,
java.lang.String uuid,
java.lang.String language,
int revision)
Returns a revision of a document. |
Document |
getAreaVersion(Document document,
java.lang.String area)
Deprecated. use DocumentLocator.getAreaVersion(String) instead. |
Document |
getFromURL(java.lang.String webappUrl)
Returns the document identified by a certain web application URL. |
Document |
getLanguageVersion(Document document,
java.lang.String language)
Deprecated. use DocumentLocator.getLanguageVersion(String) instead. |
Publication |
getPublication(java.lang.String id)
|
Publication[] |
getPublications()
|
Session |
getSession()
|
boolean |
isDocument(java.lang.String webappUrl)
Checks if a webapp URL represents a document. |
| Methods inherited from interface org.apache.lenya.cms.repository.RepositoryItemFactory |
|---|
buildItem, getItemType |
| Method Detail |
|---|
Document get(DocumentIdentifier identifier)
throws DocumentBuildException
identifier - The identifier of the document.
DocumentBuildException - if the document does not exist.
Document get(Publication publication,
java.lang.String area,
java.lang.String uuid,
java.lang.String language)
throws DocumentBuildException
publication - The publication.area - The area.uuid - The document ID.language - The language.
DocumentBuildException - if the document does not exist.
Document get(Publication publication,
java.lang.String area,
java.lang.String uuid,
java.lang.String language,
int revision)
throws DocumentBuildException
publication - The publication.area - The area.uuid - The document ID.language - The language.revision - The revision..
DocumentBuildException - if the document does not exist.
Document getFromURL(java.lang.String webappUrl)
throws DocumentBuildException
webappUrl - The web application URL.
DocumentBuildException - if an error occurs.
Document getLanguageVersion(Document document,
java.lang.String language)
throws DocumentBuildException
DocumentLocator.getLanguageVersion(String) instead.
document - The document to clone.language - The language of the target document.
DocumentBuildException - if an error occurs.
Document getAreaVersion(Document document,
java.lang.String area)
throws DocumentBuildException
DocumentLocator.getAreaVersion(String) instead.
document - The document to clone.area - The area of the target document.
DocumentBuildException - if an error occurs.
Document get(Publication publication,
java.lang.String area,
java.lang.String uuid)
throws DocumentBuildException
publication - The publication.area - The area.uuid - The document UUID.
DocumentBuildException - if an error occurs.
boolean isDocument(java.lang.String webappUrl)
throws DocumentBuildException
webappUrl - A web application URL.
DocumentBuildException - if an error occurs.Session getSession()
Document get(DocumentLocator locator)
throws DocumentBuildException
locator - The locator.
DocumentBuildException - if an error occurs.
Publication getPublication(java.lang.String id)
throws PublicationException
id - The publication ID.
PublicationException - if the publication does not exist.Publication[] getPublications()
boolean existsPublication(java.lang.String id)
id - The publication ID.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||