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

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

public class ComponentsProjectTabPanel
extends AbstractProjectTabPanel


Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.projectpanel.impl.AbstractProjectTabPanel
descriptor
 
Constructor Summary
ComponentsProjectTabPanel(PermissionManager permissionManager, JiraAuthenticationContext authenticationContext, ProjectComponentManager projectComponentManager)
           
 
Method Summary
 String getFullName(String username)
          Returns full name of the user with given username.
 String getHtml(Browser browser)
          Run this tab panel for a given Browser action.
protected  boolean isComponentsFieldVisible(Long projectId)
          Returns true if the components field is visible in at least one scheme, false otherwise.
 boolean isUserExists(String username)
          Returns true if a user with given username exists, false otherwise.
 boolean showPanel(ProjectActionSupport action, org.ofbiz.core.entity.GenericValue project)
          Returns true if components field is visible and project has at least one component
 
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

ComponentsProjectTabPanel

public ComponentsProjectTabPanel(PermissionManager permissionManager,
                                 JiraAuthenticationContext authenticationContext,
                                 ProjectComponentManager projectComponentManager)
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 components field is visible and project has at least one component

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 component and components field is visible

isComponentsFieldVisible

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

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

isUserExists

public boolean isUserExists(String username)
Returns true if a user with given username exists, false otherwise.

Parameters:
username - username
Returns:
true if a user with given username exists, false otherwise.

getFullName

public String getFullName(String username)
Returns full name of the user with given username.

Parameters:
username - username
Returns:
full name of the user if found, given username if user not found, empty string if username was null


Copyright © 2002-2009 Atlassian. All Rights Reserved.