hudson.plugins.tasks
Class NewTasksDetail

java.lang.Object
  extended by hudson.plugins.tasks.util.model.AnnotationContainer
      extended by hudson.plugins.tasks.util.AbstractAnnotationsDetail
          extended by hudson.plugins.tasks.util.NewWarningsDetail
              extended by hudson.plugins.tasks.NewTasksDetail
All Implemented Interfaces:
hudson.model.ModelObject, AnnotationProvider, java.io.Serializable, java.lang.Comparable<AnnotationContainer>

public class NewTasksDetail
extends NewWarningsDetail

Result object to visualize the new open tasks in a build.

Author:
Ulli Hafner
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.plugins.tasks.util.model.AnnotationContainer
AnnotationContainer.Hierarchy
 
Constructor Summary
NewTasksDetail(hudson.model.AbstractBuild<?,?> owner, java.util.Collection<FileAnnotation> newTasks, java.lang.String defaultEncoding, java.lang.String header, java.lang.String high, java.lang.String normal, java.lang.String low)
          Creates a new instance of NewTasksDetail.
 
Method Summary
 java.util.Collection<java.lang.String> getAvailablePriorities()
          Returns all priorities that have a user defined tag.
 java.lang.String getDisplayName()
          
 java.lang.Object getDynamic(java.lang.String link, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Returns the dynamic result of this module detail view.
 Priority[] getPriorities()
          Returns all possible priorities.
 java.lang.String getTags(Priority priority)
          Returns the defined tags for the given priority.
 java.lang.String getTags(java.lang.String priority)
          Returns the defined tags for the given priority.
 
Methods inherited from class hudson.plugins.tasks.util.AbstractAnnotationsDetail
getDefaultEncoding, getHeader, getLocalizedPriority, getOwner, isCurrent
 
Methods inherited from class hudson.plugins.tasks.util.model.AnnotationContainer
addAnnotation, addAnnotations, addAnnotations, compareTo, containsCategory, containsFile, containsModule, containsPackage, containsType, equals, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getCategories, getCategory, getCategory, getContainer, getFile, getFile, getFiles, getHighAnnotations, getHighPriority, getLowAnnotations, getLowPriority, getModule, getModule, getModules, getName, getNormalAnnotations, getNormalPriority, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfHighAnnotations, getNumberOfLowAnnotations, getNumberOfNormalAnnotations, getPackage, getPackage, getPackageCategoryName, getPackages, getToolTip, getType, getType, getTypes, getUpperBound, hasAnnotations, hasAnnotations, hasAnnotations, hashCode, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, rebuildMappings, setHierarchy, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewTasksDetail

public NewTasksDetail(hudson.model.AbstractBuild<?,?> owner,
                      java.util.Collection<FileAnnotation> newTasks,
                      java.lang.String defaultEncoding,
                      java.lang.String header,
                      java.lang.String high,
                      java.lang.String normal,
                      java.lang.String low)
Creates a new instance of NewTasksDetail.

Parameters:
owner - the current build as owner of this result object
newTasks - all new open tasks
defaultEncoding - the default encoding to be used when reading and parsing files
header - header to be shown on detail page
high - tag identifiers indicating high priority
normal - tag identifiers indicating normal priority
low - tag identifiers indicating low priority
Method Detail

getDynamic

public java.lang.Object getDynamic(java.lang.String link,
                                   org.kohsuke.stapler.StaplerRequest request,
                                   org.kohsuke.stapler.StaplerResponse response)
Returns the dynamic result of this module detail view. Depending on the number of packages, one of the following detail objects is returned:

Overrides:
getDynamic in class AbstractAnnotationsDetail
Parameters:
link - the link to identify the sub page to show
request - Stapler request
response - Stapler response
Returns:
the dynamic result of this module detail view

getAvailablePriorities

public java.util.Collection<java.lang.String> getAvailablePriorities()
Returns all priorities that have a user defined tag.

Returns:
all priorities that have a user defined tag

getPriorities

public Priority[] getPriorities()
Returns all possible priorities.

Overrides:
getPriorities in class AbstractAnnotationsDetail
Returns:
all priorities

getTags

public final java.lang.String getTags(Priority priority)
Returns the defined tags for the given priority.

Parameters:
priority - the priority
Returns:
the defined tags for the given priority

getTags

public final java.lang.String getTags(java.lang.String priority)
Returns the defined tags for the given priority.

Parameters:
priority - the priority
Returns:
the defined tags for the given priority

getDisplayName

public java.lang.String getDisplayName()

Specified by:
getDisplayName in interface hudson.model.ModelObject
Overrides:
getDisplayName in class NewWarningsDetail


Copyright © 2009. All Rights Reserved.