Class ClientContextUtil

  • public class ClientContextUtil
    extends Object
    • Constructor Detail

      • ClientContextUtil

        public ClientContextUtil()
    • Method Detail

      • getPlugins

        public static List<String> getPlugins​(ResourceResolver resourceResolver,
                                              String[] locations)
        Returns a list of plugins (paths to JS files) defined into specified locations. If 2 plugins have the same name, list will contain the one in the last location.
        resourceResolver - Resource resolver
        locations - Locations where to search for plugins
        a list of plugins path
      • getId

        public static String getId​(String idToFilter)
        Returns a valid DOM id based on a path or a random string (replaces invalid characters by "_").
        idToFilter - A repository path or a random string
        A valid DOM id or an empty string