Package org.apache.sling.resource.filter
Klasse ResourceFilterStream
java.lang.Object
org.apache.sling.resource.filter.ResourceFilterStream
Creates a
Predicate of type Resource to identify matching
Resource objects-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungResourceFilterStream(org.apache.sling.api.resource.Resource resource, ResourcePredicates filter) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungAdd a key - value pair that can then be evaluated as part of the ScriptAdd a series of key - value pairs that can then be evaluated as part of the ScriptFiltersetBranchSelector(String branchSelector) Adds a branchSelector to define which child resource are acceptable to travel down as part of the Resource traversalsetChildSelector(String childSelector) Adds a childSelector to define which child resources should be part of the streamStream<org.apache.sling.api.resource.Resource> stream()Stream<Resource> which uses the branchSelector as the basis of the traversal and then filters the resources based on the childSelector that was provided
-
Konstruktordetails
-
ResourceFilterStream
public ResourceFilterStream(org.apache.sling.api.resource.Resource resource, ResourcePredicates filter)
-
-
Methodendetails
-
setBranchSelector
Adds a branchSelector to define which child resource are acceptable to travel down as part of the Resource traversal- Parameter:
branchSelector- resourcePredicate script for traversal control- Gibt zurück:
- ResourceStreamFilter
-
setChildSelector
Adds a childSelector to define which child resources should be part of the stream- Parameter:
childSelector- resourcePredicate script to identify child resources to return- Gibt zurück:
- ResourceStreamFilter
-
addParam
Add a key - value pair that can then be evaluated as part of the Script -
addParams
Add a series of key - value pairs that can then be evaluated as part of the ScriptFilter -
stream
Stream<Resource> which uses the branchSelector as the basis of the traversal and then filters the resources based on the childSelector that was provided- Gibt zurück:
- pre filterd Stream<Resource>
-