Package org.ametys.core.migration.action
Class ManualAction
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.migration.action.ManualAction
- All Implemented Interfaces:
Action
,LogEnabled
Manual action: no code will be executed, and an exception will be thrown to stop the migration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
act
(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 anActionConfiguration
linked to this kind of actionMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ManualAction
public ManualAction()
-
-
Method Details
-
act
Description copied from interface:Action
Run the action with the provided data- Specified by:
act
in interfaceAction
- Parameters:
actionData
- data needed to do the action- Throws:
MigrationException
- Something went wrong
-
createActionConfiguration
public ActionConfiguration createActionConfiguration(String versionNumber, String type, String comment, String from, boolean restartRequired, boolean isInitialization, Configuration configuration) throws ConfigurationException Description copied from interface:Action
Generate anActionConfiguration
linked to this kind of action- Specified by:
createActionConfiguration
in interfaceAction
- 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
ActionConfiguration
for this type of action - Throws:
ConfigurationException
- Configuration malformed
-