public class ScopeService extends Object
Constructor and Description |
---|
ScopeService(KeycloakSession session,
ResourceServer resourceServer,
AuthorizationProvider authorization,
AdminPermissionEvaluator auth,
AdminEventBuilder adminEvent) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(ScopeRepresentation scope) |
javax.ws.rs.core.Response |
delete(String id) |
javax.ws.rs.core.Response |
find(String name) |
javax.ws.rs.core.Response |
findAll(String id,
String name,
Integer firstResult,
Integer maxResult) |
javax.ws.rs.core.Response |
findById(String id) |
javax.ws.rs.core.Response |
getPermissions(String id) |
javax.ws.rs.core.Response |
getResources(String id) |
javax.ws.rs.core.Response |
update(String id,
ScopeRepresentation scope) |
public ScopeService(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(ScopeRepresentation scope)
@Path(value="{id}") @PUT @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response update(@PathParam(value="id") String id, ScopeRepresentation scope)
@Path(value="{id}") @DELETE public javax.ws.rs.core.Response delete(@PathParam(value="id") String id)
@Path(value="{id}") @GET @Produces(value="application/json") public javax.ws.rs.core.Response findById(@PathParam(value="id") String id)
@Path(value="{id}/resources") @GET @Produces(value="application/json") public javax.ws.rs.core.Response getResources(@PathParam(value="id") String id)
@Path(value="{id}/permissions") @GET @Produces(value="application/json") public javax.ws.rs.core.Response getPermissions(@PathParam(value="id") String id)
@Path(value="/search") @GET @Produces(value="application/json") public javax.ws.rs.core.Response find(@QueryParam(value="name") String name)
Copyright © 2019 JBoss by Red Hat. All rights reserved.