|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.tasks.TasksResult
public class TasksResult
Represents the results of the task scanner. One instance of this class is persisted for each build via an XML file.
| Constructor Summary | |
|---|---|
TasksResult(hudson.model.AbstractBuild<?,?> build,
TasksProject project,
int previousNumberOfTasks,
java.lang.String high,
java.lang.String normal,
java.lang.String low)
Creates a new instance of TasksResult. |
|
TasksResult(hudson.model.AbstractBuild<?,?> build,
TasksProject project,
java.lang.String high,
java.lang.String normal,
java.lang.String low)
Creates a new instance of TasksResult. |
|
| Method Summary | |
|---|---|
void |
doModuleStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for high/normal/low distribution of a maven module. |
void |
doPackageStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for high/normal/low distribution of a java package. |
FileAnnotation |
getAnnotation(java.lang.String key)
|
java.util.Collection<FileAnnotation> |
getAnnotations()
|
java.util.Collection<FileAnnotation> |
getAnnotations(java.lang.String priority)
|
java.util.Collection<java.lang.String> |
getAvailablePriorities()
Returns the defined priorities. |
int |
getDelta()
Returns the delta between this build and the previous build. |
java.lang.String |
getDisplayName()
Returns the display name (bread crumb name) of this result. |
java.lang.Object |
getDynamic(java.lang.String link,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Returns the dynamic result of this tasks detail view. |
java.util.Collection<WorkspaceFile> |
getFiles()
|
int |
getNumberOfAnnotations()
Gets the number of tasks. |
int |
getNumberOfAnnotations(Priority priority)
Returns the total number of tasks of the specified priority for this object. |
int |
getNumberOfAnnotations(java.lang.String priority)
Returns the annotations of the specified priority for this object. |
int |
getNumberOfFiles()
Returns the number of scanned files in this project. |
hudson.model.AbstractBuild<?,?> |
getOwner()
Returns the build as owner of this action. |
java.lang.String |
getPackageCategoryName()
Returns the package category name for the scanned files. |
java.util.Collection<JavaPackage> |
getPackages()
Returns the packages in this project. |
java.util.List<java.lang.String> |
getPriorities()
Returns the actually used priorities. |
JavaProject |
getProject()
Returns the associated project of this result. |
java.lang.String |
getSummary()
Returns a summary message for the summary.jelly file. |
java.lang.String |
getTags(Priority priority)
Returns the tags for the specified priority. |
java.lang.String |
getTags(java.lang.String priority)
Returns the tags for the specified priority. |
java.lang.String |
getToolTip(java.lang.String name)
Returns a tooltip showing the distribution of priorities for the selected package. |
boolean |
hasAnnotations()
|
boolean |
hasAnnotations(java.lang.String priority)
|
boolean |
isCurrent()
Returns whether this result belongs to the last build. |
boolean |
isSingleModuleProject()
Returns whether we only have a single module. |
boolean |
isSinglePackageProject()
Returns whether we only have a single package. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TasksResult(hudson.model.AbstractBuild<?,?> build,
TasksProject project,
java.lang.String high,
java.lang.String normal,
java.lang.String low)
TasksResult.
build - the current build as owner of this actionproject - the parsed FindBugs resulthigh - tag identifiers indicating high prioritynormal - tag identifiers indicating normal prioritylow - tag identifiers indicating low priority
public TasksResult(hudson.model.AbstractBuild<?,?> build,
TasksProject project,
int previousNumberOfTasks,
java.lang.String high,
java.lang.String normal,
java.lang.String low)
TasksResult.
build - the current build as owner of this actionproject - the parsed FindBugs resultpreviousNumberOfTasks - the previous number of open taskshigh - tag identifiers indicating high prioritynormal - tag identifiers indicating normal prioritylow - tag identifiers indicating low priority| Method Detail |
|---|
public java.lang.String getSummary()
public final boolean isCurrent()
true if this result belongs to the last buildpublic final hudson.model.AbstractBuild<?,?> getOwner()
public int getNumberOfFiles()
JavaProjectpublic int getNumberOfAnnotations()
public int getNumberOfAnnotations(Priority priority)
priority - the priority
public int getNumberOfAnnotations(java.lang.String priority)
priority - the priority as a string object
public java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectpublic int getDelta()
public java.util.Collection<JavaPackage> getPackages()
public JavaProject getProject()
public java.lang.Object getDynamic(java.lang.String link,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
link - the link to the source coderequest - Stapler requestresponse - Stapler response
public java.lang.String getToolTip(java.lang.String name)
name - the package to show the distribution for
public boolean isSingleModuleProject()
true for single module projectspublic boolean isSinglePackageProject()
true for single module projectspublic java.util.List<java.lang.String> getPriorities()
public java.util.Collection<java.lang.String> getAvailablePriorities()
public final java.lang.String getTags(java.lang.String priority)
priority - the priority
public final java.lang.String getTags(Priority priority)
priority - the priority
public java.lang.String getPackageCategoryName()
public final void doModuleStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an error
public final void doPackageStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an errorpublic java.util.Collection<WorkspaceFile> getFiles()
public final boolean hasAnnotations()
public final boolean hasAnnotations(java.lang.String priority)
public final FileAnnotation getAnnotation(java.lang.String key)
public final java.util.Collection<FileAnnotation> getAnnotations()
public final java.util.Collection<FileAnnotation> getAnnotations(java.lang.String priority)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||