public class DefaultShortcutLinksManager extends Object implements ShortcutLinksManager
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PROPERTIES |
Constructor and Description |
---|
DefaultShortcutLinksManager() |
Modifier and Type | Method and Description |
---|---|
void |
addShortcutLink(String key,
ShortcutLinkConfig shortcutLinkConfig)
Add a shortcut.
|
ShortcutLinkConfig |
getShortcutLinkConfig(String key) |
Map<String,ShortcutLinkConfig> |
getShortcutLinks() |
boolean |
hasShortcutLink(String key) |
void |
removeShortcutLink(String key) |
String |
resolveDefaultLinkAlias(String key,
String parameter)
Resolves default alias.
|
String |
resolveShortcutUrl(String key,
String parameter)
Resolves shortcut url.
|
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager) |
void |
updateShortcutLinks(Map shortcutLinks) |
public static final String DEFAULT_PROPERTIES
public Map<String,ShortcutLinkConfig> getShortcutLinks()
getShortcutLinks
in interface ShortcutLinksManager
public void addShortcutLink(String key, ShortcutLinkConfig shortcutLinkConfig)
addShortcutLink
in interface ShortcutLinksManager
public void removeShortcutLink(String key)
removeShortcutLink
in interface ShortcutLinksManager
public void updateShortcutLinks(Map shortcutLinks)
updateShortcutLinks
in interface ShortcutLinksManager
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
public boolean hasShortcutLink(String key)
hasShortcutLink
in interface ShortcutLinksManager
public ShortcutLinkConfig getShortcutLinkConfig(String key)
getShortcutLinkConfig
in interface ShortcutLinksManager
public String resolveShortcutUrl(String key, String parameter)
ShortcutLinksManager
resolveShortcutUrl
in interface ShortcutLinksManager
key
- the shortcut keyparameter
- parameter to substitute into shortcutpublic String resolveDefaultLinkAlias(String key, String parameter)
ShortcutLinksManager
resolveDefaultLinkAlias
in interface ShortcutLinksManager
key
- the shortcut keyparameter
- parameter to substitute into alias (if it has a variable)Copyright © 2003–2017 Atlassian. All rights reserved.