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 Summary
Fields Modifier and Type Field Description protected String
_comment
Comment about the actionprotected String
_from
When an upgrade contains multiple upgrades, this represent the 1st upgrade impactedprotected String
_pluginName
Plugin containing the extensionprotected String
_type
Type of upgradeprotected Version
_version
Version used to determine the list of remaining upgradesprotected String
_versionNumber
number of the version created by this migration
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractActionData(String versionNumber, Version version, String comment, String from, String type, String pluginName, Configuration configuration)
Create the Upgrade based on the upgrade xml line Must contains id and type May contain restartAfter, component and/or file
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComment()
Get the comment about this actionString
getFrom()
Get the upgrade "from" fieldString
getPluginName()
Get the name of the plugin of the extensionString
getType()
Get the upgrade typeVersion
getVersion()
Get the version to apply this upgrade onString
getVersionNumber()
Get the upgrade version numberString
toString()
-
-
-
Field Detail
-
_versionNumber
protected String _versionNumber
number of the version created by this migration
-
_from
protected String _from
When an upgrade contains multiple upgrades, this represent the 1st upgrade impacted
-
_pluginName
protected String _pluginName
Plugin containing the extension
-
-
Constructor Detail
-
AbstractActionData
protected AbstractActionData(String versionNumber, Version version, String comment, String from, String type, String pluginName, Configuration configuration) 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 actionversion
- version concerned by this upgradecomment
- The comment about this actionfrom
- if this actions is the equivalent of multiple actions, this is the version id just before the 1st action impacted by this actiontype
- type of actionpluginName
- name of the plugin containing the extensionconfiguration
- the extension upgrade line to add- Throws:
ConfigurationException
- id or type missing
-
-
Method Detail
-
getVersionNumber
public String getVersionNumber()
Description copied from interface:ActionData
Get the upgrade version number- Specified by:
getVersionNumber
in interfaceActionData
- Returns:
- upgrade version number
-
getType
public String getType()
Description copied from interface:ActionData
Get the upgrade type- Specified by:
getType
in interfaceActionData
- Returns:
- upgrade type
-
getComment
public String getComment()
Description copied from interface:ActionData
Get the comment about this action- Specified by:
getComment
in interfaceActionData
- Returns:
- The comment about this action
-
getFrom
public String getFrom()
Description copied from interface:ActionData
Get the upgrade "from" field- Specified by:
getFrom
in interfaceActionData
- Returns:
- upgrade "from" field
-
getVersion
public Version getVersion()
Description copied from interface:ActionData
Get the version to apply this upgrade on- Specified by:
getVersion
in interfaceActionData
- Returns:
- the version to apply this upgrade on
-
getPluginName
public String getPluginName()
Description copied from interface:ActionData
Get the name of the plugin of the extension- Specified by:
getPluginName
in interfaceActionData
- Returns:
- The name of the plugin of the extension
-
-