close

Filter

Headless Server Developer Manual / Version 2310
Table Of Contents

A filter predicate can be used to filter beans by predicate.

For example, a validity date filter predicate can be defined to filter content items by their validity date.

      
@Bean
@Qualifier(QUALIFIER_CAAS_FILTER_PREDICATE)
public FilterPredicate validityDateFilterPredicate(ContextVariableValueService<Object> contextVariableValueService) {
  return new ValidityDateFilterPredicate(contextVariableValueService);
}

    

Example 4.2. Creating a filter predicate


Beans with Qualifier PluginSupport#QUALIFIER_CAAS_FILTER_PREDICATE are picked up automatically and applied to ModelMappers.

Was this article useful?

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.