Class LayoutFileUtil


  • public class LayoutFileUtil
    extends Object
    Utility class for Layout file controller
    Since:
    8.1.0
    Version:
    $Revision: 17594 $ $Date: 2015-07-17 11:22:41 -0300 (Fri, 17 Jul 2015) $
    • Constructor Detail

      • LayoutFileUtil

        public LayoutFileUtil()
    • Method Detail

      • getHtmlFilesFromThemesByHint

        public static List<String> getHtmlFilesFromThemesByHint​(String pageOrChannelType,
                                                                String channelId,
                                                                boolean inheritedTheme,
                                                                String appliedThemes,
                                                                String hint)
                                                         throws PortalException
        Get Html files from a list of themes applied and his inheritance themes in a given channel or his parent, based on a given type
        Parameters:
        pageOrChannelType - specify if current type is one of the following lum_NewPage, lum_ExistingPage, lum_NewChannel, lum_ExistingChannel
        channelId - channel identifier used for theme inheritance.
        inheritedTheme - true if theme inheritance will be applied
        appliedThemes - string list of applied themes
        hint - a hint to be used as filter, if null ignore hint.
        Returns:
        list of html files related to all applied themes
        Throws:
        PortalException
        Since:
        8.1.0
      • getHtmlFilesFromThemeByHint

        public static List<String> getHtmlFilesFromThemeByHint​(String themeId,
                                                               String hintStr)
                                                        throws PortalException
        Get all html files from www or def directory in a given Theme.
        Parameters:
        themeId - a theme identifier
        hint - a hint to be used as filter, if null ignore hint.
        Returns:
        list of html files related to a given Theme root directory
        Throws:
        PortalException
        Since:
        8.1.0