public interface

ShortcutLinksManager

com.atlassian.confluence.renderer.ShortcutLinksManager
Known Indirect Subclasses

Summary

Public Methods
void addShortcutLink(String key, ShortcutLinkConfig expandedValue)
ShortcutLinkConfig getShortcutLinkConfig(String key)
Map<StringShortcutLinkConfig> 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 updateShortcutLinks(Map shortcutLinks)

Public Methods

public void addShortcutLink (String key, ShortcutLinkConfig expandedValue)

public ShortcutLinkConfig getShortcutLinkConfig (String key)

public Map<StringShortcutLinkConfig> getShortcutLinks ()

public boolean hasShortcutLink (String key)

public void removeShortcutLink (String key)

public String resolveDefaultLinkAlias (String key, String parameter)

Resolves default alias.

Parameters
key the shortcut key
parameter 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
Throws
IllegalArgumentException if key does not exist. Call #hasShortcutLink() first.

public String resolveShortcutUrl (String key, String parameter)

Resolves shortcut url.

Parameters
key the shortcut key
parameter parameter to substitute into shortcut
Returns
  • the resolved url.
Throws
IllegalArgumentException if key does not exist. Call #hasShortcutLink() first.

public void updateShortcutLinks (Map shortcutLinks)