com.atlassian.jira.plugin.projectpanel.fragment.impl
Class ProjectAdminMenuFragment

java.lang.Object
  extended by com.atlassian.jira.plugin.projectpanel.fragment.impl.ProjectAdminMenuFragment
All Implemented Interfaces:
MenuFragment

public class ProjectAdminMenuFragment
extends Object
implements MenuFragment

Renders the Project Admin link

Since:
v4.4

Constructor Summary
ProjectAdminMenuFragment(PermissionManager permissionManager, VelocityRequestContextFactory requestContextFactory, I18nBean.CachingFactory i18nFactory)
           
 
Method Summary
 String getHtml(BrowseContext ctx)
          The Html representation of this menu.
 String getId()
          The id of the fragment div
 boolean showFragment(BrowseContext ctx)
          Whether or not to show this menu fragment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectAdminMenuFragment

public ProjectAdminMenuFragment(PermissionManager permissionManager,
                                VelocityRequestContextFactory requestContextFactory,
                                I18nBean.CachingFactory i18nFactory)
Method Detail

getId

public String getId()
Description copied from interface: MenuFragment
The id of the fragment div

Specified by:
getId in interface MenuFragment
Returns:
a valid html id string that represents this menu item/frag.

getHtml

public String getHtml(BrowseContext ctx)
Description copied from interface: MenuFragment
The Html representation of this menu. Typically an anchor followed by an unordered list.

Specified by:
getHtml in interface MenuFragment
Parameters:
ctx - The context under which this menu is being used. Project, component, version...
Returns:
valid html for this menu fragment

showFragment

public boolean showFragment(BrowseContext ctx)
Description copied from interface: MenuFragment
Whether or not to show this menu fragment.

Specified by:
showFragment in interface MenuFragment
Parameters:
ctx - The context under which this menu is being used. Project, component, version...
Returns:
true is the menu should be shown, false otherwise.


Copyright © 2002-2012 Atlassian. All Rights Reserved.