public class PermissionTicketService extends Object
| Constructor and Description |
|---|
PermissionTicketService(KeycloakIdentity identity,
ResourceServer resourceServer,
AuthorizationProvider authorization) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(PermissionTicketRepresentation representation) |
javax.ws.rs.core.Response |
delete(String id) |
javax.ws.rs.core.Response |
find(String scopeId,
String resourceId,
String owner,
String requester,
Boolean granted,
Boolean returnNames,
Integer firstResult,
Integer maxResult) |
javax.ws.rs.core.Response |
getPermissionCount(String scopeId,
String resourceId,
String owner,
String requester,
Boolean granted,
Boolean returnNames) |
javax.ws.rs.core.Response |
update(PermissionTicketRepresentation representation) |
public PermissionTicketService(KeycloakIdentity identity, ResourceServer resourceServer, AuthorizationProvider authorization)
@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(PermissionTicketRepresentation representation)
@PUT @Consumes(value="application/json") public javax.ws.rs.core.Response update(PermissionTicketRepresentation representation)
@Path(value="{id}")
@DELETE
@Consumes(value="application/json")
public javax.ws.rs.core.Response delete(@PathParam(value="id")
String id)
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response find(@QueryParam(value="scopeId")
String scopeId,
@QueryParam(value="resourceId")
String resourceId,
@QueryParam(value="owner")
String owner,
@QueryParam(value="requester")
String requester,
@QueryParam(value="granted")
Boolean granted,
@QueryParam(value="returnNames")
Boolean returnNames,
@QueryParam(value="first")
Integer firstResult,
@QueryParam(value="max")
Integer maxResult)
@Path(value="/count")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getPermissionCount(@QueryParam(value="scopeId")
String scopeId,
@QueryParam(value="resourceId")
String resourceId,
@QueryParam(value="owner")
String owner,
@QueryParam(value="requester")
String requester,
@QueryParam(value="granted")
Boolean granted,
@QueryParam(value="returnNames")
Boolean returnNames)
Copyright © 2021 JBoss by Red Hat. All rights reserved.