com.atlassian.jira.plugin.projectpanel.impl
Class VersionDrillDownRenderer

java.lang.Object
  extended by com.atlassian.jira.plugin.projectpanel.impl.VersionDrillDownRenderer

public class VersionDrillDownRenderer
extends java.lang.Object

Renders a roadmap (or changelog) for a given context. This class is expected to run under a web request. It uses the user's session and quereys the web request for passed in parameters.

Since:
v4.0

Nested Class Summary
static class VersionDrillDownRenderer.RoadMapGraphingBean
          Helper class to draw progress charts.
static class VersionDrillDownRenderer.VersionHelperBean
          A helper that performs lucene searches.
 
Field Summary
static java.lang.String ALL_VERSIONS
           
protected  ApplicationProperties applicationProperties
           
static java.lang.String COLLAPSE_VERSION
           
protected  ConstantsManager constantsManager
           
static java.lang.String EXPAND_VERSION
           
protected  SearchProvider searchProvider
           
static int SUBSET_SIZE
          The number of versions to display on a single screen
protected  VersionManager versionManager
           
 
Constructor Summary
VersionDrillDownRenderer(JiraAuthenticationContext jiraAuthenticationContext, VersionManager versionManager, ApplicationProperties applicationProperties, ConstantsManager constantsManager, SearchProvider searchProvider, com.atlassian.velocity.VelocityManager velocityManager, SearchService searchService, FieldVisibilityManager fieldVisibilityManager)
           
 
Method Summary
 java.lang.String getHtml(BrowseContext ctx, java.lang.String uniqueKey, java.util.Collection<Version> versions)
          Retreives the html for a non-personal roadmap/changelog
 java.lang.String getHtml(BrowseContext ctx, java.lang.String uniqueKey, java.util.Collection<Version> versions, boolean isPersonal)
          Retreives the html for the roadmap.
 java.lang.String getNavigatorUrl(Project project, Version version, ProjectComponent component, boolean isPersonal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBSET_SIZE

public static final int SUBSET_SIZE
The number of versions to display on a single screen

See Also:
Constant Field Values

EXPAND_VERSION

public static final java.lang.String EXPAND_VERSION
See Also:
Constant Field Values

COLLAPSE_VERSION

public static final java.lang.String COLLAPSE_VERSION
See Also:
Constant Field Values

ALL_VERSIONS

public static final java.lang.String ALL_VERSIONS
See Also:
Constant Field Values

versionManager

protected final VersionManager versionManager

searchProvider

protected final SearchProvider searchProvider

constantsManager

protected final ConstantsManager constantsManager

applicationProperties

protected final ApplicationProperties applicationProperties
Constructor Detail

VersionDrillDownRenderer

public VersionDrillDownRenderer(JiraAuthenticationContext jiraAuthenticationContext,
                                VersionManager versionManager,
                                ApplicationProperties applicationProperties,
                                ConstantsManager constantsManager,
                                SearchProvider searchProvider,
                                com.atlassian.velocity.VelocityManager velocityManager,
                                SearchService searchService,
                                FieldVisibilityManager fieldVisibilityManager)
Method Detail

getHtml

public java.lang.String getHtml(BrowseContext ctx,
                                java.lang.String uniqueKey,
                                java.util.Collection<Version> versions)
Retreives the html for a non-personal roadmap/changelog

Parameters:
ctx - The context underwhich this is running
uniqueKey - a key that is unique ot this roadmap/changelog
versions - the list of versions for this context
Returns:
The escaped html of the roadmap

getHtml

public java.lang.String getHtml(BrowseContext ctx,
                                java.lang.String uniqueKey,
                                java.util.Collection<Version> versions,
                                boolean isPersonal)
Retreives the html for the roadmap.

Parameters:
ctx - The context underwhich this is running
uniqueKey - a key that is unique ot this roadmap/changelog
versions - the list of versions for this context
isPersonal - whether this is a persoal roadmap or not
Returns:
The escaped html of the roadmap

getNavigatorUrl

public java.lang.String getNavigatorUrl(Project project,
                                        Version version,
                                        ProjectComponent component,
                                        boolean isPersonal)


Copyright © 2002-2010 Atlassian. All Rights Reserved.