exists() Check if a document with the given document-uuid, language and in the given
area actually exists.
boolean
existsAreaVersion(String area) Checks if this document exists in a certain area.
Parameters: area - The area.
boolean
existsInAnyLanguage() Check if a document exists with the given document-uuid and the given area
independently of the given language.
boolean
existsTranslation(String language) Checks if a certain translation (language version) of this document exists.
Parameters: language - The language.
boolean
existsVersion(String area, String language) Checks if a translation of this document exists in a certain area.
Parameters: area - The area. Parameters: language - The language.
getLanguages() Returns all the languages this document is available in.
A document has one associated language (@see Document#getLanguage)
but there are possibly a number of other languages for which a
document with the same document-uuid is also available in.
long
getLastModified() Returns the date of the last modification of this document.
getVersion(String area, String language) Returns a translation of this document in a certain area.
Parameters: area - The area. Parameters: language - The language.
Check if a document with the given document-uuid, language and in the given
area actually exists.
true if the document exists, false otherwise throws: DocumentException - if an error occurs
Check if a document exists with the given document-uuid and the given area
independently of the given language.
true if a document with the given document-uuid and area exists, false otherwise throws: DocumentException - if an error occurs
Returns the date at which point the requested document is considered expired
a string in RFC 1123 date format throws: DocumentException - if an error occurs.
Returns all the languages this document is available in.
A document has one associated language (@see Document#getLanguage)
but there are possibly a number of other languages for which a
document with the same document-uuid is also available in.
An array of strings denoting the languages. throws: DocumentException - if an error occurs
Returns the date of the last modification of this document.
A date denoting the date of the last modification. throws: DocumentException - if an error occurs.
This is a shortcut to getLink().getNode().getPath().
The path of this document in the site structure. throws: DocumentException - if the document is not linked in the site structure.
Returns the URI to resolve the document's source.
The source can only be used for read-only access.
For write access, use
Document.getOutputStream() .
A string.
Returns a certain translation (language version) of this document.
Parameters: language - The language. A document. throws: DocumentException - if the language version doesn't exist.
Returns a translation of this document in a certain area.
Parameters: area - The area. Parameters: language - The language. A document. throws: DocumentException - if the area version doesn't exist.