com.atlassian.jira.admin.quicknav
Class StaticSimpleLinksAliasProvider

java.lang.Object
  extended by com.atlassian.jira.admin.quicknav.StaticSimpleLinksAliasProvider
All Implemented Interfaces:
SimpleLinkAliasProvider

public class StaticSimpleLinksAliasProvider
extends Object
implements SimpleLinkAliasProvider

Default implementation of SimpleLinkAliasProvider. Retrieves keywords from JIRA's i18n resources and caches them for better performance.

Only works for simple links based on static web items, that contain a parameter KEYWORD_PARAM_NAME.

Since:
v4.4

Field Summary
static String KEYWORD_PARAM_NAME
           
 
Constructor Summary
StaticSimpleLinksAliasProvider()
           
 
Method Summary
 Set<String> aliasesFor(SimpleLinkSection section, SimpleLink link, JiraAuthenticationContext ctx)
          

Get aliases for given simple link in given context.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEYWORD_PARAM_NAME

public static final String KEYWORD_PARAM_NAME
See Also:
Constant Field Values
Constructor Detail

StaticSimpleLinksAliasProvider

public StaticSimpleLinksAliasProvider()
Method Detail

aliasesFor

public Set<String> aliasesFor(SimpleLinkSection section,
                              SimpleLink link,
                              JiraAuthenticationContext ctx)
Description copied from interface: SimpleLinkAliasProvider

Get aliases for given simple link in given context.

If given link is not supported in given context, an empty set should be returned.

Specified by:
aliasesFor in interface SimpleLinkAliasProvider
Parameters:
section - main section of the link, may be null
link - link
ctx - authentication context
Returns:
set of aliases for given link, or empty set if link not supported by this provider


Copyright © 2002-2012 Atlassian. All Rights Reserved.