|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.view.dashboard.DashboardPortlet
hudson.plugins.analysis.dashboard.AbstractPortlet
hudson.plugins.analysis.dashboard.AbstractWarningsTablePortlet
hudson.plugins.analysis.collector.dashboard.WarningsTablePortlet
public class WarningsTablePortlet
A portlet that shows a table with the number of warnings in a job.
| Nested Class Summary | |
|---|---|
static class |
WarningsTablePortlet.WarningsPerJobDescriptor
Extension point registration. |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Constructor Summary | |
|---|---|
WarningsTablePortlet(String name,
boolean useImages,
boolean isCheckStyleActivated,
boolean isDryActivated,
boolean isFindBugsActivated,
boolean isPmdActivated,
boolean isOpenTasksActivated,
boolean isWarningsActivated,
boolean canHideZeroWarningsProjects)
Creates a new instance of WarningsTablePortlet. |
|
| Method Summary | |
|---|---|
protected Class<? extends hudson.plugins.analysis.core.AbstractProjectAction<?>> |
getAction()
|
String |
getCheckStyle(Collection<hudson.model.Job<?,?>> jobs)
Returns the number of Checkstyle warnings for the specified jobs. |
String |
getCheckStyle(hudson.model.Job<?,?> job)
Returns the number of Checkstyle warnings for the specified job. |
String |
getCompilerWarnings(hudson.model.Job<?,?> job)
Returns the total number of warnings for the specified job. |
String |
getDry(Collection<hudson.model.Job<?,?>> jobs)
Returns the number of Dry warnings for the specified jobs. |
String |
getDry(hudson.model.Job<?,?> job)
Returns the number of duplicate code warnings for the specified job. |
String |
getFindBugs(Collection<hudson.model.Job<?,?>> jobs)
Returns the number of FindBugs warnings for the specified jobs. |
String |
getFindBugs(hudson.model.Job<?,?> job)
Returns the number of FindBugs warnings for the specified job. |
String |
getPmd(Collection<hudson.model.Job<?,?>> jobs)
Returns the number of PMD warnings for the specified jobs. |
String |
getPmd(hudson.model.Job<?,?> job)
Returns the number of PMD warnings for the specified job. |
String |
getTasks(Collection<hudson.model.Job<?,?>> jobs)
Returns the number of open tasks for the specified jobs. |
String |
getTasks(hudson.model.Job<?,?> job)
Returns the number of open tasks for the specified job. |
String |
getTotal(Collection<hudson.model.Job<?,?>> jobs)
Returns the total number of warnings for all jobs. |
String |
getTotal(hudson.model.Job<?,?> job)
Returns the number of warnings for the specified job. |
boolean |
getUseImages()
Returns whether images should be used in the table header. |
String |
getWarnings(Collection<hudson.model.Job<?,?>> jobs)
Returns the number of compiler warnings for the specified jobs. |
boolean |
isCheckStyleActivated()
Returns whether CheckStyle results should be shown. |
boolean |
isDryActivated()
Returns whether DRY results should be shown. |
boolean |
isFindBugsActivated()
Returns whether FindBugs results should be shown. |
boolean |
isOpenTasksActivated()
Returns whether open tasks should be shown. |
boolean |
isPmdActivated()
Returns whether PMD results should be shown. |
boolean |
isTotalsVisible()
Returns whether the totals column should be shown. |
protected boolean |
isVisibleJob(hudson.model.Job<?,?> job)
|
boolean |
isWarningsActivated()
Returns whether compiler warnings results should be shown. |
boolean |
useIcons()
Returns whether icons should be used in the table header. |
| Methods inherited from class hudson.plugins.analysis.dashboard.AbstractWarningsTablePortlet |
|---|
filter, filterZeroWarningsJobs, getCanHideZeroWarningsProjects, getPluginName, getWarnings, getWarnings, getWarnings, selectAction, toInt |
| Methods inherited from class hudson.plugins.view.dashboard.DashboardPortlet |
|---|
all, getComparator, getDashboard, getDescriptor, getDisplayName, getId, getJob, getName, getUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@DataBoundConstructor
public WarningsTablePortlet(String name,
boolean useImages,
boolean isCheckStyleActivated,
boolean isDryActivated,
boolean isFindBugsActivated,
boolean isPmdActivated,
boolean isOpenTasksActivated,
boolean isWarningsActivated,
boolean canHideZeroWarningsProjects)
WarningsTablePortlet.
name - the name of the portletuseImages - determines whether images should be used in the table header.isCheckStyleActivated - determines whether to show the warnings from CheckstyleisDryActivated - determines whether to show the warnings from DRYisFindBugsActivated - determines whether to show the warnings from FindBugsisPmdActivated - determines whether to show the warnings from PMDisOpenTasksActivated - determines whether to show open tasksisWarningsActivated - determines whether to show compiler warningscanHideZeroWarningsProjects - determines if zero warnings projects should be hidden in the
table| Method Detail |
|---|
protected Class<? extends hudson.plugins.analysis.core.AbstractProjectAction<?>> getAction()
getAction in class hudson.plugins.analysis.dashboard.AbstractPortletpublic boolean getUseImages()
true if images should be used, false if
text should be usedpublic boolean useIcons()
true if icons should be used, false if
text should be usedpublic boolean isTotalsVisible()
true if the totals column should be shown, false otherwisepublic boolean isCheckStyleActivated()
true if CheckStyle results should be shown, false otherwisepublic boolean isDryActivated()
true if DRY results should be shown, false otherwisepublic boolean isFindBugsActivated()
true if FindBugs results should be shown, false otherwisepublic boolean isPmdActivated()
true if PMD results should be shown, false otherwisepublic boolean isOpenTasksActivated()
true if open tasks should be shown, false otherwisepublic boolean isWarningsActivated()
true if compiler warnings results should be shown, false otherwiseprotected boolean isVisibleJob(hudson.model.Job<?,?> job)
isVisibleJob in class hudson.plugins.analysis.dashboard.AbstractWarningsTablePortletpublic String getCheckStyle(hudson.model.Job<?,?> job)
job - the job to get the warnings for
public String getDry(hudson.model.Job<?,?> job)
job - the job to get the warnings for
public String getFindBugs(hudson.model.Job<?,?> job)
job - the job to get the warnings for
public String getPmd(hudson.model.Job<?,?> job)
job - the job to get the warnings for
public String getTasks(hudson.model.Job<?,?> job)
job - the job to get the tasks for
public String getCompilerWarnings(hudson.model.Job<?,?> job)
job - the job to get the warnings for
public String getTotal(hudson.model.Job<?,?> job)
job - the job to get the warnings for
public String getCheckStyle(Collection<hudson.model.Job<?,?>> jobs)
jobs - the jobs to get the warnings for
public String getDry(Collection<hudson.model.Job<?,?>> jobs)
jobs - the jobs to get the warnings for
public String getFindBugs(Collection<hudson.model.Job<?,?>> jobs)
jobs - the jobs to get the warnings for
public String getPmd(Collection<hudson.model.Job<?,?>> jobs)
jobs - the jobs to get the warnings for
public String getTasks(Collection<hudson.model.Job<?,?>> jobs)
jobs - the jobs to get the warnings for
public String getWarnings(Collection<hudson.model.Job<?,?>> jobs)
getWarnings in class hudson.plugins.analysis.dashboard.AbstractWarningsTablePortletjobs - the jobs to get the warnings for
public String getTotal(Collection<hudson.model.Job<?,?>> jobs)
jobs - the jobs to get the warnings for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||