public class ComponentResource extends Object
Modifier and Type | Field and Description |
---|---|
protected ClientConnection |
clientConnection |
protected javax.ws.rs.core.HttpHeaders |
headers |
protected static org.jboss.logging.Logger |
logger |
protected RealmModel |
realm |
protected KeycloakSession |
session |
Constructor and Description |
---|
ComponentResource(RealmModel realm,
AdminPermissionEvaluator auth,
AdminEventBuilder adminEvent) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(ComponentRepresentation rep) |
ComponentRepresentation |
getComponent(String id) |
Stream<ComponentRepresentation> |
getComponents(String parent,
String type,
String name) |
Stream<ComponentTypeRepresentation> |
getSubcomponentConfig(String parentId,
String subtype)
List of subcomponent types that are available to configure for a particular parent component.
|
void |
removeComponent(String id) |
javax.ws.rs.core.Response |
updateComponent(String id,
ComponentRepresentation rep) |
protected static final org.jboss.logging.Logger logger
protected RealmModel realm
@Context protected ClientConnection clientConnection
@Context protected KeycloakSession session
@Context protected javax.ws.rs.core.HttpHeaders headers
public ComponentResource(RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
@GET @Produces(value="application/json") public Stream<ComponentRepresentation> getComponents(@QueryParam(value="parent") String parent, @QueryParam(value="type") String type, @QueryParam(value="name") String name)
@POST @Consumes(value="application/json") public javax.ws.rs.core.Response create(ComponentRepresentation rep)
@GET @Path(value="{id}") @Produces(value="application/json") public ComponentRepresentation getComponent(@PathParam(value="id") String id)
@PUT @Path(value="{id}") @Consumes(value="application/json") public javax.ws.rs.core.Response updateComponent(@PathParam(value="id") String id, ComponentRepresentation rep)
@DELETE @Path(value="{id}") public void removeComponent(@PathParam(value="id") String id)
@GET @Path(value="{id}/sub-component-types") @Produces(value="application/json") public Stream<ComponentTypeRepresentation> getSubcomponentConfig(@PathParam(value="id") String parentId, @QueryParam(value="type") String subtype)
parentId
- subtype
- Copyright © 2021 JBoss by Red Hat. All rights reserved.