Interface StructureRewriteRuleService

  • All Superinterfaces:

    public interface StructureRewriteRuleService
    extends RewriteRuleService
    Provides a mechanism for listing all the configured rules either via Nodes or custom implementations.
    • Method Detail

      • apply

        boolean apply​(@NotNull
                      @NotNull resource,
                      @NotNull Set<String> rules)
               throws RewriteException
        Applies the indicated rules to the provided resource.

        Transformations are performed but not saved.

        resource - resource of the page to process
        rules - the ids of the rules to apply
        true if one of the specified rules was successfully applied, false otherwise
        RewriteException - if any errors occur while updating the page.