Class PortletUtils


  • public final class PortletUtils
    extends Object
    A utility class for the portlets.
    • Method Detail

      • getDefaultPortletsAsConfiguration

        public static String getDefaultPortletsAsConfiguration​(Run<?,​?> build)
        Get all the default portlets as configuration.
        Parameters:
        build - the build to get the portlets for.
        Returns:
        the json array configuration as string.
      • isValidConfiguration

        public static boolean isValidConfiguration​(@NonNull
                                                   String configuration)
        Validate the json configuration.
        Parameters:
        configuration - the configuration as json
        Returns:
        true, if the configuration is valid, else false.