Package se.conciliate.extensions.store
Interface MTDocumentType
- All Superinterfaces:
Comparable<MTNamedObject>
,MTDocumentTypeHeader
,MTHistoryEnabled
,MTNamedObject
Full 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 TypeMethodDescriptionvoid
save()
Saves a new document type or changes to an existing one.void
setLastModified
(Date lastModified) Overrides the last modified date of the list.void
Sets the title in the current language.void
setTitle
(MTLanguageHeader language, String title) Sets the title in a given language.void
setTranslated
(MTLanguageHeader language, boolean translated) Sets the translated flag for the specified language.Methods inherited from interface se.conciliate.extensions.store.MTDocumentTypeHeader
expand, getLastModified, isTranslated, remove
Methods inherited from interface se.conciliate.extensions.store.MTHistoryEnabled
getHistory, getID, getUUID
Methods inherited from interface se.conciliate.extensions.store.MTNamedObject
compareTo, getID, getParentRevisionID, getTitle, getTitle, getUUID
-
Method Details
-
setLastModified
Overrides the last modified date of the list.- Parameters:
lastModified
- The new last modified date.
-
setTitle
Sets the title in the current language.- Parameters:
title
- The new title.- Since:
- 3.0
-
setTitle
Sets the title in a given language.- Parameters:
language
- The language.title
- The new title.- Since:
- 3.0
-
setTranslated
Sets the translated flag for the specified language. Iftranslated
is true, then this documenttype's title is concidered translated in the specified language, otherwise it is concidered not translated.- Parameters:
language
- The languagetranslated
- true to specify that this documenttype's title is translated in the given language, false otherwise
-
save
Saves a new document type or changes to an existing one.- Throws:
MTAccessException
- Since:
- 3.0
-