Class ForensicsViewModel

java.lang.Object
io.jenkins.plugins.datatables.DefaultAsyncTableContentProvider
io.jenkins.plugins.forensics.miner.ForensicsViewModel
All Implemented Interfaces:
ModelObject, io.jenkins.plugins.datatables.AsyncTableContentProvider

public class ForensicsViewModel extends io.jenkins.plugins.datatables.DefaultAsyncTableContentProvider implements ModelObject
Server side model that provides the data for the details view of the repository statistics. The layout of the associated view is defined corresponding jelly view 'index.jelly') in the ForensicsViewModel package.
Author:
Ullrich Hafner
  • Method Details

    • getOwner

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

      public String getDisplayName()
      Specified by:
      getDisplayName in interface ModelObject
    • getScmKey

      public String getScmKey()
    • getTableModel

      public ForensicsTableModel getTableModel(String id)
      Specified by:
      getTableModel in interface io.jenkins.plugins.datatables.AsyncTableContentProvider
    • getAuthorsModel

      @JavaScriptMethod public String getAuthorsModel()
      Returns the UI model for an ECharts doughnut chart that shows the severities.
      Returns:
      the UI model as JSON
    • getCommitsModel

      @JavaScriptMethod public String getCommitsModel()
      Returns the UI model for an ECharts doughnut chart that shows the severities.
      Returns:
      the UI model as JSON
    • getDynamic

      public Object getDynamic(String link, org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response)
      Returns a new sub page for the selected link.
      Parameters:
      link - the link to identify the sub page to show
      request - Stapler request
      response - Stapler response
      Returns:
      the new sub page