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)
HintManager
getRandomHint
in interface HintManager
user
- current userjiraHelper
- JIRA helperpublic List<Hint> getAllHints(ApplicationUser user, JiraHelper jiraHelper)
HintManager
getAllHints
in interface HintManager
user
- current userjiraHelper
- JIRA helperpublic Hint getHintForContext(ApplicationUser remoteUser, JiraHelper jiraHelper, HintManager.Context context)
HintManager
HintManager.Context
this method returns a random
link for that context. May be null if no hints exist for the context specified.getHintForContext
in interface HintManager
remoteUser
- The current userjiraHelper
- JIRA helpercontext
- The context to display a hint forCopyright © 2002-2019 Atlassian. All Rights Reserved.