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
ConstructorsConstructorDescriptionDefaultActionConfiguration(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 numberbooleanIf true at the end of the action, the server will be restartedvoidsetRequiresRestart(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:ActionConfigurationGet the upgrade version number- Specified by:
getVersionNumberin interfaceActionConfiguration- Returns:
- upgrade version number
-
getType
Description copied from interface:ActionConfigurationGet the upgrade type- Specified by:
getTypein interfaceActionConfiguration- Returns:
- upgrade type
-
getComment
Description copied from interface:ActionConfigurationGet the comment about this action- Specified by:
getCommentin interfaceActionConfiguration- Returns:
- The comment about this action
-
getFrom
Description copied from interface:ActionConfigurationGet the upgrade "from" field- Specified by:
getFromin interfaceActionConfiguration- Returns:
- upgrade "from" field
-
requiresRestart
Description copied from interface:ActionConfigurationIf true at the end of the action, the server will be restarted- Specified by:
requiresRestartin interfaceActionConfiguration- Returns:
- true to restart server
-
setRequiresRestart
Description copied from interface:ActionConfigurationSet the requireRestart flag- Specified by:
setRequiresRestartin interfaceActionConfiguration- Parameters:
restart- true to indicates that the server will require a restart at the end of the action
-