Package se.conciliate.extensions.store
Interface MTRevisionInfo
public interface MTRevisionInfo
Contains information about a given revision of a model or symbol.
-
Method Summary
Modifier and TypeMethodDescriptionlong
getID()
Returns the ID of the revision.Returns the revision number of the parent revision.int
Returns the revisions number.Returns the current workflow state of the revision.default boolean
isFirst()
Checks if this is the first revision.boolean
isLocked()
Returnstrue
if the revision is locked.
-
Method Details
-
getID
long getID()Returns the ID of the revision. Note that this is always the ID of the model. TODO: rename to getModelID()- Returns:
- The ID of the revision.
- Since:
- 3.3
-
getRevision
int getRevision()Returns the revisions number. TODO: rename to getRevisionNo- Returns:
- The revision number of the revision.
- Since:
- 3.3
-
getParentRevision
Integer getParentRevision()Returns the revision number of the parent revision. TODO: rename to getParentRevisionNo- Returns:
- The revision number of the parent revision,
or
null
if this is revision 0. - Since:
- 3.3
-
isLocked
boolean isLocked()Returnstrue
if the revision is locked.- Returns:
true
if the revision is locked.- Since:
- 3.3
-
isFirst
default boolean isFirst()Checks if this is the first revision. -
getWorkflowState
WorkflowState getWorkflowState()Returns the current workflow state of the revision. For locked revisions this will always be APPROVED.
-