com.atlassian.jira.hints
Class DefaultHintManager
java.lang.Object
com.atlassian.jira.hints.DefaultHintManager
- All Implemented Interfaces:
- HintManager
public class DefaultHintManager
- extends Object
- implements HintManager
Default implementation of the HintManager
.
- Since:
- v4.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL_HINTS_SECTION
public static final String ALL_HINTS_SECTION
- See Also:
- Constant Field Values
HINTS_PREFIX
public static final String HINTS_PREFIX
- See Also:
- Constant Field Values
DefaultHintManager
public DefaultHintManager(JiraWebInterfaceManager webInterfaceManager)
getRandomHint
public Hint getRandomHint(com.atlassian.crowd.embedded.api.User user,
JiraHelper jiraHelper)
- Description copied from interface:
HintManager
- Get random hint visible in given user context.
- Specified by:
getRandomHint
in interface HintManager
- Parameters:
user
- current userjiraHelper
- JIRA helper
- Returns:
- random hint
getAllHints
public List<Hint> getAllHints(com.atlassian.crowd.embedded.api.User user,
JiraHelper jiraHelper)
- Description copied from interface:
HintManager
- Get all hints visible in given user context.
- Specified by:
getAllHints
in interface HintManager
- Parameters:
user
- current userjiraHelper
- JIRA helper
- Returns:
- all hints accessible to the user
getHintForContext
public Hint getHintForContext(com.atlassian.crowd.embedded.api.User remoteUser,
JiraHelper jiraHelper,
HintManager.Context context)
- Description copied from interface:
HintManager
- 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.
- Specified by:
getHintForContext
in interface HintManager
- 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
Copyright © 2002-2014 Atlassian. All Rights Reserved.