Package io.jenkins.plugins.grading
Klasse AutoGradingViewModel
java.lang.Object
io.jenkins.plugins.grading.AutoGradingViewModel
- Alle implementierten Schnittstellen:
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
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetAnalysisIcon
(String id, String name) Returns the FontAwesome icon for the specified analysis tool.getDynamic
(String link, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) Returns a new subpage for the selected link.Run
<?, ?> getOwner()
getProgressModel
(int percentage) Returns the UI model for an ECharts progress chart.edu.hm.hafner.grading.AggregatedScore
getScore()
-
Methodendetails
-
getOwner
-
getDisplayName
- Angegeben von:
getDisplayName
in SchnittstelleModelObject
-
getScore
public edu.hm.hafner.grading.AggregatedScore getScore() -
getProgressModel
Returns the UI model for an ECharts progress chart.- Parameter:
percentage
- the percentage to show- Gibt zurück:
- the UI model as JSON
-
getAnalysisIcon
Returns the FontAwesome icon for the specified analysis tool. By default, a warning triangle is returned.- Parameter:
id
- the ID of the toolname
- 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 showrequest
- Stapler requestresponse
- Stapler response- Gibt zurück:
- the new subpage
-