com.atlassian.jira.admin.quicknav
Class CompositeFragmentAliasProvider

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

public class CompositeFragmentAliasProvider
extends Object
implements SimpleLinkAliasProvider

Composite implementation of SimpleLinkAliasProvider. Retrieves keywords from delegate providers and caches them by i18n context.

Since:
v4.4

Nested Class Summary
static class CompositeFragmentAliasProvider.ResettableLazyKeyToAliasesCache
          Resettable, lazy cache for link keys to results.
 
Constructor Summary
CompositeFragmentAliasProvider(com.atlassian.event.api.EventPublisher eventPublisher)
           
 
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
 

Constructor Detail

CompositeFragmentAliasProvider

public CompositeFragmentAliasProvider(com.atlassian.event.api.EventPublisher eventPublisher)
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.