Tabnine Logo
HelpPathResolver
Code IndexAdd Tabnine to your IDE (free)

How to use
HelpPathResolver
in
com.atlassian.sal.api.message

Best Java code snippets using com.atlassian.sal.api.message.HelpPathResolver (Showing top 7 results out of 315)

origin: com.atlassian.jira/jira-webhooks-plugin

  public HelpPath getHelpPath(final String path) {
    return helpPathResolver.getHelpPath(path);
  }
}
origin: com.atlassian.soy/soy-template-plugin

  private String getHelpUrl(String helpKey) {
    return helpPathResolver.getHelpPath(helpKey).getUrl();
  }
}
origin: com.atlassian.jira.plugins/jira-healthcheck-plugin

public SupportHealthStatusBuilder(final I18nResolver i18nResolver, final HelpPathResolver helpPathResolver,
    final String defaultHelpLocation)
{
  this.i18nResolver = i18nResolver;
  this.helpLocation = helpPathResolver.getHelpPath(defaultHelpLocation).getUrl();
}
origin: com.atlassian.refapp/platform-ctk-plugin

@Test
public void helpPathResolverAcceptsNullKey() {
  helpPathResolver.getHelpPath(null);
}
origin: com.atlassian.monitor/atlassian-monitor-plugin

private void showDetail(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
  HelpPath helpPath = helpPathResolver.getHelpPath("atlassian.monitor.system.health.detail");
  String url = helpPath == null ? "" : helpPath.getUrl();
  // This is guaranteed not to be null as callers
  String path = request.getPathInfo();
  if (path != null) {
    String[] split = path.split("/");
    if (path.length() >= 4) {
      url += String.format("&issue=%s&%s", split[2], split[3]);
      Map<String, Object> params = ImmutableMap.of(
          "overviewUrl", baseUrl + "/plugins/servlet/system-health/overview",
          "nodes", monitoringService.findAllNodesWithAlerts(),
          "issueId", split[2],
          "pluginKey", split[3],
          "helpPath", url);
      render(response,
          "mon.system.health.detail",
          params);
    }
  } else {
    response.sendError(HttpServletResponse.SC_NOT_FOUND);
  }
}
origin: com.atlassian.monitor/atlassian-monitor-plugin

  private void showOverview(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    HelpPath helpPath = helpPathResolver.getHelpPath("atlassian.monitor.system.health");
    String url = helpPath == null ? "" : helpPath.getUrl();
    render(response, "mon.system.health.overview", ImmutableMap.of(
        "helpUrl", url,
        "components", monitoringService.findAllComponents(),
        "nodeNames", monitoringService.findAllNodesWithAlerts(),
        "plugins", monitoringService.findAllPluginsWithAlerts()
    ));
  }
}
origin: com.atlassian.refapp/platform-ctk-plugin

  @Test
  public void helpPathKeyAndUrlNeverNull() {
    HelpPath path = helpPathResolver.getHelpPath("blahblahblahblah_a_random_key");
    // we can verify this only if the path here isn't null
    if (path != null) {
      assertNotNull("HelpPath can never have null key", path.getKey());
      assertNotNull("HelpPath can never have null url", path.getUrl());
    }
  }
}
com.atlassian.sal.api.messageHelpPathResolver

Most used methods

  • getHelpPath

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • putExtra (Intent)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Menu (java.awt)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now