hudson.plugins.tasks.util.PrioritiesDetail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tasks Show documentation
Show all versions of tasks Show documentation
This plug-in scans the workspace files for open tasks
and generates a trend report.
package hudson.plugins.tasks.util;
import hudson.model.AbstractBuild;
import hudson.plugins.tasks.util.model.FileAnnotation;
import hudson.plugins.tasks.util.model.Priority;
import java.util.Collection;
/**
* Result object to visualize the priorities statistics of an annotation container.
*
* @author Ulli Hafner
*/
public class PrioritiesDetail extends AbstractAnnotationsDetail {
/** Unique identifier of this class. */
private static final long serialVersionUID = -5315146140343619856L;
/** Priority of the annotations. */
private final Priority priority;
/**
* Creates a new instance of ModuleDetail
.
*
* @param owner
* current build as owner of this action.
* @param annotations
* the package to show the details for
* @param priority
* the priority of all annotations
* @param defaultEncoding
* the default encoding to be used when reading and parsing files
* @param header
* header to be shown on detail page
*/
public PrioritiesDetail(final AbstractBuild, ?> owner, final Collection annotations, final Priority priority, final String defaultEncoding, final String header) {
super(owner, annotations, defaultEncoding, header, Hierarchy.PROJECT);
this.priority = priority;
}
/**
* Returns the header for the detail screen.
*
* @return the header
*/
@Override
public String getHeader() {
return getName() + " - " + priority.getLongLocalizedString();
}
/** {@inheritDoc} */
public String getDisplayName() {
return priority.getLongLocalizedString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy