com.atlassian.confluence.renderer
Interface ShortcutLinksManager

All Known Implementing Classes:
DefaultShortcutLinksManager

public interface ShortcutLinksManager


Method Summary
 void addShortcutLink(java.lang.String key, ShortcutLinkConfig expandedValue)
           
 ShortcutLinkConfig getShortcutLinkConfig(java.lang.String key)
           
 java.util.Map<java.lang.String,ShortcutLinkConfig> getShortcutLinks()
           
 boolean hasShortcutLink(java.lang.String key)
           
 void removeShortcutLink(java.lang.String key)
           
 java.lang.String resolveDefaultLinkAlias(java.lang.String key, java.lang.String parameter)
          Resolves default alias.
 java.lang.String resolveShortcutUrl(java.lang.String key, java.lang.String parameter)
          Resolves shortcut url.
 void updateShortcutLinks(java.util.Map shortcutLinks)
           
 

Method Detail

getShortcutLinks

java.util.Map<java.lang.String,ShortcutLinkConfig> getShortcutLinks()

updateShortcutLinks

void updateShortcutLinks(java.util.Map shortcutLinks)

addShortcutLink

void addShortcutLink(java.lang.String key,
                     ShortcutLinkConfig expandedValue)

removeShortcutLink

void removeShortcutLink(java.lang.String key)

hasShortcutLink

boolean hasShortcutLink(java.lang.String key)

getShortcutLinkConfig

ShortcutLinkConfig getShortcutLinkConfig(java.lang.String key)

resolveShortcutUrl

java.lang.String resolveShortcutUrl(java.lang.String key,
                                    java.lang.String parameter)
Resolves shortcut url.

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

resolveDefaultLinkAlias

java.lang.String resolveDefaultLinkAlias(java.lang.String key,
                                         java.lang.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:
java.lang.IllegalArgumentException - if key does not exist. Call #hasShortcutLink() first.


Copyright © 2003-2014 Atlassian. All Rights Reserved.