Package org.apache.sling.resource.filter
Schnittstelle ResourcePredicates
- Alle bekannten Unterschnittstellen:
ResourcePredicates.ResourcePredicateBuilder
@ProviderType
public interface ResourcePredicates
Service which provides the ability to convert a String into a
Predicate<Resource> to match against Resource Objects
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic interfaceProvides a transitional state where multiple parameters can be applied before creating the Predicate -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungPredicate<org.apache.sling.api.resource.Resource> Creates a Predicate<Resource> based on the provided scriptPredicate<org.apache.sling.api.resource.Resource> Creates a Predicate<Resource> based on the provided scriptusingParameterMap(Map<String, Object> params) Replaces the existing parameter map with the supplied Map<String,Object> object, all prior provided parameters will be replacedwithParameter(String key, Object value) Adds a key - value pair that can then be evaluated as part of the Predicate<Resource> creationwithParameters(Map<String, Object> params) Add a series of key - value pairs that can then be evaluated as part of the Predicate<Resource> creation
-
Methodendetails
-
parse
Creates a Predicate<Resource> based on the provided script- Parameter:
filter-- Gibt zurück:
-
parse
Creates a Predicate<Resource> based on the provided script- Parameter:
filter-charEncoding-- Gibt zurück:
-
withParameters
Add a series of key - value pairs that can then be evaluated as part of the Predicate<Resource> creation- Parameter:
params- Map of Key - Value pairs- Gibt zurück:
- ResourcePredicateBuilder
-
withParameter
Adds a key - value pair that can then be evaluated as part of the Predicate<Resource> creation- Parameter:
key-value-- Gibt zurück:
- ResourcePredicateBuilder
-
usingParameterMap
Replaces the existing parameter map with the supplied Map<String,Object> object, all prior provided parameters will be replaced- Gibt zurück:
- ResourcePredicateBuilder
-