Class FilterProvider
java.lang.Object
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.FilterProvider
- Direct Known Subclasses:
SimpleFilterProvider
Interface for objects that providers instances of
PropertyFilter
that match given ids. A provider is configured to be used during serialization,
to find filter to used based on id specified by JsonFilter
annotation on bean class.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract BeanPropertyFilter
findFilter
(Object filterId) Deprecated.findPropertyFilter
(Object filterId, Object valueToFilter) Lookup method used to findPropertyFilter
that has specified id.
-
Constructor Details
-
FilterProvider
public FilterProvider()
-
-
Method Details
-
findFilter
Deprecated.Since 2.3 deprecated becauseBeanPropertyFilter
is deprecated;Lookup method used to findBeanPropertyFilter
that has specified id. Note that id is typically aString
, but is not necessarily limited to that; that is, while standard components use String, custom implementation can choose other kinds of keys.- Returns:
- Filter registered with specified id, if one defined; null if none found.
-
findPropertyFilter
Lookup method used to findPropertyFilter
that has specified id. Note that id is typically aString
, but is not necessarily limited to that; that is, while standard components use String, custom implementation can choose other kinds of keys.This method is the replacement for
findFilter(java.lang.Object)
starting with 2.3.Note that the default implementation is designed to support short-term backwards compatibility, and will call the deprecated
findFilter
method, then wrap filter if one found asPropertyFilter
. It should be overridden by up-to-date implementations- Parameters:
filterId
- Id of the filter to fetchvalueToFilter
- Object being filtered (usually POJO, but may be aMap
, or in future a container), if available; not available when generating schemas.- Returns:
- Filter to use, if any.
- Since:
- 2.3
-
BeanPropertyFilter
is deprecated;