public class ResourceSetService extends Object
| Constructor and Description |
|---|
ResourceSetService(KeycloakSession session,
ResourceServer resourceServer,
AuthorizationProvider authorization,
AdminPermissionEvaluator auth,
AdminEventBuilder adminEvent) |
| Modifier and Type | Method and Description |
|---|---|
void |
audit(ResourceRepresentation resource,
String id,
OperationType operation) |
ResourceRepresentation |
create(ResourceRepresentation resource) |
javax.ws.rs.core.Response |
createPost(ResourceRepresentation resource) |
javax.ws.rs.core.Response |
delete(String id) |
javax.ws.rs.core.Response |
find(String name) |
javax.ws.rs.core.Response |
find(String id,
String name,
String uri,
String owner,
String type,
String scope,
Boolean matchingUri,
Boolean exactName,
Boolean deep,
Integer firstResult,
Integer maxResult) |
javax.ws.rs.core.Response |
find(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) |
javax.ws.rs.core.Response |
findById(String id) |
javax.ws.rs.core.Response |
findById(String id,
Function<Resource,? extends ResourceRepresentation> toRepresentation) |
javax.ws.rs.core.Response |
getAttributes(String id) |
javax.ws.rs.core.Response |
getPermissions(String id) |
javax.ws.rs.core.Response |
getScopes(String id) |
javax.ws.rs.core.Response |
update(String id,
ResourceRepresentation resource) |
public ResourceSetService(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createPost(ResourceRepresentation resource)
public ResourceRepresentation create(ResourceRepresentation resource)
@Path(value="{id}")
@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response update(@PathParam(value="id")
String id,
ResourceRepresentation resource)
@Path(value="{id}")
@DELETE
public javax.ws.rs.core.Response delete(@PathParam(value="id")
String id)
@Path(value="{id}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findById(@PathParam(value="id")
String id)
public javax.ws.rs.core.Response findById(String id, Function<Resource,? extends ResourceRepresentation> toRepresentation)
@Path(value="{id}/scopes")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getScopes(@PathParam(value="id")
String id)
@Path(value="{id}/permissions")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getPermissions(@PathParam(value="id")
String id)
@Path(value="{id}/attributes")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getAttributes(@PathParam(value="id")
String id)
@Path(value="/search")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response find(@QueryParam(value="name")
String name)
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response find(@QueryParam(value="_id")
String id,
@QueryParam(value="name")
String name,
@QueryParam(value="uri")
String uri,
@QueryParam(value="owner")
String owner,
@QueryParam(value="type")
String type,
@QueryParam(value="scope")
String scope,
@QueryParam(value="matchingUri")
Boolean matchingUri,
@QueryParam(value="exactName")
Boolean exactName,
@QueryParam(value="deep")
Boolean deep,
@QueryParam(value="first")
Integer firstResult,
@QueryParam(value="max")
Integer maxResult)
public javax.ws.rs.core.Response find(@QueryParam(value="_id")
String id,
@QueryParam(value="name")
String name,
@QueryParam(value="uri")
String uri,
@QueryParam(value="owner")
String owner,
@QueryParam(value="type")
String type,
@QueryParam(value="scope")
String scope,
@QueryParam(value="matchingUri")
Boolean matchingUri,
@QueryParam(value="exactName")
Boolean exactName,
@QueryParam(value="deep")
Boolean deep,
@QueryParam(value="first")
Integer firstResult,
@QueryParam(value="max")
Integer maxResult,
BiFunction<Resource,Boolean,?> toRepresentation)
public void audit(ResourceRepresentation resource, String id, OperationType operation)
Copyright © 2021 JBoss by Red Hat. All rights reserved.