Interface ShortcutLinksManager
- All Known Implementing Classes:
DefaultShortcutLinksManager
public interface ShortcutLinksManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addShortcutLink
(String key, ShortcutLinkConfig expandedValue) boolean
hasShortcutLink
(String key) void
removeShortcutLink
(String key) resolveDefaultLinkAlias
(String key, String parameter) Resolves default alias.resolveShortcutUrl
(String key, String parameter) Resolves shortcut url.void
updateShortcutLinks
(Map shortcutLinks)
-
Method Details
-
getShortcutLinks
Map<String,ShortcutLinkConfig> getShortcutLinks() -
updateShortcutLinks
-
addShortcutLink
-
removeShortcutLink
-
hasShortcutLink
-
getShortcutLinkConfig
-
resolveShortcutUrl
Resolves shortcut url.- Parameters:
key
- the shortcut keyparameter
- parameter to substitute into shortcut- Returns:
- the resolved url.
- Throws:
IllegalArgumentException
- if key does not exist. Call #hasShortcutLink() first.
-
resolveDefaultLinkAlias
Resolves default alias.- 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
- Throws:
IllegalArgumentException
- if key does not exist. Call #hasShortcutLink() first.
-