Package com.adobe.aem.modernize.rule
Interface ServiceBasedRewriteRule
-
- All Superinterfaces:
Comparable<RewriteRule>
,RewriteRule
- All Known Subinterfaces:
ComponentRewriteRule
,PolicyImportRule
,StructureRewriteRule
- All Known Implementing Classes:
ColumnControlRewriteRule
,PageRewriteRule
public interface ServiceBasedRewriteRule extends RewriteRule
-
-
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 Deprecated Methods Modifier and Type Method Description @NotNull Set<String>
findMatches(@NotNull org.apache.sling.api.resource.Resource resource)
Deprecated.boolean
hasPattern(@NotNull String... slingResourceTypes)
Indicates if this service uses any of the specifiedsling:resourceType
in any of its matching logic.-
Methods inherited from interface com.adobe.aem.modernize.rule.RewriteRule
applyTo, compareTo, getId, getRanking, getTitle, matches
-
-
-
-
Method Detail
-
findMatches
@NotNull @Deprecated(since="2.1.0") @NotNull Set<String> findMatches(@NotNull @NotNull org.apache.sling.api.resource.Resource resource)
Deprecated.Lists all resource paths in tree rooted at the specified resource, that match any rules of which this service is aware.This method may result in fuzzy matches to improve performance and prevent resource utilization overhead.
- Parameters:
resource
- Resource for the root of the search- Returns:
- list of paths that match rules or an empty set if none match
-
-