Klasse AutoGradingViewModel

java.lang.Object
io.jenkins.plugins.grading.AutoGradingViewModel
Alle implementierten Schnittstellen:
ModelObject

public class AutoGradingViewModel extends Object implements ModelObject
Server side model that provides the data for the details view of the autograding results. The layout of the associated view is defined in the corresponding jelly view 'index.jelly'.
Autor:
Eva-Maria Zeintl
  • Methodendetails

    • getOwner

      public Run<?,?> getOwner()
    • getDisplayName

      public String getDisplayName()
      Angegeben von:
      getDisplayName in Schnittstelle ModelObject
    • getScore

      public edu.hm.hafner.grading.AggregatedScore getScore()
    • getProgressModel

      public String getProgressModel(int percentage)
      Returns the UI model for an ECharts progress chart.
      Parameter:
      percentage - the percentage to show
      Gibt zurück:
      the UI model as JSON
    • getAnalysisIcon

      public String getAnalysisIcon(String id, String name)
      Returns the FontAwesome icon for the specified analysis tool. By default, a warning triangle is returned.
      Parameter:
      id - the ID of the tool
      name - the name of the tool
      Gibt zurück:
      the icon
    • getDynamic

      @CheckForNull public Object getDynamic(String link, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
      Returns a new subpage for the selected link.
      Parameter:
      link - the link to identify the subpage to show
      request - Stapler request
      response - Stapler response
      Gibt zurück:
      the new subpage