|
||||||||||
| 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 |
doStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for high/normal/low distribution of the specified object. |
FileAnnotation |
getAnnotation(long key)
Returns the annotation with the specified key. |
FileAnnotation |
getAnnotation(java.lang.String key)
Returns the annotation with the specified key. |
java.util.Collection<FileAnnotation> |
getAnnotations()
Returns the annotations for this object. |
java.util.Collection<FileAnnotation> |
getAnnotations(Priority priority)
Returns the annotations of the specified priority for this object. |
java.util.Collection<FileAnnotation> |
getAnnotations(java.lang.String priority)
Returns the annotations of the specified priority for this object. |
java.util.Collection<java.lang.String> |
getAvailablePriorities()
Returns the defined priorities. |
AnnotationContainer |
getContainer()
|
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()
|
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 |
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. |
TasksProject |
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. |
boolean |
hasAnnotations()
Returns whether this objects has annotations. |
boolean |
hasAnnotations(Priority priority)
Returns whether this objects has annotations with the specified priority. |
boolean |
hasAnnotations(java.lang.String priority)
Returns whether this objects has annotations with the specified priority. |
boolean |
isCurrent()
Returns whether this result belongs to the last build. |
| 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()
TasksProjectpublic int getNumberOfAnnotations()
getNumberOfAnnotations in interface AnnotationProviderpublic int getNumberOfAnnotations(Priority priority)
getNumberOfAnnotations in interface AnnotationProviderpriority - the priority
public java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectpublic int getDelta()
public java.util.Collection<JavaPackage> getPackages()
public TasksProject 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 AnnotationContainer getContainer()
public 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()
public FileAnnotation getAnnotation(long key)
getAnnotation in interface AnnotationProviderkey - the key of the annotation
public FileAnnotation getAnnotation(java.lang.String key)
getAnnotation in interface AnnotationProviderkey - the key of the annotation as a long value in string representation
public java.util.Collection<FileAnnotation> getAnnotations(Priority priority)
getAnnotations in interface AnnotationProviderpriority - the priority
public java.util.Collection<FileAnnotation> getAnnotations(java.lang.String priority)
getAnnotations in interface AnnotationProviderpriority - the priority as a string object
public boolean hasAnnotations(Priority priority)
hasAnnotations in interface AnnotationProviderpriority - the priority
true if this objects has annotations.public boolean hasAnnotations(java.lang.String priority)
hasAnnotations in interface AnnotationProviderpriority - the priority as a string object
true if this objects has annotations.public final boolean hasAnnotations()
hasAnnotations in interface AnnotationProvidertrue if this objects has annotations.public java.util.Collection<FileAnnotation> getAnnotations()
getAnnotations in interface AnnotationProviderpublic int getNumberOfAnnotations(java.lang.String priority)
getNumberOfAnnotations in interface AnnotationProviderpriority - the priority as a string object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||