Package org.keycloak.authorization.admin
Class ResourceSetService
java.lang.Object
org.keycloak.authorization.admin.ResourceSetService
- Author:
- Pedro Igor
-
Constructor Summary
ConstructorsConstructorDescriptionResourceSetService(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) -
Method Summary
Modifier and TypeMethodDescriptionvoidaudit(ResourceRepresentation resource, String id, OperationType operation) create(ResourceRepresentation resource) jakarta.ws.rs.core.ResponsecreatePost(ResourceRepresentation resource) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsefind(String id, String name, String uri, String owner, String type, String scope, Boolean matchingUri, Boolean exactName, Boolean deep, Integer firstResult, Integer maxResult) jakarta.ws.rs.core.Responsefind(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) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsefindById(String id, Function<Resource, ? extends ResourceRepresentation> toRepresentation) jakarta.ws.rs.core.ResponsegetAttributes(String id) jakarta.ws.rs.core.ResponsegetPermissions(String id) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responseupdate(String id, ResourceRepresentation resource)
-
Constructor Details
-
ResourceSetService
public ResourceSetService(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
-
Method Details
-
createPost
@POST @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response createPost(ResourceRepresentation resource) -
create
-
update
@Path("{resource-id}") @PUT @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response update(@PathParam("resource-id") String id, ResourceRepresentation resource) -
delete
@Path("{resource-id}") @DELETE public jakarta.ws.rs.core.Response delete(@PathParam("resource-id") String id) -
findById
@Path("{resource-id}") @GET @Produces("application/json") public jakarta.ws.rs.core.Response findById(@PathParam("resource-id") String id) -
findById
public jakarta.ws.rs.core.Response findById(String id, Function<Resource, ? extends ResourceRepresentation> toRepresentation) -
getScopes
@Path("{resource-id}/scopes") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getScopes(@PathParam("resource-id") String id) -
getPermissions
@Path("{resource-id}/permissions") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getPermissions(@PathParam("resource-id") String id) -
getAttributes
@Path("{resource-id}/attributes") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getAttributes(@PathParam("resource-id") String id) -
find
@Path("/search") @GET @Produces("application/json") public jakarta.ws.rs.core.Response find(@QueryParam("name") String name) -
find
@GET @Produces("application/json") public jakarta.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 jakarta.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
-