com.atlassian.jira.hints
Class DefaultHintManager

java.lang.Object
  extended by com.atlassian.jira.hints.DefaultHintManager
All Implemented Interfaces:
HintManager

public class DefaultHintManager
extends Object
implements 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
static String ALL_HINTS_SECTION
           
static String HINTS_PREFIX
           
 
Constructor Summary
DefaultHintManager(JiraWebInterfaceManager webInterfaceManager)
           
 
Method Summary
 List<Hint> getAllHints(com.atlassian.crowd.embedded.api.User user, JiraHelper jiraHelper)
          Get all hints visible in given user context.
 Hint getHintForContext(com.atlassian.crowd.embedded.api.User remoteUser, JiraHelper jiraHelper, HintManager.Context context)
          Given a valid HintManager.Context this method returns a random link for that context.
 Hint getRandomHint(com.atlassian.crowd.embedded.api.User user, JiraHelper jiraHelper)
          Get random hint visible in given user context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DefaultHintManager

public DefaultHintManager(JiraWebInterfaceManager webInterfaceManager)
Method Detail

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 user
jiraHelper - 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 user
jiraHelper - 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 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


Copyright © 2002-2014 Atlassian. All Rights Reserved.