public class UserManagedPermissionService extends Object
Constructor and Description |
---|
UserManagedPermissionService(KeycloakIdentity identity,
ResourceServer resourceServer,
AuthorizationProvider authorization,
AdminEventBuilder eventBuilder) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(String resourceId,
UmaPermissionRepresentation representation) |
javax.ws.rs.core.Response |
delete(String policyId) |
javax.ws.rs.core.Response |
find(String name,
String resource,
String scope,
Integer firstResult,
Integer maxResult) |
javax.ws.rs.core.Response |
findById(String policyId) |
javax.ws.rs.core.Response |
update(String policyId,
String payload) |
public UserManagedPermissionService(KeycloakIdentity identity, ResourceServer resourceServer, AuthorizationProvider authorization, AdminEventBuilder eventBuilder)
@POST @Path(value="{resourceId}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(@PathParam(value="resourceId") String resourceId, UmaPermissionRepresentation representation)
@Path(value="{policyId}") @PUT @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response update(@PathParam(value="policyId") String policyId, String payload)
@Path(value="{policyId}") @DELETE public javax.ws.rs.core.Response delete(@PathParam(value="policyId") String policyId)
@Path(value="{policyId}") @GET @Produces(value="application/json") public javax.ws.rs.core.Response findById(@PathParam(value="policyId") String policyId)
@GET @Produces(value="application/json") public javax.ws.rs.core.Response find(@QueryParam(value="name") String name, @QueryParam(value="resource") String resource, @QueryParam(value="scope") String scope, @QueryParam(value="first") Integer firstResult, @QueryParam(value="max") Integer maxResult)
Copyright © 2019 JBoss by Red Hat. All rights reserved.