Class PluginUtils


  • public class PluginUtils
    extends Object
    The Class PluginUtils.
    • Constructor Detail

      • PluginUtils

        public PluginUtils()
    • Method Detail

      • isCore

        public static boolean isCore​(String strPluginName)
        Checks if is core.
        Parameters:
        strPluginName - plugin name
        Returns:
        true if core or lutece-core, false otherwise.
      • getCoreXMLFile

        public static String getCoreXMLFile​(String strComponentPath)
        Gets the core XML file.
        Parameters:
        strComponentPath - the str component path
        Returns:
        the core XML file
      • getPluginXMLFile

        public static String[] getPluginXMLFile​(String strComponentPath)
        Gets the plugin XML file.
        Parameters:
        strComponentPath - the str component path
        Returns:
        the plugin XML file
      • getAppInfoFile

        public static String getAppInfoFile​(String strBasePath)
        Gets the app info file.
        Parameters:
        strBasePath - the str base path
        Returns:
        the app info file
      • updateAppInfoFile

        public static boolean updateAppInfoFile​(String strFile,
                                                String strVersion,
                                                CommandResult commandResult)
        Update app info file.
        Parameters:
        strFile - the str file
        strVersion - the str version
        commandResult - the command result
        Returns:
        true, if successful
      • updatePluginXMLVersion

        public static String updatePluginXMLVersion​(String strFile,
                                                    String strNewVersion,
                                                    CommandResult commandResult)
        Update plugin XML version.
        Parameters:
        strFile - the str file
        strNewVersion - the str new version
        commandResult - the command result
        Returns:
        the string