Class Revision

java.lang.Object
org.apache.nifi.web.Revision
All Implemented Interfaces:
Serializable

public class Revision extends Object implements Serializable
A model object representing a revision. Equality is defined as matching component ID and either a matching version number or matching non-empty client IDs.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • version

      private final Long version
      the version number
    • clientId

      private final String clientId
      the client ID
    • componentId

      private final String componentId
      the ID of the component that this revision belongs to, or null if the revision is not attached to any component but rather is attached to the entire data flow.
  • Constructor Details

    • Revision

      public Revision(Long version, String clientId, String componentId)
  • Method Details

    • getClientId

      public String getClientId()
    • getVersion

      public Long getVersion()
    • getComponentId

      public String getComponentId()
    • incrementRevision

      public Revision incrementRevision(String clientId)
      Returns a new Revision that has the same Client ID and Component ID as this one but with a larger version
      Returns:
      the updated Revision
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object