public class DefaultHintManager extends Object implements HintManager
HintManager.HintManager.Context| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_HINTS_SECTION |
static String |
HINTS_PREFIX |
| Constructor and Description |
|---|
DefaultHintManager(com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String ALL_HINTS_SECTION
public static final String HINTS_PREFIX
public DefaultHintManager(com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager)
public Hint getRandomHint(ApplicationUser user, JiraHelper jiraHelper)
HintManagergetRandomHint in interface HintManageruser - current userjiraHelper - JIRA helperpublic List<Hint> getAllHints(ApplicationUser user, JiraHelper jiraHelper)
HintManagergetAllHints in interface HintManageruser - current userjiraHelper - JIRA helperpublic Hint getHintForContext(ApplicationUser remoteUser, JiraHelper jiraHelper, HintManager.Context context)
HintManagerHintManager.Context this method returns a random
link for that context. May be null if no hints exist for the context specified.getHintForContext in interface HintManagerremoteUser - The current userjiraHelper - JIRA helpercontext - The context to display a hint forCopyright © 2002-2022 Atlassian. All Rights Reserved.