Class FileDetailsView
java.lang.Object
io.jenkins.plugins.datatables.DefaultAsyncTableContentProvider
io.jenkins.plugins.forensics.miner.FileDetailsView
- All Implemented Interfaces:
ModelObject
,io.jenkins.plugins.datatables.AsyncTableContentProvider
,io.jenkins.plugins.echarts.AsyncTrendChart
public class FileDetailsView
extends io.jenkins.plugins.datatables.DefaultAsyncTableContentProvider
implements ModelObject, io.jenkins.plugins.echarts.AsyncTrendChart
Creates a view for the selected link in the details table.
- Author:
- Giulia Del Bravo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A table row that shows details about a specific file. -
Constructor Summary
ConstructorsConstructorDescriptionFileDetailsView
(Run<?, ?> owner, String fileLink, RepositoryStatistics repositoryStatistics, CommitDecorator decorator) Creates a newFileDetailsView
instance. -
Method Summary
Modifier and TypeMethodDescriptionedu.hm.hafner.echarts.LinesChartModel
Should return a LinesChartModel for this file detailing the added and deleted lines over all commits analyzed.getCommitUrl
(String commit) Returns the repository URL for the specified commit.Run
<?, ?> getOwner()
io.jenkins.plugins.datatables.TableModel
getTableModel
(String id) boolean
Methods inherited from class io.jenkins.plugins.datatables.DefaultAsyncTableContentProvider
getTableRows
-
Constructor Details
-
FileDetailsView
public FileDetailsView(Run<?, ?> owner, String fileLink, RepositoryStatistics repositoryStatistics, CommitDecorator decorator) Creates a newFileDetailsView
instance.- Parameters:
owner
- the owner (build) of this viewfileLink
- the file the view should be created forrepositoryStatistics
- the whole repository statisticsdecorator
- renders commit links
-
-
Method Details
-
getOwner
-
createChartModel
public edu.hm.hafner.echarts.LinesChartModel createChartModel()Should return a LinesChartModel for this file detailing the added and deleted lines over all commits analyzed.- Returns:
- LinesChartModel for this file displaying deleted and added lines.
-
getCommitUrl
Returns the repository URL for the specified commit.- Parameters:
commit
- the commit to get the URL for- Returns:
- the repository URL
-
getBuildTrendModel
- Specified by:
getBuildTrendModel
in interfaceio.jenkins.plugins.echarts.AsyncTrendChart
-
isTrendVisible
public boolean isTrendVisible()- Specified by:
isTrendVisible
in interfaceio.jenkins.plugins.echarts.AsyncTrendChart
-
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
-
getFullPath
-
getTableModel
- Specified by:
getTableModel
in interfaceio.jenkins.plugins.datatables.AsyncTableContentProvider
-