Package se.conciliate.extensions.store
Interface MTDocumentTypeHeader
- All Superinterfaces:
Comparable<MTNamedObject>
,MTNamedObject
- All Known Subinterfaces:
MTDocumentType
Header interface for document types. Each repository maintains
a list of document types that can be connected to documents.
A document can have any number of different document types connected
to it within the same repository.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionexpand()
Returns aMTDocumentType
for this document type.Returns the time when the list was last modified.boolean
isTranslated
(MTLanguageHeader lang) Returns true if this document type is translated in the specifiec language.void
remove()
Removes this document type.Methods inherited from interface se.conciliate.extensions.store.MTNamedObject
compareTo, getID, getParentRevisionID, getTitle, getTitle, getUUID
-
Method Details
-
getLastModified
Date getLastModified()Returns the time when the list was last modified.- Returns:
- The last modified time.
-
isTranslated
Returns true if this document type is translated in the specifiec language.- Parameters:
lang
- The language.- Returns:
- true if this document type is translated in the specifiec language.
-
expand
Returns aMTDocumentType
for this document type. Beware that this might require querying the storage layer for more data.- Returns:
- A
MTDocumentType
representing this document type. - Throws:
MTAccessException
- Since:
- 3.0
-
remove
Removes this document type. This will remove the document type from all documents that uses it.- Throws:
MTAccessException
- Since:
- 3.0
-