Package org.ametys.core.migration.action
Interface Action
- All Known Implementing Classes:
JavaAction,ManualAction,NoOpAction,ScriptAction,SqlInitializationAction,SqlUpgradeAction
public interface Action
Interface for actions components
-
Method Summary
Modifier and TypeMethodDescriptionvoidact(MigrationEngine.ActionData actionData) Run the action with the provided datacreateActionConfiguration(String versionNumber, String type, String comment, String from, boolean restartRequired, boolean isInitialization, Configuration configuration) Generate anActionConfigurationlinked to this kind of action
-
Method Details
-
act
Run the action with the provided data- Parameters:
actionData- data needed to do the action- Throws:
MigrationException- Something went wrong
-
createActionConfiguration
ActionConfiguration createActionConfiguration(String versionNumber, String type, String comment, String from, boolean restartRequired, boolean isInitialization, Configuration configuration) throws ConfigurationException Generate anActionConfigurationlinked to this kind of action- Parameters:
versionNumber- id of the actiontype- type of actioncomment- 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 upgradeconfiguration- configuration of the action- Returns:
- a
ActionConfigurationfor this type of action - Throws:
ConfigurationException- Configuration malformed
-