tree: e8cac6fd23fea30440b3753a3baefd91a7e7d01a [path history] [tgz]
  1. src/
  2. .gitignore
  3. LICENSE
  4. pom.xml
  5. README.md
resource-predicates/README.md

Resource Predicates

Provides a series of predefined predicates for Resources and Properties for use with Collections and Streams

Examples

new ResourceStream(resource)
	.stream(where(property("jcr:primaryType").is("page")))
	.filter(
      aChildResource("jcr:content")
          .has(property("sling:resourceType")
		    .isNot("sling/components/page/folder")))
    .collect(Collectors.toList());
list.stream()
    .filter(
        property("jcr:content/sling:resourceType")
            .isNot("sling/components/page/folder"))
    .collect(Collectors.toList());