Class VersionsRootHelper

    • Method Detail

      • hasKnownPlugins

        public boolean hasKnownPlugins()
        true if the repository has registered plugins. Read the attribute /ametys:versions/@ametys:knownPlugins.
        Returns:
        true if there is at least one registered plugin
      • isAKnownPlugin

        public boolean isAKnownPlugin​(String plugin)
        true if the repository has already been launched with this plugin before. Read the attribute /ametys:versions/@ametys:knownPlugins.
        Parameters:
        plugin - the name of the plugin
        Returns:
        true if the plugin is already known
      • updateKnownPlugins

        public void updateKnownPlugins()
        Update the plugin names in the root versions object. Write the attribute /ametys:versions/@ametys:knownPlugins. Make sure not to "forget" plugins that are not here anymore, for example if we are in safe mode, there can be less plugins and that might cause problem if some extensions have failOnOldData.