Package org.ametys.core.migration.action
Interface ActionConfiguration
- All Known Implementing Classes:
DefaultActionConfiguration
,JavaAction.JavaActionConfiguration
,ScriptAction.ScriptActionConfiguration
,SqlInitializationAction.SqlInitializationActionConfiguration
,SqlUpgradeAction.SqlUpgradeActionConfiguration
public interface ActionConfiguration
Representation of an upgrade line in the extension
-
Method Summary
Modifier and TypeMethodDescriptionGet the comment about this actiongetFrom()
Get the upgrade "from" fieldgetType()
Get the upgrade typeGet the upgrade version numberboolean
If true at the end of the action, the server will be restartedvoid
setRequiresRestart
(boolean requiresRestart) Set the requireRestart flag
-
Method Details
-
getVersionNumber
Get the upgrade version number- Returns:
- upgrade version number
-
getType
Get the upgrade type- Returns:
- upgrade type
-
getComment
Get the comment about this action- Returns:
- The comment about this action
-
getFrom
Get the upgrade "from" field- Returns:
- upgrade "from" field
-
requiresRestart
boolean requiresRestart()If true at the end of the action, the server will be restarted- Returns:
- true to restart server
-
setRequiresRestart
Set the requireRestart flag- Parameters:
requiresRestart
- true to indicates that the server will require a restart at the end of the action
-