|
||||||||||
| 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
public abstract class AbstractWarningsTablePortlet
A portlet that shows a table with the number of warnings in the selected jobs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Constructor Summary | |
|---|---|
AbstractWarningsTablePortlet(String name)
Creates a new instance of AbstractWarningsTablePortlet. |
|
AbstractWarningsTablePortlet(String name,
boolean canHideZeroWarningsProjects)
Creates a new instance of AbstractWarningsTablePortlet. |
|
| Method Summary | |
|---|---|
protected Collection<hudson.model.Job<?,?>> |
filter(Collection<hudson.model.Job<?,?>> jobs)
Filters the specified collection of jobs using overridable method isVisibleJob(Job). |
Collection<hudson.model.Job<?,?>> |
filterZeroWarningsJobs(Collection<hudson.model.Job<?,?>> jobs)
Returns all jobs that have warnings. |
boolean |
getCanHideZeroWarningsProjects()
Returns whether zero warnings projects should be hidden in the table. |
protected String |
getPluginName()
Deprecated. is not used anymore, the URL is resolved from the actions |
String |
getWarnings(Collection<hudson.model.Job<?,?>> jobs)
Returns the number of compiler warnings for the specified jobs. |
String |
getWarnings(Collection<hudson.model.Job<?,?>> jobs,
String priority)
Returns the number of compiler warnings for the specified jobs. |
String |
getWarnings(hudson.model.Job<?,?> job)
Returns the total number of warnings for the specified job. |
String |
getWarnings(hudson.model.Job<?,?> job,
String priority)
Returns the total number of warnings for the specified job. |
protected boolean |
isVisibleJob(hudson.model.Job<?,?> job)
Returns whether the specified job is visible. |
protected AbstractProjectAction<?> |
selectAction(hudson.model.Job<?,?> job)
Selects the action to show the results from. |
protected int |
toInt(String value)
Converts the string to an integer. |
| Methods inherited from class hudson.plugins.analysis.dashboard.AbstractPortlet |
|---|
getAction |
| 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 |
|---|
public AbstractWarningsTablePortlet(String name)
AbstractWarningsTablePortlet.
name - the name of the portlet
public AbstractWarningsTablePortlet(String name,
boolean canHideZeroWarningsProjects)
AbstractWarningsTablePortlet.
name - the name of the portletcanHideZeroWarningsProjects - determines if zero warnings projects should be hidden in the
table| Method Detail |
|---|
public boolean getCanHideZeroWarningsProjects()
true then only projects that contain warnings are
shown, false all projects are shownpublic Collection<hudson.model.Job<?,?>> filterZeroWarningsJobs(Collection<hudson.model.Job<?,?>> jobs)
jobs - all jobs
protected Collection<hudson.model.Job<?,?>> filter(Collection<hudson.model.Job<?,?>> jobs)
isVisibleJob(Job).
jobs - the jobs to filter
filter predicateprotected boolean isVisibleJob(hudson.model.Job<?,?> job)
job - the job to check
true if the job is visible, false
otherwise@Deprecated protected String getPluginName()
public String getWarnings(Collection<hudson.model.Job<?,?>> jobs)
jobs - the jobs to get the warnings for
public String getWarnings(Collection<hudson.model.Job<?,?>> jobs,
String priority)
jobs - the jobs to get the warnings forpriority - the priority
protected int toInt(String value)
value - the value to convert
public String getWarnings(hudson.model.Job<?,?> job)
job - the job to get the warnings for
public String getWarnings(hudson.model.Job<?,?> job,
String priority)
job - the job to get the warnings forpriority - the priority
@CheckForNull protected AbstractProjectAction<?> selectAction(hudson.model.Job<?,?> job)
job - the job to get the action from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||