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(org.keycloak.models.KeycloakSession session, org.keycloak.authorization.model.ResourceServer resourceServer, org.keycloak.authorization.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(org.keycloak.representations.idm.authorization.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, org.keycloak.representations.idm.authorization.ScopeRepresentation scope)
-
-
-
Constructor Detail
-
ScopeService
public ScopeService(org.keycloak.models.KeycloakSession session, org.keycloak.authorization.model.ResourceServer resourceServer, org.keycloak.authorization.AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
-
Method Detail
-
create
@POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response create(org.keycloak.representations.idm.authorization.ScopeRepresentation scope)
-
update
@Path("{id}") @PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response update(@PathParam("id") String id, org.keycloak.representations.idm.authorization.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)
-
-