java.lang.Object
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.FilterProvider
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider
All Implemented Interfaces:
Serializable

public class SimpleFilterProvider extends FilterProvider implements Serializable
Simple FilterProvider implementation that just stores direct id-to-filter mapping. It also allows specifying a "default" filter to return if no registered instance matches given filter id.

Note that version 2.3 was a partial rewrite, now that PropertyFilter is set to replace BeanPropertyFilter.

See Also:
  • Field Details

    • _filtersById

      protected final Map<String,PropertyFilter> _filtersById
      Mappings from ids to filters.
    • _defaultFilter

      protected PropertyFilter _defaultFilter
      This is the filter we return in case no mapping was found for given id; default is null (in which case caller typically reports an error), but can be set to an explicit filter.
    • _cfgFailOnUnknownId

      protected boolean _cfgFailOnUnknownId
      Flag that indicates whether request for an unknown filter id should result an exception (default) or not. Note that this is only relevant if no default filter has been configured.
  • Constructor Details

    • SimpleFilterProvider

      public SimpleFilterProvider()
    • SimpleFilterProvider

      public SimpleFilterProvider(Map<String,?> mapping)
      Parameters:
      mapping - Mapping from id to filter; used as is if if possible
  • Method Details