|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.tasks.util.BuildResult
hudson.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.
| Field Summary |
|---|
| Fields inherited from class hudson.plugins.tasks.util.BuildResult |
|---|
XSTREAM |
| Constructor Summary | |
|---|---|
TasksResult(hudson.model.AbstractBuild<?,?> build,
TasksParserResult 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,
TasksParserResult project,
java.lang.String high,
java.lang.String normal,
java.lang.String low)
Creates a new instance of TasksResult. |
|
| Method Summary | |
|---|---|
void |
doStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for high/normal/low distribution of the specified object. |
java.util.Collection<java.lang.String> |
getAvailablePriorities()
Returns the defined priorities. |
AnnotationContainer |
getContainer()
Gets the annotation container. |
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()
Returns the files of the project. |
java.lang.String |
getLocalizedPriority(java.lang.String priorityName)
Returns a localized priority name. |
MavenModule |
getModule(java.lang.String name)
Returns the module with the specified name. |
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 |
getNumberOfFiles()
Returns the number of scanned files in this project. |
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. |
protected java.lang.String |
getSerializationFileName()
Returns the name of the file to store the serialized annotations. |
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. |
| Methods inherited from class hudson.plugins.tasks.util.BuildResult |
|---|
getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getDataFile, getNumberOfAnnotations, getOwner, hasAnnotations, hasAnnotations, hasAnnotations, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, isCurrent |
| 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,
TasksParserResult 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 annotationshigh - tag identifiers indicating high prioritynormal - tag identifiers indicating normal prioritylow - tag identifiers indicating low priority
public TasksResult(hudson.model.AbstractBuild<?,?> build,
TasksParserResult 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 int getNumberOfFiles()
public int getNumberOfAnnotations()
public int getNumberOfAnnotations(Priority priority)
priority - the priority
public java.lang.String getDisplayName()
public int getDelta()
public java.util.Collection<JavaPackage> getPackages()
public JavaProject getProject()
protected java.lang.String getSerializationFileName()
getSerializationFileName in class BuildResult
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 AnnotationContainer getContainer()
getContainer in class BuildResultpublic MavenModule getModule(java.lang.String name)
name - the module to get
public java.util.List<java.lang.String> getPriorities()
public java.util.Collection<java.lang.String> getAvailablePriorities()
public java.lang.String getLocalizedPriority(java.lang.String priorityName)
priorityName - priority as String value
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 doStatistics(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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||