[KEYCLOAK-5056] - @NoCache to scope admin api

This commit is contained in:
Pedro Igor 2017-06-15 09:49:20 -03:00
parent f0d1149311
commit 93105a2182
2 changed files with 7 additions and 1 deletions

View file

@ -86,6 +86,7 @@ public class ResourceSetService {
} }
@POST @POST
@NoCache
@Consumes("application/json") @Consumes("application/json")
@Produces("application/json") @Produces("application/json")
public Response create(@Context UriInfo uriInfo, ResourceRepresentation resource) { public Response create(@Context UriInfo uriInfo, ResourceRepresentation resource) {
@ -288,8 +289,8 @@ public class ResourceSetService {
@Path("/search") @Path("/search")
@GET @GET
@Produces("application/json")
@NoCache @NoCache
@Produces("application/json")
public Response find(@QueryParam("name") String name) { public Response find(@QueryParam("name") String name) {
this.auth.requireView(); this.auth.requireView();
StoreFactory storeFactory = authorization.getStoreFactory(); StoreFactory storeFactory = authorization.getStoreFactory();

View file

@ -77,6 +77,7 @@ public class ScopeService {
} }
@POST @POST
@NoCache
@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public Response create(@Context UriInfo uriInfo, ScopeRepresentation scope) { public Response create(@Context UriInfo uriInfo, ScopeRepresentation scope) {
@ -150,6 +151,7 @@ public class ScopeService {
@Path("{id}") @Path("{id}")
@GET @GET
@NoCache
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public Response findById(@PathParam("id") String id) { public Response findById(@PathParam("id") String id) {
this.auth.requireView(); this.auth.requireView();
@ -164,6 +166,7 @@ public class ScopeService {
@Path("{id}/resources") @Path("{id}/resources")
@GET @GET
@NoCache
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public Response getResources(@PathParam("id") String id) { public Response getResources(@PathParam("id") String id) {
this.auth.requireView(); this.auth.requireView();
@ -186,6 +189,7 @@ public class ScopeService {
@Path("{id}/permissions") @Path("{id}/permissions")
@GET @GET
@NoCache
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public Response getPermissions(@PathParam("id") String id) { public Response getPermissions(@PathParam("id") String id) {
this.auth.requireView(); this.auth.requireView();
@ -231,6 +235,7 @@ public class ScopeService {
} }
@GET @GET
@NoCache
@Produces("application/json") @Produces("application/json")
public Response findAll(@QueryParam("scopeId") String id, public Response findAll(@QueryParam("scopeId") String id,
@QueryParam("name") String name, @QueryParam("name") String name,