Klasse IssuesDetail
java.lang.Object
io.jenkins.plugins.datatables.DefaultAsyncTableContentProvider
io.jenkins.plugins.analysis.core.model.IssuesDetail
- Alle implementierten Schnittstellen:
ModelObject
,io.jenkins.plugins.datatables.AsyncTableContentProvider
- Bekannte direkte Unterklassen:
FixedWarningsDetail
public class IssuesDetail
extends io.jenkins.plugins.datatables.DefaultAsyncTableContentProvider
implements ModelObject
Build view that shows the details for a subset of issues.
- Autor:
- Ullrich Hafner
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungIssuesDetail
(Run<?, ?> owner, AnalysisResult result, edu.hm.hafner.analysis.Report report, edu.hm.hafner.analysis.Report newIssues, edu.hm.hafner.analysis.Report outstandingIssues, edu.hm.hafner.analysis.Report fixedIssues, String displayName, String url, StaticAnalysisLabelProvider labelProvider, Charset sourceEncoding) Creates a new detail model with the corresponding viewIssuesDetail/index.jelly
.IssuesDetail
(Run<?, ?> owner, AnalysisResult result, edu.hm.hafner.analysis.Report report, edu.hm.hafner.analysis.Report newIssues, edu.hm.hafner.analysis.Report outstandingIssues, edu.hm.hafner.analysis.Report fixedIssues, String displayName, String url, StaticAnalysisLabelProvider labelProvider, Charset sourceEncoding, HealthDescriptor healthDescriptor) Creates a new detail model with the corresponding viewIssuesDetail/index.jelly
.IssuesDetail
(Run<?, ?> owner, AnalysisResult result, StaticAnalysisLabelProvider labelProvider, HealthDescriptor healthDescriptor, Charset sourceEncoding) Creates a new detail model with the corresponding viewIssuesDetail/index.jelly
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
canDisplayFile
(edu.hm.hafner.analysis.Issue issue) Returns whether the affected file of the specified issue can be shown in the UI.getApi()
Gets the remote API for this action.getBuildTrend
(boolean isBuildOnXAxis) Veraltet.getBuildTrend
(String configuration) Returns the UI model for an ECharts line chart that shows the issues stacked by severity.getDetails
(String propertyName) Returns statics for the specified property.getDynamic
(String link, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) Returns a new sub page for the selected link.Returns the error messages of the static analysis run.getFileDisplayName
(edu.hm.hafner.analysis.Issue issue) Returns the short name for an absolute path name.edu.hm.hafner.analysis.Report
Returns all fixed issues of the associated static analysis run.getHealthTrend
(boolean isBuildOnXAxis) Veraltet.replaced bygetHealthTrend(String)
getHealthTrend
(String configuration) Returns the UI model for an ECharts line chart that shows the issues by tool.Returns the information messages of the static analysis run.edu.hm.hafner.analysis.Report
Returns all issues of the associated static analysis run.Returns the label provider to render the localized labels.getLocalizedSeverity
(edu.hm.hafner.analysis.Severity severity) Returns a localized severity name.edu.hm.hafner.analysis.Report
Returns all new issues of the associated static analysis run.getNewVersusFixedTrend
(boolean isBuildOnXAxis) Veraltet.replaced bygetNewVersusFixedTrend(String)
getNewVersusFixedTrend
(String configuration) Returns the UI model for an ECharts line chart that shows the new and fixed issues.edu.hm.hafner.analysis.Report
Returns all outstanding issues of the associated static analysis run.final Run
<?, ?> getOwner()
Returns the build as owner of this object.Returns the UI model for an ECharts doughnut chart that shows the severities.Returns the label provider for the localized tab names.io.jenkins.plugins.datatables.TableModel
getTableModel
(String id) Returns the UI model for the specified table.getToolsTrend
(boolean isBuildOnXAxis) Veraltet.replaced bygetToolsTrend(String)
getToolsTrend
(String configuration) Returns the UI model for an ECharts line chart that shows the issues by tool.Returns the UI model for an ECharts doughnut chart that shows the new, fixed, and outstanding issues.getUrl()
Returns the (relative) URL of this model object.getUrlForBuild
(String build, String detailsUrl) Returns the URL for same results of the selected build.boolean
Returns whether author and commit information should be shown or not.final boolean
Returns whether this build is the last available build.boolean
Returns whether SCM forensics will be shown or not.boolean
Returns whether a health report has been enabled.Resets the quality gate for the owner of this view.Von Klasse geerbte Methoden io.jenkins.plugins.datatables.DefaultAsyncTableContentProvider
getTableRows
-
Konstruktordetails
-
IssuesDetail
public IssuesDetail(Run<?, ?> owner, AnalysisResult result, edu.hm.hafner.analysis.Report report, edu.hm.hafner.analysis.Report newIssues, edu.hm.hafner.analysis.Report outstandingIssues, edu.hm.hafner.analysis.Report fixedIssues, String displayName, String url, StaticAnalysisLabelProvider labelProvider, Charset sourceEncoding) Creates a new detail model with the corresponding viewIssuesDetail/index.jelly
.- Parameter:
owner
- the associated build/run of this viewresult
- the analysis resultreport
- all issues that should be shown in this details viewnewIssues
- all new issuesoutstandingIssues
- all outstanding issuesfixedIssues
- all fixed issuesdisplayName
- the human-readable name of this view (shown in breadcrumb)url
- the relative URL of this viewlabelProvider
- the label provider for the static analysis toolsourceEncoding
- the encoding to use when displaying source files
-
IssuesDetail
public IssuesDetail(Run<?, ?> owner, AnalysisResult result, edu.hm.hafner.analysis.Report report, edu.hm.hafner.analysis.Report newIssues, edu.hm.hafner.analysis.Report outstandingIssues, edu.hm.hafner.analysis.Report fixedIssues, String displayName, String url, StaticAnalysisLabelProvider labelProvider, Charset sourceEncoding, HealthDescriptor healthDescriptor) Creates a new detail model with the corresponding viewIssuesDetail/index.jelly
.- Parameter:
owner
- the associated build/run of this viewresult
- the analysis resultreport
- all issues that should be shown in this details viewnewIssues
- all new issuesoutstandingIssues
- all outstanding issuesfixedIssues
- all fixed issuesdisplayName
- the human-readable name of this view (shown in breadcrumb)url
- the relative URL of this viewlabelProvider
- the label provider for the static analysis toolsourceEncoding
- the encoding to use when displaying source fileshealthDescriptor
- health descriptor
-
IssuesDetail
public IssuesDetail(Run<?, ?> owner, AnalysisResult result, StaticAnalysisLabelProvider labelProvider, HealthDescriptor healthDescriptor, Charset sourceEncoding) Creates a new detail model with the corresponding viewIssuesDetail/index.jelly
.- Parameter:
owner
- the associated build/run of this viewresult
- the analysis resultlabelProvider
- the label provider for the static analysis toolhealthDescriptor
- the health descriptorsourceEncoding
- the charset to visualize source files with
-
-
Methodendetails
-
getErrorMessages
Returns the error messages of the static analysis run.- Gibt zurück:
- the error messages
-
getInfoMessages
Returns the information messages of the static analysis run.- Gibt zurück:
- the information messages
-
getApi
Gets the remote API for this action. Depending on the path, a different result is selected.- Gibt zurück:
- the remote API
-
getLabelProvider
Returns the label provider to render the localized labels.- Gibt zurück:
- the label provider
-
getTableModel
Returns the UI model for the specified table.- Angegeben von:
getTableModel
in Schnittstelleio.jenkins.plugins.datatables.AsyncTableContentProvider
- Parameter:
id
- the ID of the table- Gibt zurück:
- the UI model as JSON
-
resetReference
Resets the quality gate for the owner of this view.- Gibt zurück:
- unused string (since Firefox requires that Ajax calls return something)
-
getUrlForBuild
Returns the URL for same results of the selected build.- Parameter:
build
- the selected build to open the new results fordetailsUrl
- the absolute URL to this details view results- Gibt zurück:
- the URL to the results or an empty string if the results are not available
-
getSeverityModel
Returns the UI model for an ECharts doughnut chart that shows the severities.- Gibt zurück:
- the UI model as JSON
-
getTrendModel
Returns the UI model for an ECharts doughnut chart that shows the new, fixed, and outstanding issues.- Gibt zurück:
- the UI model as JSON
-
getBuildTrend
Veraltet.replaced bygetBuildTrend(String)
Returns the UI model for an ECharts line chart that shows the issues stacked by severity.- Parameter:
isBuildOnXAxis
- determines whether the Jenkins build number should be used on the X-axis or the date- Gibt zurück:
- the UI model as JSON
-
getBuildTrend
Returns the UI model for an ECharts line chart that shows the issues stacked by severity.- Parameter:
configuration
- determines whether the Jenkins build number should be used on the X-axis or the date- Gibt zurück:
- the UI model as JSON
-
getToolsTrend
Veraltet.replaced bygetToolsTrend(String)
Returns the UI model for an ECharts line chart that shows the issues by tool.- Parameter:
isBuildOnXAxis
- determines whether the Jenkins build number should be used on the X-axis or the date- Gibt zurück:
- the UI model as JSON
-
getToolsTrend
Returns the UI model for an ECharts line chart that shows the issues by tool.- Parameter:
configuration
- determines whether the Jenkins build number should be used on the X-axis or the date- Gibt zurück:
- the UI model as JSON
-
getNewVersusFixedTrend
Veraltet.replaced bygetNewVersusFixedTrend(String)
Returns the UI model for an ECharts line chart that shows the new and fixed issues.- Parameter:
isBuildOnXAxis
- determines whether the Jenkins build number should be used on the X-axis or the date- Gibt zurück:
- the UI model as JSON
-
getNewVersusFixedTrend
Returns the UI model for an ECharts line chart that shows the new and fixed issues.- Parameter:
configuration
- determines whether the Jenkins build number should be used on the X-axis or the date- Gibt zurück:
- the UI model as JSON
-
getHealthTrend
Veraltet.replaced bygetHealthTrend(String)
Returns the UI model for an ECharts line chart that shows the issues by tool.- Parameter:
isBuildOnXAxis
- determines whether the Jenkins build number should be used on the X-axis or the date- Gibt zurück:
- the UI model as JSON
-
getHealthTrend
Returns the UI model for an ECharts line chart that shows the issues by tool.- Parameter:
configuration
- determines whether the Jenkins build number should be used on the X-axis or the date- Gibt zurück:
- the UI model as JSON
-
isHealthReportEnabled
public boolean isHealthReportEnabled()Returns whether a health report has been enabled.- Gibt zurück:
true
if health reporting is enabled,false
otherwise
-
getIssues
public edu.hm.hafner.analysis.Report getIssues()Returns all issues of the associated static analysis run.- Gibt zurück:
- all issues
-
getNewIssues
public edu.hm.hafner.analysis.Report getNewIssues()Returns all new issues of the associated static analysis run. I.e. all issues, that are part of the current report but have not been shown up in the previous report.- Gibt zurück:
- all new issues
-
getFixedIssues
public edu.hm.hafner.analysis.Report getFixedIssues()Returns all fixed issues of the associated static analysis run. I.e. all issues, that are part of the previous report but are not present in the current report anymore.- Gibt zurück:
- all fixed issues
-
getOutstandingIssues
public edu.hm.hafner.analysis.Report getOutstandingIssues()Returns all outstanding issues of the associated static analysis run. I.e. all issues, that are part of the current and previous report.- Gibt zurück:
- all outstanding issues
-
isBlameVisible
public boolean isBlameVisible()Returns whether author and commit information should be shown or not.- Gibt zurück:
- on
true
the SCM blames will be shown in the UI
-
isForensicsVisible
public boolean isForensicsVisible()Returns whether SCM forensics will be shown or not.- Gibt zurück:
- on
true
the SCM forensics will be shown in the UI
-
canDisplayFile
public boolean canDisplayFile(edu.hm.hafner.analysis.Issue issue) Returns whether the affected file of the specified issue can be shown in the UI.- Parameter:
issue
- the issue to get the affected file for- Gibt zurück:
true
if the file could be shown,false
otherwise
-
getFileDisplayName
Returns the short name for an absolute path name.- Parameter:
issue
- the issue to get the file name for- Gibt zurück:
- the file name
-
getTabLabelProvider
Returns the label provider for the localized tab names.- Gibt zurück:
- the label provider
-
getLocalizedSeverity
Returns a localized severity name.- Parameter:
severity
- the severity- Gibt zurück:
- localized severity name
-
getDetails
Returns statics for the specified property.- Parameter:
propertyName
- the name of the property- Gibt zurück:
- the statistics
-
getDisplayName
- Angegeben von:
getDisplayName
in SchnittstelleModelObject
-
getDynamic
public Object getDynamic(String link, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) Returns a new sub page for the selected link.- Parameter:
link
- the link to identify the sub page to showrequest
- Stapler requestresponse
- Stapler response- Gibt zurück:
- the new sub page
-
getOwner
Returns the build as owner of this object.- Gibt zurück:
- the owner
-
isCurrent
public final boolean isCurrent()Returns whether this build is the last available build.- Gibt zurück:
true
if this build is the last available build
-
getUrl
Returns the (relative) URL of this model object.- Gibt zurück:
- this model objects' URL
-
getBuildTrend(String)