Package org.ametys.core.migration.action
Class DefaultActionConfiguration
java.lang.Object
org.ametys.core.migration.action.DefaultActionConfiguration
- All Implemented Interfaces:
ActionConfiguration
- Direct Known Subclasses:
JavaAction.JavaActionConfiguration
,ScriptAction.ScriptActionConfiguration
,SqlUpgradeAction.SqlUpgradeActionConfiguration
Representation of an upgrade line in the extension
-
Constructor Summary
ConstructorDescriptionDefaultActionConfiguration
(String versionNumber, String type, String comment, String from, boolean restartRequired, boolean isInitialization) Create the Upgrade based on the upgrade xml line Must contains id and type May contain restartAfter, component and/or file -
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 restart) Set the requireRestart flagtoString()
-
Constructor Details
-
DefaultActionConfiguration
public DefaultActionConfiguration(String versionNumber, String type, String comment, String from, boolean restartRequired, boolean isInitialization) 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 actiontype
- type of actioncomment
- 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 actionrestartRequired
- true if a restart is required after the actionisInitialization
- true for initialization action, false for upgrade
-
-
Method Details
-
toString
-
getVersionNumber
Description copied from interface:ActionConfiguration
Get the upgrade version number- Specified by:
getVersionNumber
in interfaceActionConfiguration
- Returns:
- upgrade version number
-
getType
Description copied from interface:ActionConfiguration
Get the upgrade type- Specified by:
getType
in interfaceActionConfiguration
- Returns:
- upgrade type
-
getComment
Description copied from interface:ActionConfiguration
Get the comment about this action- Specified by:
getComment
in interfaceActionConfiguration
- Returns:
- The comment about this action
-
getFrom
Description copied from interface:ActionConfiguration
Get the upgrade "from" field- Specified by:
getFrom
in interfaceActionConfiguration
- Returns:
- upgrade "from" field
-
requiresRestart
Description copied from interface:ActionConfiguration
If true at the end of the action, the server will be restarted- Specified by:
requiresRestart
in interfaceActionConfiguration
- Returns:
- true to restart server
-
setRequiresRestart
Description copied from interface:ActionConfiguration
Set the requireRestart flag- Specified by:
setRequiresRestart
in interfaceActionConfiguration
- Parameters:
restart
- true to indicates that the server will require a restart at the end of the action
-