ADD: BeanFindController supports postProcessing of retrieved entities

This commit is contained in:
Jonas Pöhler
2021-08-26 14:37:51 +02:00
parent 56fed3ad87
commit 62712c976f
7 changed files with 325 additions and 0 deletions
@@ -50,4 +50,17 @@ public interface BeanFindController {
*/
<T> BeanCollection<T> findMany(BeanQueryRequest<T> request);
/**
* Allows post processing of the find result.
*/
default <T> BeanCollection<T> postProcessMany(BeanQueryRequest<T> request, BeanCollection<T> result) {
return result;
}
/**
* Allows post processing of the find result.
*/
default <T> T postProcess(BeanQueryRequest<T> request, T result) {
return result;
};
}