Class ScriptActionData
- java.lang.Object
-
- org.ametys.core.migration.action.data.impl.AbstractActionData
-
- org.ametys.core.migration.action.data.impl.ScriptActionData
-
- All Implemented Interfaces:
ActionData
public class ScriptActionData extends AbstractActionData
Data for an Script upgrade
-
-
Field Summary
Fields Modifier and Type Field Description private String
_file
private String
_plugin
private String
_script
-
Fields inherited from class org.ametys.core.migration.action.data.impl.AbstractActionData
_comment, _from, _pluginName, _type, _version, _versionNumber
-
-
Constructor Summary
Constructors Constructor Description ScriptActionData(String id, 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, plus a script or the file where to get the script May contain restartAfter, component and/or file
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFile()
Get the path for the script to runString
getPlugin()
Get the plugin containing the sql script (either the default plugin of the extension, or the one passed in the config)String
getScript()
Get the path for the script to runString
toString()
-
Methods inherited from class org.ametys.core.migration.action.data.impl.AbstractActionData
getComment, getFrom, getPluginName, getType, getVersion, getVersionNumber
-
-
-
-
Constructor Detail
-
ScriptActionData
public ScriptActionData(String id, 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, plus a script or the file where to get the script May contain restartAfter, component and/or file- Parameters:
id
- id 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 pluginconfiguration
- the extension upgrade line to add- Throws:
ConfigurationException
- something is missing
-
-
Method Detail
-
getFile
public String getFile()
Get the path for the script to run- Returns:
- The path for the script to run
-
getScript
public String getScript()
Get the path for the script to run- Returns:
- The path for the script to run
-
getPlugin
public String getPlugin()
Get the plugin containing the sql script (either the default plugin of the extension, or the one passed in the config)- Returns:
- The plugin containing the sql script (either the default plugin of the extension, or the one passed in the config)
-
toString
public String toString()
- Overrides:
toString
in classAbstractActionData
-
-