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

java.lang.Object
  extended by com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel
      extended by com.atlassian.jira.plugin.projectpanel.impl.VersionsProjectTabPanel
All Implemented Interfaces:
ProjectTabPanel

public class VersionsProjectTabPanel
extends AbstractProjectTabPanel


Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel
descriptor
 
Constructor Summary
VersionsProjectTabPanel(JiraAuthenticationContext authenticationContext, ProjectManager projectManager, VersionManager versionManager, ApplicationProperties applicationProperties, PermissionManager permissionManager)
           
 
Method Summary
 String getHtml(Browser browser)
          Run this tab panel for a given Browser action.
protected  boolean isFixForVersionsFieldVisible(Long projectId)
          Returns true if the fixfor versions field is visible in at least one scheme, false otherwise.
 boolean showPanel(ProjectActionSupport action, org.ofbiz.core.entity.GenericValue project)
          Returns true if versions field is visible and project has at least one version
 
Methods inherited from class com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel
getIssueConstant, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionsProjectTabPanel

public VersionsProjectTabPanel(JiraAuthenticationContext authenticationContext,
                               ProjectManager projectManager,
                               VersionManager versionManager,
                               ApplicationProperties applicationProperties,
                               PermissionManager permissionManager)
Method Detail

getHtml

public String getHtml(Browser browser)
Description copied from interface: ProjectTabPanel
Run this tab panel for a given Browser action.

Parameters:
browser - The current Browser action
Returns:
HTML result of the tab panel.

showPanel

public boolean showPanel(ProjectActionSupport action,
                         org.ofbiz.core.entity.GenericValue project)
Returns true if versions field is visible and project has at least one version

Specified by:
showPanel in interface ProjectTabPanel
Overrides:
showPanel in class AbstractProjectTabPanel
Parameters:
action - project action
project - project generic value
Returns:
true if project has at least one version and fixfor versions field is visible

isFixForVersionsFieldVisible

protected boolean isFixForVersionsFieldVisible(Long projectId)
Returns true if the fixfor versions field is visible in at least one scheme, false otherwise.

Parameters:
projectId - project ID
Returns:
true if the fixfor versions field is visible in at least one scheme, false otherwise.


Copyright © 2002-2008 Atlassian. All Rights Reserved.