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 Link icon

    • getOwner Link icon

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

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

      public String getScmKey()
    • getTableModel Link icon

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

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

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

      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