Class ForQuery


  • public class ForQuery
    extends TraversData
    Traverses resources based on a query.
    Author:
    Roland Gruber
    • Constructor Detail

      • ForQuery

        public ForQuery​(@Nonnull
                        String query,
                        @Nonnull
                        String queryType)
        Constructor
        Parameters:
        query - query string
        queryType - query type
        See Also:
        Query
    • Method Detail

      • traverse

        public void traverse​(@Nonnull
                             BindingContext context,
                             de.valtech.aecu.api.groovy.console.bindings.filters.FilterBy filter,
                             @Nonnull
                             List<Action> actions,
                             @Nonnull
                             StringBuilder output,
                             boolean dryRun)
                      throws org.apache.sling.api.resource.PersistenceException,
                             de.valtech.aecu.api.service.AecuException
        Description copied from class: TraversData
        Traverses the resources and performs the filters and actions.
        Specified by:
        traverse in class TraversData
        Parameters:
        context - binding context
        filter - filter
        actions - list of actions
        output - output buffer
        dryRun - dry run
        Throws:
        org.apache.sling.api.resource.PersistenceException - error traversing nodes
        de.valtech.aecu.api.service.AecuException - other error