- 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 TypeMethodDescription<T> TfilterContent(T value, User viewer) Filters the given value based on the current viewer (user) context.
-
Method Details
-
filterContent
Filters the given value based on the current viewer (user) context. If aFilterContenthandler 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 objectviewer- the user viewing the content- Returns:
- the filtered version of the object, or the original object if filtering failed or was not applicable
-