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 classA table row that shows details about a specific file. -
Constructor Summary
ConstructorsConstructorDescriptionFileDetailsView(Run<?, ?> owner, String fileLink, RepositoryStatistics repositoryStatistics, CommitDecorator decorator) Creates a newFileDetailsViewinstance. -
Method Summary
Modifier and TypeMethodDescriptionedu.hm.hafner.echarts.LinesChartModelShould 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.TableModelgetTableModel(String id) booleanMethods inherited from class io.jenkins.plugins.datatables.DefaultAsyncTableContentProvider
getTableRows
-
Constructor Details
-
FileDetailsView
public FileDetailsView(Run<?, ?> owner, String fileLink, RepositoryStatistics repositoryStatistics, CommitDecorator decorator) Creates a newFileDetailsViewinstance.- 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:
getBuildTrendModelin interfaceio.jenkins.plugins.echarts.AsyncTrendChart
-
isTrendVisible
public boolean isTrendVisible()- Specified by:
isTrendVisiblein interfaceio.jenkins.plugins.echarts.AsyncTrendChart
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-
getFullPath
-
getTableModel
- Specified by:
getTableModelin interfaceio.jenkins.plugins.datatables.AsyncTableContentProvider
-