Package com.atlassian.jira.hints
Class DefaultHintManager
java.lang.Object
com.atlassian.jira.hints.DefaultHintManager
- All Implemented Interfaces:
HintManager
Default implementation of the
HintManager.- Since:
- v4.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.hints.HintManager
HintManager.Context -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultHintManager(com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager) -
Method Summary
Modifier and TypeMethodDescriptiongetAllHints(ApplicationUser user, JiraHelper jiraHelper) Get all hints visible in given user context.getHintForContext(ApplicationUser remoteUser, JiraHelper jiraHelper, HintManager.Context context) Given a validHintManager.Contextthis method returns a random link for that context.getRandomHint(ApplicationUser user, JiraHelper jiraHelper) Get random hint visible in given user context.
-
Field Details
-
ALL_HINTS_SECTION
- See Also:
-
HINTS_PREFIX
- See Also:
-
-
Constructor Details
-
DefaultHintManager
public DefaultHintManager(com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager)
-
-
Method Details
-
getRandomHint
Description copied from interface:HintManagerGet random hint visible in given user context.- Specified by:
getRandomHintin interfaceHintManager- Parameters:
user- current userjiraHelper- JIRA helper- Returns:
- random hint
-
getAllHints
Description copied from interface:HintManagerGet all hints visible in given user context.- Specified by:
getAllHintsin interfaceHintManager- Parameters:
user- current userjiraHelper- JIRA helper- Returns:
- all hints accessible to the user
-
getHintForContext
public Hint getHintForContext(ApplicationUser remoteUser, JiraHelper jiraHelper, HintManager.Context context) Description copied from interface:HintManagerGiven a validHintManager.Contextthis method returns a random link for that context. May be null if no hints exist for the context specified.- Specified by:
getHintForContextin interfaceHintManager- Parameters:
remoteUser- The current userjiraHelper- JIRA helpercontext- The context to display a hint for- Returns:
- A random hint for the context specified or null if none exist
-