Class TagListScriptService

  • All Implemented Interfaces:
    org.xwiki.script.service.ScriptService

    @Component
    @Named("taglist")
    @Singleton
    @Unstable
    public class TagListScriptService
    extends Object
    implements org.xwiki.script.service.ScriptService
    Tools to manipulate the data needed for the tagList macro.
    Since:
    1.20.0
    Version:
    $Id$
    • Constructor Detail

      • TagListScriptService

        public TagListScriptService()
    • Method Detail

      • parseSpaces

        public String parseSpaces​(String userInput)
        Transforms the input of a user in the right format.
        Parameters:
        userInput - string with spaces
        Returns:
        returns the user input in the right format
      • getBins

        public Map<String,​List<String>> getBins​(List<String> tags)
        Handles the separation of tags into bins.
        Parameters:
        tags - list of tags
        Returns:
        the bins formed by the tags
      • getBinName

        public String getBinName​(char ch)
        Manages the process of identifying the Unicode block to which a character belongs.
        Parameters:
        ch - character for which we want to find the block
        Returns:
        block name