Class PermissionTicketService

    • Constructor Detail

      • PermissionTicketService

        public PermissionTicketService​(KeycloakIdentity identity,
                                       org.keycloak.authorization.model.ResourceServer resourceServer,
                                       org.keycloak.authorization.AuthorizationProvider authorization)
    • Method Detail

      • create

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response create​(org.keycloak.representations.idm.authorization.PermissionTicketRepresentation representation)
      • update

        @PUT
        @Consumes("application/json")
        public javax.ws.rs.core.Response update​(org.keycloak.representations.idm.authorization.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)