Interface ContentFilter

All Known Subinterfaces:
Serializer
All Known Implementing Classes:
AbstractSerializer, JacksonContentFilter, JacksonSerializer

public interface ContentFilter
Represents an interface for filtering content before it is passed to a specified viewer. It allows for the modification or transformation of the given value based on the logic implemented in the filter and considering the viewer's details.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    filterContent(T value, User viewer)
    Filters the given value based on the current viewer (user) context.
  • Method Details

    • filterContent

      <T> T filterContent(T value, User viewer)
      Filters the given value based on the current viewer (user) context. If a FilterContent handler exists in the object's class, it will be invoked to produce a user-specific view of the data.
      Type Parameters:
      T - the type of the content object
      Parameters:
      value - the original object
      viewer - the user viewing the content
      Returns:
      the filtered version of the object, or the original object if filtering failed or was not applicable