Interface MTEditState


public interface MTEditState
Describes the "editable" state of a model or symbol right. If isEditable returns true then the model/symbol can be edited. If not, use the other methods to determine which other conditions are blocking the user from writing to the model. Note that although the edit state says that a model is editable this is based on the state when the model was loaded. The client must still anticipate and handle exceptions thrown when models and symbols are out of date or are currently locked by another user.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the current user has write permissions.
    boolean
    Returns true if the object can be edited by the current user right now.
    boolean
    Returns true if the current revision of the object is locked.
  • Method Details

    • isEditable

      boolean isEditable()
      Returns true if the object can be edited by the current user right now.
    • hasWritePermission

      boolean hasWritePermission()
      Returns true if the current user has write permissions. Note this does not necessarily imply that the object is editable right now.
    • isRevisionLocked

      boolean isRevisionLocked()
      Returns true if the current revision of the object is locked.