Interface ShortcutLinksManager

    • Method Detail

      • updateShortcutLinks

        void updateShortcutLinks​(Map shortcutLinks)
      • removeShortcutLink

        void removeShortcutLink​(String key)
      • hasShortcutLink

        boolean hasShortcutLink​(String key)
      • resolveShortcutUrl

        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.
      • resolveDefaultLinkAlias

        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.