Class PermissionTicketService
- java.lang.Object
-
- org.keycloak.authorization.protection.permission.PermissionTicketService
-
public class PermissionTicketService extends Object
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description PermissionTicketService(KeycloakIdentity identity, ResourceServer resourceServer, AuthorizationProvider authorization)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsecreate(PermissionTicketRepresentation representation)javax.ws.rs.core.Responsedelete(String id)javax.ws.rs.core.Responsefind(String scopeId, String resourceId, String owner, String requester, Boolean granted, Boolean returnNames, Integer firstResult, Integer maxResult)javax.ws.rs.core.ResponsegetPermissionCount(String scopeId, String resourceId, String owner, String requester, Boolean granted, Boolean returnNames)javax.ws.rs.core.Responseupdate(PermissionTicketRepresentation representation)
-
-
-
Constructor Detail
-
PermissionTicketService
public PermissionTicketService(KeycloakIdentity identity, ResourceServer resourceServer, AuthorizationProvider authorization)
-
-
Method Detail
-
create
@POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response create(PermissionTicketRepresentation representation)
-
update
@PUT @Consumes("application/json") public javax.ws.rs.core.Response update(PermissionTicketRepresentation representation)
-
delete
@Path("{id}") @DELETE @Consumes("application/json") public javax.ws.rs.core.Response delete(@PathParam("id") String id)
-
find
@GET @Produces("application/json") public javax.ws.rs.core.Response find(@QueryParam("scopeId") String scopeId, @QueryParam("resourceId") String resourceId, @QueryParam("owner") String owner, @QueryParam("requester") String requester, @QueryParam("granted") Boolean granted, @QueryParam("returnNames") Boolean returnNames, @QueryParam("first") Integer firstResult, @QueryParam("max") Integer maxResult)
-
getPermissionCount
@Path("/count") @GET @Produces("application/json") public javax.ws.rs.core.Response getPermissionCount(@QueryParam("scopeId") String scopeId, @QueryParam("resourceId") String resourceId, @QueryParam("owner") String owner, @QueryParam("requester") String requester, @QueryParam("granted") Boolean granted, @QueryParam("returnNames") Boolean returnNames)
-
-