com.atlassian.jira.portal.portlets
Class RoadMapPortlet

java.lang.Object
  extended by com.atlassian.jira.portal.PortletImpl
      extended by com.atlassian.jira.portal.portlets.RoadMapPortlet
All Implemented Interfaces:
Portlet

public class RoadMapPortlet
extends PortletImpl

Portlet implementation for the RoadMapPortlet. This portlet displays the upcoming Versions for selected projects. It is restricted to Versions with a release date X days from date run.

Since:
v3.11

Field Summary
 
Fields inherited from class com.atlassian.jira.portal.PortletImpl
applicationProperties, authenticationContext, permissionManager
 
Constructor Summary
RoadMapPortlet(JiraAuthenticationContext authCtx, PermissionManager permissionManager, ApplicationProperties appProps, SearchProvider searchProvider, ConstantsManager constantsManager, ProjectManager projectManager, VersionManager versionManager)
           
 
Method Summary
 PercentageGraphModel getGraphModelForVersion(Version version)
          Get the GraphModel for a given Version.
 String getText(String key)
          Get i18n text for key.
protected  Map getVelocityParams(PortletConfiguration portletConfiguration)
          Allow for the addition of additional Velocity parameters to the context.
 boolean isOverdue(Version version)
           
 
Methods inherited from class com.atlassian.jira.portal.PortletImpl
equals, getCornerThumbnail, getCornerThumbnailPath, getDescription, getDescriptor, getId, getIssueConstant, getListFromMultiSelectValue, getName, getObjectConfiguration, getPermission, getTemplateLocation, getThumbnailfile, getThumbnailPath, getViewHtml, hashCode, hasPermission, init, isEditablePortletConfig
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoadMapPortlet

public RoadMapPortlet(JiraAuthenticationContext authCtx,
                      PermissionManager permissionManager,
                      ApplicationProperties appProps,
                      SearchProvider searchProvider,
                      ConstantsManager constantsManager,
                      ProjectManager projectManager,
                      VersionManager versionManager)
Method Detail

getVelocityParams

protected Map getVelocityParams(PortletConfiguration portletConfiguration)
Description copied from class: PortletImpl
Allow for the addition of additional Velocity parameters to the context. Sub-classes may wish to override this to add their own object to the velocity context

Overrides:
getVelocityParams in class PortletImpl
Parameters:
portletConfiguration - portlet configuration
Returns:
map of velocity parameters, never null

isOverdue

public boolean isOverdue(Version version)

getGraphModelForVersion

public PercentageGraphModel getGraphModelForVersion(Version version)
                                             throws SearchException
Get the GraphModel for a given Version. This will calculate the percentage of issues resolved. This method gets called from rendering template

Parameters:
version - The Version to calculate percentages for.
Returns:
model representing a resolution bar graph.
Throws:
SearchException - when search throws an error.

getText

public String getText(String key)
Get i18n text for key.

Parameters:
key - key to retrieve property for
Returns:
i18n string


Copyright © 2002-2009 Atlassian. All Rights Reserved.