Class ChildrenPipe

  • All Implemented Interfaces:
    Pipe

    public class ChildrenPipe
    extends AbstractExpressionSlingQueryPipe
    this pipe uses SlingQuery to filters children (filter defined in expr property) of a resource (defined in the path property)
    • Constructor Detail

      • ChildrenPipe

        public ChildrenPipe​(Plumber plumber,
                            org.apache.sling.api.resource.Resource resource,
                            PipeBindings upperBindings)
    • Method Detail

      • getQuery

        protected org.apache.sling.query.SlingQuery getQuery​(org.apache.sling.api.resource.Resource resource,
                                                             String expression)
        Description copied from class: AbstractExpressionSlingQueryPipe
        generates a sling query object out of a resource and an expression
        Specified by:
        getQuery in class AbstractExpressionSlingQueryPipe
        Parameters:
        resource - input resource
        expression - pipe's expression configuration
        Returns:
        SlingQuery object