Class AbstractActionData

java.lang.Object
org.ametys.core.migration.action.data.impl.AbstractActionData
All Implemented Interfaces:
ActionData
Direct Known Subclasses:
JavaActionData, ManualActionData, ScriptActionData, SqlUpgradeActionData

public abstract class AbstractActionData extends Object implements ActionData
Representation of an upgrade line in the extension
  • Field Details

    • _versionNumber

      number of the version created by this migration
    • _type

      protected String _type
      Type of upgrade
    • _comment

      protected String _comment
      Comment about the action
    • _from

      protected String _from
      When an upgrade contains multiple upgrades, this represent the 1st upgrade impacted
    • _version

      protected Version _version
      Version used to determine the list of remaining upgrades
    • _pluginName

      protected String _pluginName
      Plugin containing the extension
    • _restartRequired

      protected boolean _restartRequired
      Is restart required after action
  • Constructor Details

    • AbstractActionData

      protected AbstractActionData(String versionNumber, Version version, String comment, String from, String type, String pluginName, Configuration configuration, boolean restartRequired) throws ConfigurationException
      Create the Upgrade based on the upgrade xml line Must contains id and type May contain restartAfter, component and/or file
      Parameters:
      versionNumber - version number of the action
      version - version concerned by this upgrade
      comment - The comment about this action
      from - if this actions is the equivalent of multiple actions, this is the version id just before the 1st action impacted by this action
      type - type of action
      pluginName - name of the plugin containing the extension
      configuration - the extension upgrade line to add
      restartRequired - true if a restart is required after the action
      Throws:
      ConfigurationException - id or type missing
  • Method Details