Skip to content

Commit

Permalink
Merge pull request #20549 from geoand/rr-filter-fields-security
Browse files Browse the repository at this point in the history
Introduce the ability to filter json output based on user roles
  • Loading branch information
geoand authored Oct 13, 2021
2 parents d320c33 + 0c130be commit 3341efb
Show file tree
Hide file tree
Showing 41 changed files with 1,567 additions and 384 deletions.
4 changes: 2 additions & 2 deletions .github/native-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
},
{
"category": "HTTP",
"timeout": 70,
"test-modules": "elytron-resteasy, resteasy-jackson, resteasy-mutiny, resteasy-reactive-kotlin/standard, vertx, vertx-http, vertx-web, vertx-web-jackson, vertx-graphql, virtual-http, rest-client",
"timeout": 75,
"test-modules": "elytron-resteasy, resteasy-jackson, elytron-resteasy-reactive, resteasy-mutiny, resteasy-reactive-kotlin/standard, vertx, vertx-http, vertx-web, vertx-web-jackson, vertx-graphql, virtual-http, rest-client",
"os-name": "ubuntu-latest"
},
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package io.quarkus.resteasy.reactive.jackson.deployment.processor;

import java.lang.reflect.Type;
import java.util.function.BiFunction;

import org.jboss.jandex.ClassInfo;
import org.jboss.jandex.MethodInfo;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;

import io.quarkus.builder.item.MultiBuildItem;

/**
* Used to pass info about a JAX-RS resource method that needs to perform custom serialization
*/
public final class ResourceMethodCustomSerializationBuildItem extends MultiBuildItem {

private final MethodInfo methodInfo;
private final ClassInfo declaringClassInfo;
private final Class<? extends BiFunction<ObjectMapper, Type, ObjectWriter>> customSerializationProvider;

public ResourceMethodCustomSerializationBuildItem(MethodInfo methodInfo, ClassInfo declaringClassInfo,
Class<? extends BiFunction<ObjectMapper, Type, ObjectWriter>> customSerializationProvider) {
this.methodInfo = methodInfo;
this.declaringClassInfo = declaringClassInfo;
this.customSerializationProvider = customSerializationProvider;
}

public MethodInfo getMethodInfo() {
return methodInfo;
}

public ClassInfo getDeclaringClassInfo() {
return declaringClassInfo;
}

public Class<? extends BiFunction<ObjectMapper, Type, ObjectWriter>> getCustomSerializationProvider() {
return customSerializationProvider;
}
}
Loading

0 comments on commit 3341efb

Please sign in to comment.