public abstract class AbstractDataTypeMigrationTask
extends info.magnolia.module.delta.AbstractTask
Constructor and Description |
---|
AbstractDataTypeMigrationTask(String taskName,
String taskDescription,
String dataPath,
String newPath,
String newWorkspaceName) |
Modifier and Type | Method and Description |
---|---|
void |
execute(info.magnolia.module.InstallContext installContext) |
protected abstract void |
initOldToNewNodeTypeMappingElement(HashMap<String,String> oldToNewNodeTypeMapping)
Set the HashMap of nodeType to change.
|
public AbstractDataTypeMigrationTask(String taskName, String taskDescription, String dataPath, String newPath, String newWorkspaceName)
dataPath
- path from the data to migrate ('/category'). If set to root, the task will not be executed.newPath
- new path where the content of dataPath will be copied.newWorkspaceName
- new workspace name.public void execute(info.magnolia.module.InstallContext installContext) throws info.magnolia.module.delta.TaskExecutionException
info.magnolia.module.delta.TaskExecutionException
protected abstract void initOldToNewNodeTypeMappingElement(HashMap<String,String> oldToNewNodeTypeMapping)
Copyright © 2019 Magnolia International Ltd.. All rights reserved.