Interface MTVariable

All Superinterfaces:
MTHistoryEnabled

public interface MTVariable extends MTHistoryEnabled
Variable that can be used in a repository. The variable can have different values in different languages. This can be used for example to set different, easily changeable document roots for documents in different languages.
Since:
3.2
  • Field Details

  • Method Details

    • getID

      long getID()
      Returns the unique ID of the variable.
      Specified by:
      getID in interface MTHistoryEnabled
      Returns:
      The unique ID.
      Since:
      3.2
    • getLastModified

      Date getLastModified()
      Returns the time when the variable was last modified.
      Returns:
      The last modified time.
    • getType

      String getType()
      Returns the variable type.
      Returns:
      The variable type.
      Since:
      3.2
    • setType

      void setType(String type)
      Sets the variable type.
      Parameters:
      type - The new variable type.
      Since:
      3.2
    • getKey

      String getKey()
      Returns the variable key.
      Returns:
      The variable key.
      Since:
      3.2
    • setKey

      void setKey(String key)
      Sets the variable key.
      Parameters:
      key - The new variable key.
      Since:
      3.2
    • getValue

      String getValue()
      Returns the variable value.
      Returns:
      The variable value.
      Since:
      3.2
    • setLastModified

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

      void setValue(String value)
      Sets the variable value.
      Parameters:
      value - The new variable value.
      Since:
      3.2
    • getTitle

      String getTitle()
      Returns the title in the current language.
      Returns:
      the title.
      Since:
      3.2
    • getTitle

      String getTitle(MTLanguageHeader language)
      Returns the title in a given language.
      Parameters:
      language - The language.
      Returns:
      The title.
      Since:
      3.2
    • setTitle

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

      void setTitle(MTLanguageHeader lang, String value)
      Sets the title in a given language.
      Parameters:
      lang - The language.
      value - The new title.
      Since:
      3.2
    • save

      void save() throws MTAccessException
      Saves a new variable or saves changes to an existing variable.
      Throws:
      MTAccessException
      Since:
      3.2
    • remove

      void remove() throws MTAccessException
      Removes this variable.
      Throws:
      MTAccessException
      Since:
      3.2