Class ShowDashboardToolsMenuCondition

java.lang.Object
com.atlassian.jira.plugin.webfragment.conditions.ShowDashboardToolsMenuCondition
All Implemented Interfaces:
com.atlassian.plugin.web.api.baseconditions.BaseCondition, com.atlassian.plugin.web.Condition

public class ShowDashboardToolsMenuCondition extends Object implements com.atlassian.plugin.web.Condition
Decides wheter or not to show the Manage Dashboards link. This depends on if the user is logged in and if the dashboard is the default dashboard being viewed on the HOME page (rather than admin section).
Since:
v4.0
  • Field Details

  • Constructor Details

    • ShowDashboardToolsMenuCondition

      public ShowDashboardToolsMenuCondition(com.atlassian.gadgets.dashboard.spi.DashboardPermissionService dashboardPermissionService, PortalPageService portalPageService, UserManager userManager)
  • Method Details

    • init

      public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
      Specified by:
      init in interface com.atlassian.plugin.web.Condition
      Throws:
      com.atlassian.plugin.PluginParseException
    • shouldDisplay

      public boolean shouldDisplay(Map<String,Object> context)
      Specified by:
      shouldDisplay in interface com.atlassian.plugin.web.Condition