public class

DefaultHintManager

extends Object
implements HintManager
java.lang.Object
   ↳ com.atlassian.jira.hints.DefaultHintManager

Class Overview

Default implementation of the HintManager.

Summary

Constants
String ALL_HINTS_SECTION
String HINTS_PREFIX
Public Constructors
DefaultHintManager(DynamicWebInterfaceManager webInterfaceManager)
Public Methods
List<Hint> getAllHints(ApplicationUser user, JiraHelper jiraHelper)
Get all hints visible in given user context.
Hint getHintForContext(ApplicationUser remoteUser, JiraHelper jiraHelper, HintManager.Context context)
Given a valid HintManager.Context this method returns a random link for that context.
Hint getRandomHint(ApplicationUser user, JiraHelper jiraHelper)
Get random hint visible in given user context.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.hints.HintManager

Constants

public static final String ALL_HINTS_SECTION

Constant Value: "jira.hints/all"

public static final String HINTS_PREFIX

Constant Value: "jira.hints/"

Public Constructors

public DefaultHintManager (DynamicWebInterfaceManager webInterfaceManager)

Public Methods

public List<Hint> getAllHints (ApplicationUser user, JiraHelper jiraHelper)

Get all hints visible in given user context.

Parameters
user current user
jiraHelper JIRA helper
Returns
  • all hints accessible to the user

public Hint getHintForContext (ApplicationUser remoteUser, JiraHelper jiraHelper, HintManager.Context context)

Given a valid HintManager.Context this method returns a random link for that context. May be null if no hints exist for the context specified.

Parameters
remoteUser The current user
jiraHelper JIRA helper
context The context to display a hint for
Returns
  • A random hint for the context specified or null if none exist

public Hint getRandomHint (ApplicationUser user, JiraHelper jiraHelper)

Get random hint visible in given user context.

Parameters
user current user
jiraHelper JIRA helper
Returns
  • random hint