com.atlassian.confluence.renderer
Class DefaultShortcutLinksManager
java.lang.Object
com.atlassian.confluence.renderer.DefaultShortcutLinksManager
- All Implemented Interfaces:
- ShortcutLinksManager
public class DefaultShortcutLinksManager
- extends Object
- implements ShortcutLinksManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultShortcutLinksManager
public DefaultShortcutLinksManager()
getShortcutLinks
public Map<String,ShortcutLinkConfig> getShortcutLinks()
- Specified by:
getShortcutLinks
in interface ShortcutLinksManager
addShortcutLink
public void addShortcutLink(String key,
ShortcutLinkConfig shortcutLinkConfig)
- Add a shortcut. All shortcut keys will be stored as lowercase.
- Specified by:
addShortcutLink
in interface ShortcutLinksManager
removeShortcutLink
public void removeShortcutLink(String key)
- Specified by:
removeShortcutLink
in interface ShortcutLinksManager
updateShortcutLinks
public void updateShortcutLinks(Map shortcutLinks)
- Specified by:
updateShortcutLinks
in interface ShortcutLinksManager
setBandanaManager
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
hasShortcutLink
public boolean hasShortcutLink(String key)
- Specified by:
hasShortcutLink
in interface ShortcutLinksManager
getShortcutLinkConfig
public ShortcutLinkConfig getShortcutLinkConfig(String key)
- Specified by:
getShortcutLinkConfig
in interface ShortcutLinksManager
resolveShortcutUrl
public String resolveShortcutUrl(String key,
String parameter)
- Description copied from interface:
ShortcutLinksManager
- Resolves shortcut url.
- Specified by:
resolveShortcutUrl
in interface ShortcutLinksManager
- Parameters:
key
- the shortcut keyparameter
- parameter to substitute into shortcut
- Returns:
- the resolved url.
resolveDefaultLinkAlias
public String resolveDefaultLinkAlias(String key,
String parameter)
- Description copied from interface:
ShortcutLinksManager
- Resolves default alias.
- Specified by:
resolveDefaultLinkAlias
in interface ShortcutLinksManager
- Parameters:
key
- the shortcut keyparameter
- parameter to substitute into alias (if it has a variable)
- Returns:
- the resolved alias or empty string if no default alias is defined for the specified shortcut key
Copyright © 2003-2013 Atlassian. All Rights Reserved.