Package se.conciliate.extensions.store
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 TypeMethodDescriptionboolean
Returnstrue
if the current user has write permissions.boolean
Returnstrue
if the object can be edited by the current user right now.boolean
Returnstrue
if the current revision of the object is locked.
-
Method Details
-
isEditable
boolean isEditable()Returnstrue
if the object can be edited by the current user right now. -
hasWritePermission
boolean hasWritePermission()Returnstrue
if the current user has write permissions. Note this does not necessarily imply that the object is editable right now. -
isRevisionLocked
boolean isRevisionLocked()Returnstrue
if the current revision of the object is locked.
-