Class SilverpeasStringTemplateUtil


  • public class SilverpeasStringTemplateUtil
    extends Object
    • Field Detail

      • defaultComponentsDir

        public static final String defaultComponentsDir
      • customComponentsDir

        public static final String customComponentsDir
      • defaultCoreDir

        public static final String defaultCoreDir
      • customCoreDir

        public static final String customCoreDir
    • Constructor Detail

      • SilverpeasStringTemplateUtil

        public SilverpeasStringTemplateUtil()
    • Method Detail

      • isComponentTemplateExist

        public static boolean isComponentTemplateExist​(String rootPath,
                                                       String template)
        Is the specified template exists in the component templates home directory.
        Parameters:
        rootPath - the root path into components of the template file.
        template - the name of the template to check the existence (without the language and without the extension).
        Returns:
        true if the specified template exist for the specified Silverpeas component in the component templates home directory. False otherwise.