Package org.keycloak.authorization.admin
Class ScopeService
- java.lang.Object
-
- org.keycloak.authorization.admin.ScopeService
-
public class ScopeService extends Object
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description ScopeService(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
ScopeService
public ScopeService(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
-
Method Detail
-
create
@POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response create(ScopeRepresentation scope)
-
update
@Path("{id}") @PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response update(@PathParam("id") String id, ScopeRepresentation scope)
-
delete
@Path("{id}") @DELETE public javax.ws.rs.core.Response delete(@PathParam("id") String id)
-
findById
@Path("{id}") @GET @Produces("application/json") public javax.ws.rs.core.Response findById(@PathParam("id") String id)
-
getResources
@Path("{id}/resources") @GET @Produces("application/json") public javax.ws.rs.core.Response getResources(@PathParam("id") String id)
-
getPermissions
@Path("{id}/permissions") @GET @Produces("application/json") public javax.ws.rs.core.Response getPermissions(@PathParam("id") String id)
-
find
@Path("/search") @GET @Produces("application/json") public javax.ws.rs.core.Response find(@QueryParam("name") String name)
-
-