Record Class MigrationView

java.lang.Object
java.lang.Record
com.axelor.workflow.migrate.MigrationView
Record Components:
sourceRevision - the revision whose positions rows describes, null for the unpinned group
targetRevision - the revision rows' targets were compiled from
parked - how many runs sit on the selected source

public record MigrationView(Long workflowId, String workflowName, Integer sourceRevision, Integer targetRevision, long parked, List<MigrationView.RevisionRef> sources, List<MigrationView.RevisionRef> revisions, List<MigrationView.Row> rows) extends Record
One opening of the parked-run mover: the two pickers and the selected revision pair's mapping.
  • Constructor Details

    • MigrationView

      public MigrationView(Long workflowId, String workflowName, Integer sourceRevision, Integer targetRevision, long parked, List<MigrationView.RevisionRef> sources, List<MigrationView.RevisionRef> revisions, List<MigrationView.Row> rows)
      Creates an instance of a MigrationView record class.
      Parameters:
      workflowId - the value for the workflowId record component
      workflowName - the value for the workflowName record component
      sourceRevision - the value for the sourceRevision record component
      targetRevision - the value for the targetRevision record component
      parked - the value for the parked record component
      sources - the value for the sources record component
      revisions - the value for the revisions record component
      rows - the value for the rows record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • workflowId

      public Long workflowId()
      Returns the value of the workflowId record component.
      Returns:
      the value of the workflowId record component
    • workflowName

      public String workflowName()
      Returns the value of the workflowName record component.
      Returns:
      the value of the workflowName record component
    • sourceRevision

      public Integer sourceRevision()
      Returns the value of the sourceRevision record component.
      Returns:
      the value of the sourceRevision record component
    • targetRevision

      public Integer targetRevision()
      Returns the value of the targetRevision record component.
      Returns:
      the value of the targetRevision record component
    • parked

      public long parked()
      Returns the value of the parked record component.
      Returns:
      the value of the parked record component
    • sources

      public List<MigrationView.RevisionRef> sources()
      Returns the value of the sources record component.
      Returns:
      the value of the sources record component
    • revisions

      public List<MigrationView.RevisionRef> revisions()
      Returns the value of the revisions record component.
      Returns:
      the value of the revisions record component
    • rows

      public List<MigrationView.Row> rows()
      Returns the value of the rows record component.
      Returns:
      the value of the rows record component