Record Class ViewSettings

java.lang.Object
java.lang.Record
se.diabol.jenkins.pipeline.model.ViewSettings

@ExportedBean(defaultVisibility=100) public record ViewSettings(int noOfPipelines, int noOfColumns, int updateInterval, boolean pagingEnabled, boolean showAggregatedPipeline, boolean showChanges, boolean showDescription, boolean showTotalBuildTime, boolean showTestResults, boolean showStaticAnalysisResults, boolean showPromotions, boolean showAbsoluteDateTime, boolean allowPipelineStart, boolean allowManualTriggers, boolean allowRebuild, boolean allowAbort) extends Record
The display and action options of a view, as the sources and the page script need them.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ViewSettings(int noOfPipelines, int noOfColumns, int updateInterval, boolean pagingEnabled, boolean showAggregatedPipeline, boolean showChanges, boolean showDescription, boolean showTotalBuildTime, boolean showTestResults, boolean showStaticAnalysisResults, boolean showPromotions, boolean showAbsoluteDateTime, boolean allowPipelineStart, boolean allowManualTriggers, boolean allowRebuild, boolean allowAbort)
    Creates an instance of a ViewSettings record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the allowAbort record component.
    boolean
    Returns the value of the allowManualTriggers record component.
    boolean
    Returns the value of the allowPipelineStart record component.
    boolean
    Returns the value of the allowRebuild record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the noOfColumns record component.
    int
    Returns the value of the noOfPipelines record component.
    boolean
    Returns the value of the pagingEnabled record component.
    boolean
    Returns the value of the showAbsoluteDateTime record component.
    boolean
    Returns the value of the showAggregatedPipeline record component.
    boolean
    Returns the value of the showChanges record component.
    boolean
    Returns the value of the showDescription record component.
    boolean
    Returns the value of the showPromotions record component.
    boolean
    Returns the value of the showStaticAnalysisResults record component.
    boolean
    Returns the value of the showTestResults record component.
    boolean
    Returns the value of the showTotalBuildTime record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the updateInterval record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ViewSettings

      public ViewSettings(int noOfPipelines, int noOfColumns, int updateInterval, boolean pagingEnabled, boolean showAggregatedPipeline, boolean showChanges, boolean showDescription, boolean showTotalBuildTime, boolean showTestResults, boolean showStaticAnalysisResults, boolean showPromotions, boolean showAbsoluteDateTime, boolean allowPipelineStart, boolean allowManualTriggers, boolean allowRebuild, boolean allowAbort)
      Creates an instance of a ViewSettings record class.
      Parameters:
      noOfPipelines - the value for the noOfPipelines record component
      noOfColumns - the value for the noOfColumns record component
      updateInterval - the value for the updateInterval record component
      pagingEnabled - the value for the pagingEnabled record component
      showAggregatedPipeline - the value for the showAggregatedPipeline record component
      showChanges - the value for the showChanges record component
      showDescription - the value for the showDescription record component
      showTotalBuildTime - the value for the showTotalBuildTime record component
      showTestResults - the value for the showTestResults record component
      showStaticAnalysisResults - the value for the showStaticAnalysisResults record component
      showPromotions - the value for the showPromotions record component
      showAbsoluteDateTime - the value for the showAbsoluteDateTime record component
      allowPipelineStart - the value for the allowPipelineStart record component
      allowManualTriggers - the value for the allowManualTriggers record component
      allowRebuild - the value for the allowRebuild record component
      allowAbort - the value for the allowAbort 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. All components in this record class 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.
    • noOfPipelines

      @Exported public int noOfPipelines()
      Returns the value of the noOfPipelines record component.
      Returns:
      the value of the noOfPipelines record component
    • noOfColumns

      @Exported public int noOfColumns()
      Returns the value of the noOfColumns record component.
      Returns:
      the value of the noOfColumns record component
    • updateInterval

      @Exported public int updateInterval()
      Returns the value of the updateInterval record component.
      Returns:
      the value of the updateInterval record component
    • pagingEnabled

      @Exported public boolean pagingEnabled()
      Returns the value of the pagingEnabled record component.
      Returns:
      the value of the pagingEnabled record component
    • showAggregatedPipeline

      @Exported public boolean showAggregatedPipeline()
      Returns the value of the showAggregatedPipeline record component.
      Returns:
      the value of the showAggregatedPipeline record component
    • showChanges

      @Exported public boolean showChanges()
      Returns the value of the showChanges record component.
      Returns:
      the value of the showChanges record component
    • showDescription

      @Exported public boolean showDescription()
      Returns the value of the showDescription record component.
      Returns:
      the value of the showDescription record component
    • showTotalBuildTime

      @Exported public boolean showTotalBuildTime()
      Returns the value of the showTotalBuildTime record component.
      Returns:
      the value of the showTotalBuildTime record component
    • showTestResults

      @Exported public boolean showTestResults()
      Returns the value of the showTestResults record component.
      Returns:
      the value of the showTestResults record component
    • showStaticAnalysisResults

      @Exported public boolean showStaticAnalysisResults()
      Returns the value of the showStaticAnalysisResults record component.
      Returns:
      the value of the showStaticAnalysisResults record component
    • showPromotions

      @Exported public boolean showPromotions()
      Returns the value of the showPromotions record component.
      Returns:
      the value of the showPromotions record component
    • showAbsoluteDateTime

      @Exported public boolean showAbsoluteDateTime()
      Returns the value of the showAbsoluteDateTime record component.
      Returns:
      the value of the showAbsoluteDateTime record component
    • allowPipelineStart

      @Exported public boolean allowPipelineStart()
      Returns the value of the allowPipelineStart record component.
      Returns:
      the value of the allowPipelineStart record component
    • allowManualTriggers

      @Exported public boolean allowManualTriggers()
      Returns the value of the allowManualTriggers record component.
      Returns:
      the value of the allowManualTriggers record component
    • allowRebuild

      @Exported public boolean allowRebuild()
      Returns the value of the allowRebuild record component.
      Returns:
      the value of the allowRebuild record component
    • allowAbort

      @Exported public boolean allowAbort()
      Returns the value of the allowAbort record component.
      Returns:
      the value of the allowAbort record component