Constructor and Description |
---|
ResourceFilterStream(org.apache.sling.api.resource.Resource resource,
ResourcePredicates filter) |
Modifier and Type | Method and Description |
---|---|
ResourceFilterStream |
addParam(String key,
Object value)
Add a key - value pair that can then be evaluated as part of the Script
|
ResourceFilterStream |
addParams(Map<String,Object> params)
Add a series of key - value pairs that can then be evaluated as part of the
ScriptFilter
|
ResourceFilterStream |
setBranchSelector(String branchSelector)
Adds a branchSelector to define which child resource are acceptable to travel
down as part of the Resource traversal
|
ResourceFilterStream |
setChildSelector(String childSelector)
Adds a childSelector to define which child resources should be part of the
stream
|
Stream<org.apache.sling.api.resource.Resource> |
stream()
Stream
|
public ResourceFilterStream(org.apache.sling.api.resource.Resource resource, ResourcePredicates filter)
public ResourceFilterStream setBranchSelector(String branchSelector)
branchSelector
- resourcePredicate script for traversal controlResourceFilterException
public ResourceFilterStream setChildSelector(String childSelector)
childSelector
- resourcePredicate script to identify child resources to returnResourceFilterException
public ResourceFilterStream addParam(String key, Object value)
params
- public ResourceFilterStream addParams(Map<String,Object> params)
params
- public Stream<org.apache.sling.api.resource.Resource> stream()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.