Package org.keycloak.authorization.admin
Class ResourceSetService
- java.lang.Object
-
- org.keycloak.authorization.admin.ResourceSetService
-
public class ResourceSetService extends Object
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description ResourceSetService(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
audit(ResourceRepresentation resource, String id, OperationType operation)
ResourceRepresentation
create(ResourceRepresentation resource)
javax.ws.rs.core.Response
createPost(ResourceRepresentation resource)
javax.ws.rs.core.Response
delete(String id)
javax.ws.rs.core.Response
find(String name)
javax.ws.rs.core.Response
find(String id, String name, String uri, String owner, String type, String scope, Boolean matchingUri, Boolean exactName, Boolean deep, Integer firstResult, Integer maxResult)
javax.ws.rs.core.Response
find(String id, String name, String uri, String owner, String type, String scope, Boolean matchingUri, Boolean exactName, Boolean deep, Integer firstResult, Integer maxResult, BiFunction<Resource,Boolean,?> toRepresentation)
javax.ws.rs.core.Response
findById(String id)
javax.ws.rs.core.Response
findById(String id, Function<Resource,? extends ResourceRepresentation> toRepresentation)
javax.ws.rs.core.Response
getAttributes(String id)
javax.ws.rs.core.Response
getPermissions(String id)
javax.ws.rs.core.Response
getScopes(String id)
javax.ws.rs.core.Response
update(String id, ResourceRepresentation resource)
-
-
-
Constructor Detail
-
ResourceSetService
public ResourceSetService(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
-
Method Detail
-
createPost
@POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response createPost(ResourceRepresentation resource)
-
create
public ResourceRepresentation create(ResourceRepresentation resource)
-
update
@Path("{id}") @PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response update(@PathParam("id") String id, ResourceRepresentation resource)
-
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)
-
findById
public javax.ws.rs.core.Response findById(String id, Function<Resource,? extends ResourceRepresentation> toRepresentation)
-
getScopes
@Path("{id}/scopes") @GET @Produces("application/json") public javax.ws.rs.core.Response getScopes(@PathParam("id") String id)
-
getPermissions
@Path("{id}/permissions") @GET @Produces("application/json") public javax.ws.rs.core.Response getPermissions(@PathParam("id") String id)
-
getAttributes
@Path("{id}/attributes") @GET @Produces("application/json") public javax.ws.rs.core.Response getAttributes(@PathParam("id") String id)
-
find
@Path("/search") @GET @Produces("application/json") public javax.ws.rs.core.Response find(@QueryParam("name") String name)
-
find
@GET @Produces("application/json") public javax.ws.rs.core.Response find(@QueryParam("_id") String id, @QueryParam("name") String name, @QueryParam("uri") String uri, @QueryParam("owner") String owner, @QueryParam("type") String type, @QueryParam("scope") String scope, @QueryParam("matchingUri") Boolean matchingUri, @QueryParam("exactName") Boolean exactName, @QueryParam("deep") Boolean deep, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResult)
-
find
public javax.ws.rs.core.Response find(@QueryParam("_id") String id, @QueryParam("name") String name, @QueryParam("uri") String uri, @QueryParam("owner") String owner, @QueryParam("type") String type, @QueryParam("scope") String scope, @QueryParam("matchingUri") Boolean matchingUri, @QueryParam("exactName") Boolean exactName, @QueryParam("deep") Boolean deep, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResult, BiFunction<Resource,Boolean,?> toRepresentation)
-
audit
public void audit(ResourceRepresentation resource, String id, OperationType operation)
-
-