Interface MTDataObject

All Superinterfaces:
Comparable<MTNamedObject>, MTNamedObject
All Known Subinterfaces:
MTCompleteModel, MTCompleteSwimlaneModel, MTCompleteSymbol, MTModel, MTModelHeader, MTSwimlaneModel, MTSymbol, MTSymbolHeader

public interface MTDataObject extends MTNamedObject
Header interface for data objects for the moment symbols and models.
Since:
3.2
  • Method Details

    • getType

      Type getType()
      Returns this objects Type, or null if no suitable type is found.
      Returns:
      this objects Type, or null if no suitable type is found.
    • getPrefix

      String getPrefix()
      Returns a short prefix used to identify this object. If used the prefix can be used for filtering/finding objects easier.
      Returns:
      a short prefix used to identify this object. If used the prefix can be used for filtering/finding objects easier.
    • isPrefixLocked

      boolean isPrefixLocked()
      Returns true if the prefix has been locked and cannot be modified.
      Returns:
      true if the prefix has been locked and cannot be modified.
    • getTypeID

      String getTypeID()
      Returns the type of this data object.
      Returns:
      The data object type.
      Since:
      3.0
    • getReferenceID

      String getReferenceID()
      Returns the reference ID for this data object. This is the UUID of the symbol unless another reference ID has been specified.
      Returns:
      The reference ID of the data object.
      Since:
      3.0
    • isTranslated

      boolean isTranslated()
      Returns true if the data object's title is translated in every language.
      Returns:
      true if translated.
      Since:
      3.1
    • isTranslated

      boolean isTranslated(MTLanguage lang)
      Returns true if the data object's title is marked as translated in the given language. If lang is the current default language true is always returned.
      Parameters:
      lang - the language to check for translation
      Returns:
      true if translated
      Since:
      3.1
    • getLastModified

      Date getLastModified()
      Returns the last date when this data object was modified.
      Returns:
      The data object last modified date.
      Since:
      3.0
    • getCreated

      Date getCreated()
      Returns the date when this data object was created.
      Returns:
      The data object's creation date.
      Since:
      3.0
    • getOwnerName

      String getOwnerName()
      Returns the name of the owner.
      Returns:
      The owners full name
      Since:
      3.0
    • isRevisionLocked

      boolean isRevisionLocked()
      Checks if the revision has been locked. A locked revision of an object can no longer be edited.
      Returns:
      true if the revision is locked, false otherwise.
      Since:
      3.0
    • getLastModifiedByName

      String getLastModifiedByName()
      Returns the name of the last modifier.
      Returns:
      The last modifiers full name
      Since:
      3.0