Class IotPlugin

All Implemented Interfaces:
AmPlugin

public class IotPlugin extends AbstractNodeAmPlugin
Installs the IoT authentication nodes and services.
  • Constructor Details

    • IotPlugin

      public IotPlugin()
  • Method Details

    • getPluginVersion

      public String getPluginVersion()
      Description copied from interface: AmPlugin
      The plugin version. This must be in semver (semantic version) format.
      Returns:
      The version of the plugin.
      See Also:
    • upgrade

      public void upgrade(String fromVersion) throws PluginException
      Description copied from interface: AmPlugin
      This method will be called when the version returned by AmPlugin.getPluginVersion() is higher than the version already installed. This method will be called before the AmPlugin.onStartup() method.
      Specified by:
      upgrade in interface AmPlugin
      Overrides:
      upgrade in class AbstractNodeAmPlugin
      Parameters:
      fromVersion - The old version of the plugin that has been installed.
      Throws:
      PluginException
    • getNodesByVersion

      protected Map<String,Iterable<? extends Class<? extends Node>>> getNodesByVersion()
      Description copied from class: AbstractNodeAmPlugin
      Retrieve the Map of list of node classes that the plugin is providing. The mappings returned describe which nodes have been introduced in which version of this plugin. For example:
           return ImmutableMap.of(
                   "1.0.0", asList(ChoiceCollectorNode.class),
                   "2.0.0", asList(SetPersistentCookieNode.class));
       
      Tells that this node plugin's 1.0.0 version has introduced the ChoiceCollectorNode, the 2.0.0 version has introduced the SetPersistentCookieNode.
      Overrides:
      getNodesByVersion in class AbstractNodeAmPlugin
      Returns:
      The list of node classes.