Class ContentVersion

java.lang.Object
io.jenkins.plugins.interactiveinput.view.ContentVersion
All Implemented Interfaces:
Serializable

public class ContentVersion extends Object implements Serializable
Metadata for one persisted version of a ReviewDocument's content.

The version bytes are stored as a separate file under $JENKINS_HOME/interactive-input/views/<docId>/v<index>.txt (so the metadata XML stays small); this record only carries who/when produced the version. Version 1 is the immutable original snapshot taken at step time; later versions are reviewer edits of the durable review copy (the original workspace file is never modified).

See Also:
  • Constructor Details

    • ContentVersion

      public ContentVersion(int index, @NonNull String editedBy, long editedTs, @NonNull String note)
  • Method Details

    • getIndex

      public int getIndex()
    • getEditedBy

      @NonNull public String getEditedBy()
    • getEditedTs

      public long getEditedTs()
    • getNote

      @NonNull public String getNote()
    • toJson

      @NonNull public net.sf.json.JSONObject toJson()