Package com.adobe.aem.modernize.policy
Interface PolicyImportRule
-
- All Superinterfaces:
Comparable<RewriteRule>,RewriteRule,ServiceBasedRewriteRule
@ConsumerType public interface PolicyImportRule extends ServiceBasedRewriteRule
Interface for services that implement a Design rewrite rule.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.adobe.aem.modernize.rule.RewriteRule
RewriteRule.Comparator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable NodeapplyTo(@NotNull Node root, @NotNull Set<String> finalPaths)Applies this rule to the subtree rooted at the specifiedrootnode.-
Methods inherited from interface com.adobe.aem.modernize.rule.RewriteRule
compareTo, getId, getRanking, getTitle, matches
-
Methods inherited from interface com.adobe.aem.modernize.rule.ServiceBasedRewriteRule
findMatches, hasPattern
-
-
-
-
Method Detail
-
applyTo
@Nullable @Nullable Node applyTo(@NotNull @NotNull Node root, @NotNull @NotNull Set<String> finalPaths) throws RewriteException, RepositoryException
Applies this rule to the subtree rooted at the specified
rootnode. Implementations create a new Node to return, leaving original intact. All other rules ofRewriteRule.applyTo(javax.jcr.Node, java.util.Set<java.lang.String>)should be adhered to.- Specified by:
applyToin interfaceRewriteRule- Parameters:
root- The root of the subtree to be rewrittenfinalPaths- list of nodes paths which should not be updated after this method completes- Returns:
- the root node of the rewritten tree, or null if it was removed
- Throws:
RewriteException- if the rewrite operation failed or cannot be completedRepositoryException- if the node updates cannot be saved
-
-