hudson.plugins.tasks
Class TasksModuleDetail

java.lang.Object
  extended by hudson.plugins.tasks.util.model.AnnotationContainer
      extended by hudson.plugins.tasks.util.AbstractAnnotationsDetail
          extended by hudson.plugins.tasks.util.ModuleDetail
              extended by hudson.plugins.tasks.TasksModuleDetail
All Implemented Interfaces:
hudson.model.ModelObject, AnnotationProvider, java.io.Serializable

public class TasksModuleDetail
extends ModuleDetail

Represents the details of a maven module.

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
TasksModuleDetail(hudson.model.AbstractBuild<?,?> owner, MavenModule module, java.lang.String header, java.lang.String high, java.lang.String normal, java.lang.String low)
          Creates a new instance of ModuleDetail.
 
Method Summary
 java.util.Collection<java.lang.String> getAvailablePriorities()
          Returns all priorities that have a user defined tag.
 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.ModuleDetail
getDisplayName, getHeader, getToolTip
 
Methods inherited from class hudson.plugins.tasks.util.AbstractAnnotationsDetail
doStatistics, getLocalizedPriority, getOwner, isCurrent
 
Methods inherited from class hudson.plugins.tasks.util.model.AnnotationContainer
addAnnotation, addAnnotations, addAnnotations, containsCategory, containsFile, containsModule, containsPackage, containsType, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getCategories, getCategory, getContainer, getFile, getFile, getFiles, getHighAnnotations, getHighPriority, getLowAnnotations, getLowPriority, getModule, getModules, getName, getNormalAnnotations, getNormalPriority, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getPackage, getPackageCategoryName, getPackages, getToolTip, getType, getTypes, hasAnnotations, hasAnnotations, hasAnnotations, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, rebuildMappings, setHierarchy, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TasksModuleDetail

public TasksModuleDetail(hudson.model.AbstractBuild<?,?> owner,
                         MavenModule module,
                         java.lang.String header,
                         java.lang.String high,
                         java.lang.String normal,
                         java.lang.String low)
Creates a new instance of ModuleDetail.

Parameters:
owner - the current build as owner of this result object
high - tag identifiers indicating high priority
normal - tag identifiers indicating normal priority
low - tag identifiers indicating low priority
module - the selected module to show
header - header to be shown on detail page
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.

Overrides:
getDynamic in class AbstractAnnotationsDetail
Parameters:
link - the link containing the path to the selected workspace file (or package)
request - Stapler request
response - Stapler response
Returns:
the dynamic result of the FindBugs analysis (detail page for a package).

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


Copyright © 2008. All Rights Reserved.