public class DialogMigrationTask
extends info.magnolia.module.delta.AbstractTask
Constructor and Description |
---|
DialogMigrationTask(String moduleName) |
DialogMigrationTask(String taskName,
String taskDescription,
String moduleName) |
DialogMigrationTask(String taskName,
String taskDescription,
String moduleName,
HashMap<String,ControlMigrator> customControlsToMigrate,
HashMap<String,List<ActionCreator>> customDialogActionsToMigrate) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCustomControlsToMigrate(HashMap<String,ControlMigrator> controlsToMigrate)
Override this method in order to register custom controls to migrate.
|
protected void |
addCustomDialogActionToCreate(HashMap<String,List<ActionCreator>> dialogActionsToMigrate)
Override this method in order to register custom actions to create on a specific dialog.
|
void |
execute(info.magnolia.module.InstallContext installContext)
Handle all Dialogs registered and migrate them.
|
public DialogMigrationTask(String taskName, String taskDescription, String moduleName, HashMap<String,ControlMigrator> customControlsToMigrate, HashMap<String,List<ActionCreator>> customDialogActionsToMigrate)
taskName
- name of the tasktaskDescription
- short decription of the taskmoduleName
- all dialog define under this module name will be migrated.customControlsToMigrate
- Custom controls to migrate.customDialogActionsToMigrate
- Custom actions to migratepublic DialogMigrationTask(String taskName, String taskDescription, String moduleName)
public DialogMigrationTask(String moduleName)
public void execute(info.magnolia.module.InstallContext installContext) throws info.magnolia.module.delta.TaskExecutionException
info.magnolia.module.delta.TaskExecutionException
protected void addCustomControlsToMigrate(HashMap<String,ControlMigrator> controlsToMigrate)
controlsToMigrate
- key : controls name ControlMigrator
used to take actions in order to migrate the control into a field.protected void addCustomDialogActionToCreate(HashMap<String,List<ActionCreator>> dialogActionsToMigrate)
dialogActionsToMigrate
- key: Dialog name ActionCreator
to create on the desired dialog.Copyright © 2017 Magnolia International Ltd.. All rights reserved.