Class LayoutFileUtil


  • public class LayoutFileUtil
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      LayoutFileUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> getHtmlFilesFromThemeByHint​(java.lang.String themeId, java.lang.String hintStr)
      Get all html files from www or def directory in a given Theme.
      static java.util.List<java.lang.String> getHtmlFilesFromThemesByHint​(java.lang.String pageOrChannelType, java.lang.String channelId, boolean inheritedTheme, java.lang.String appliedThemes, java.lang.String hint)
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LayoutFileUtil

        public LayoutFileUtil()
    • Method Detail

      • getHtmlFilesFromThemesByHint

        public static java.util.List<java.lang.String> getHtmlFilesFromThemesByHint​(java.lang.String pageOrChannelType,
                                                                                    java.lang.String channelId,
                                                                                    boolean inheritedTheme,
                                                                                    java.lang.String appliedThemes,
                                                                                    java.lang.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 java.util.List<java.lang.String> getHtmlFilesFromThemeByHint​(java.lang.String themeId,
                                                                                   java.lang.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