com.atlassian.jira.portal.portlets
Class ProjectsPortlet

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

public class ProjectsPortlet
extends PortletImpl

Portlet that displays information about multiple projects.

Since:
v3.13

Field Summary
 
Fields inherited from class com.atlassian.jira.portal.PortletImpl
applicationProperties, authenticationContext, permissionManager
 
Constructor Summary
ProjectsPortlet(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, ApplicationProperties applicationProperties, com.atlassian.plugin.PluginAccessor pluginAccessor, ProjectManager projectManager, ConstantsManager constantsManager)
           
 
Method Summary
 String displayableItemsHtml(Project project)
           
 Collection getBrowseableProjectsInCategory(org.ofbiz.core.entity.GenericValue category)
          Retrieves a list of projects belonging to the specified category that the user has permission to see
 Map getPriorityStats(Long projectId)
           
 List getProjectTabPanels(Project project)
           
protected  Map getVelocityParams(PortletConfiguration portletConfiguration)
          Allow for the addition of additional Velocity parameters to the context.
 Boolean hasBrowsePermission(Project project)
           
 boolean hasDisplayableItems(Project project)
           
 Boolean isPriorityFieldVisible(Long projectId)
           
 
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

ProjectsPortlet

public ProjectsPortlet(JiraAuthenticationContext authenticationContext,
                       PermissionManager permissionManager,
                       ApplicationProperties applicationProperties,
                       com.atlassian.plugin.PluginAccessor pluginAccessor,
                       ProjectManager projectManager,
                       ConstantsManager constantsManager)
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

getBrowseableProjectsInCategory

public Collection getBrowseableProjectsInCategory(org.ofbiz.core.entity.GenericValue category)
Retrieves a list of projects belonging to the specified category that the user has permission to see

Parameters:
category - specify the category or null to retrieve a list of browseable projects that are not associated with any category
Returns:
collection of project generic values

hasBrowsePermission

public Boolean hasBrowsePermission(Project project)

getProjectTabPanels

public List getProjectTabPanels(Project project)

isPriorityFieldVisible

public Boolean isPriorityFieldVisible(Long projectId)

getPriorityStats

public Map getPriorityStats(Long projectId)

hasDisplayableItems

public boolean hasDisplayableItems(Project project)

displayableItemsHtml

public String displayableItemsHtml(Project project)


Copyright © 2002-2008 Atlassian. All Rights Reserved.