Interface MTDocumentType

All Superinterfaces:
Comparable<MTNamedObject>, MTDocumentTypeHeader, MTHistoryEnabled, MTNamedObject

public interface MTDocumentType extends MTDocumentTypeHeader, MTHistoryEnabled
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 Details

    • setLastModified

      void setLastModified(Date lastModified)
      Overrides the last modified date of the list.
      Parameters:
      lastModified - The new last modified date.
    • setTitle

      void setTitle(String title)
      Sets the title in the current language.
      Parameters:
      title - The new title.
      Since:
      3.0
    • setTitle

      void setTitle(MTLanguageHeader language, String title)
      Sets the title in a given language.
      Parameters:
      language - The language.
      title - The new title.
      Since:
      3.0
    • setTranslated

      void setTranslated(MTLanguageHeader language, boolean translated)
      Sets the translated flag for the specified language. If translated is true, then this documenttype's title is concidered translated in the specified language, otherwise it is concidered not translated.
      Parameters:
      language - The language
      translated - true to specify that this documenttype's title is translated in the given language, false otherwise
    • save

      void save() throws MTAccessException
      Saves a new document type or changes to an existing one.
      Throws:
      MTAccessException
      Since:
      3.0