public class CleanContentForDamMigrationTask extends AbstractCleanContentForDamMigrationTask
NodeVisitor
pattern. In order to define your own
NodeVisior, extend this migration task and override the addCustomVisitors()
protected method.Implemented visitor: CleanUpNodeVisitor Condition: Node must be of type mgnl:content or mgnl:page and must have one of the following property : image , video , flash , logoImg, printLogoImg --> index. Action If the value of the property is an Identifier and Identifier is not linked to a DAM node remove it. HandleDamLinkNodeVisitor Condition: Node must be of type mgnl:content or mgnl:page and must have the following property : link --> index. Action If the value of the property is an Identifier and Identifier is linked to a DAM node Create a composite key.
contentSession, damSession
Constructor and Description |
---|
CleanContentForDamMigrationTask(String taskName,
String taskDescription,
String contentRepository,
List<String> contentPathsList)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected List<info.magnolia.jcr.util.NodeVisitor> |
addCustomVisitors()
Override in order to add your custom visitors.
|
protected String[] |
createCleanUpVisitorPrefixTable()
Create the node property prefix used in the Clean Up Node visitor.
|
doExecute
protected List<info.magnolia.jcr.util.NodeVisitor> addCustomVisitors()
protected String[] createCleanUpVisitorPrefixTable()
Copyright © 2017 Magnolia International Ltd.. All rights reserved.