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
  • Methodendetails

    • parse

      Predicate<org.apache.sling.api.resource.Resource> parse(String filter)
      Creates a Predicate<Resource> based on the provided script
      Parameter:
      filter -
      Gibt zurück:
    • parse

      Predicate<org.apache.sling.api.resource.Resource> parse(String filter, String charEncoding)
      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