Interface ServiceBasedRewriteRule

    • 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
      • hasPattern

        boolean hasPattern​(@NotNull
                           @NotNull String... slingResourceTypes)
        Indicates if this service uses any of the specified sling:resourceType in any of its matching logic.
        Parameters:
        slingResourceTypes - the sling resource type to check
        Returns:
        true type matches