Class ComponentResource
java.lang.Object
org.keycloak.services.resources.admin.ComponentResource
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClientConnectionprotected final jakarta.ws.rs.core.HttpHeadersprotected static final org.jboss.logging.Loggerprotected final RealmModelprotected final KeycloakSession -
Constructor Summary
ConstructorsConstructorDescriptionComponentResource(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsecreate(org.keycloak.representations.idm.ComponentRepresentation rep) org.keycloak.representations.idm.ComponentRepresentationgetComponent(String id) Stream<org.keycloak.representations.idm.ComponentRepresentation>getComponents(String parent, String type, String name) Stream<org.keycloak.representations.idm.ComponentTypeRepresentation>getSubcomponentConfig(String parentId, String subtype) List of subcomponent types that are available to configure for a particular parent component.voidjakarta.ws.rs.core.ResponseupdateComponent(String id, org.keycloak.representations.idm.ComponentRepresentation rep)
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
realm
-
clientConnection
-
session
-
headers
protected final jakarta.ws.rs.core.HttpHeaders headers
-
-
Constructor Details
-
ComponentResource
public ComponentResource(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
-
Method Details
-
getComponents
-
create
@POST @Consumes("application/json") public jakarta.ws.rs.core.Response create(org.keycloak.representations.idm.ComponentRepresentation rep) -
getComponent
@GET @Path("{id}") @Produces("application/json") public org.keycloak.representations.idm.ComponentRepresentation getComponent(@PathParam("id") String id) -
updateComponent
@PUT @Path("{id}") @Consumes("application/json") public jakarta.ws.rs.core.Response updateComponent(@PathParam("id") String id, org.keycloak.representations.idm.ComponentRepresentation rep) -
removeComponent
-
getSubcomponentConfig
@GET @Path("{id}/sub-component-types") @Produces("application/json") public Stream<org.keycloak.representations.idm.ComponentTypeRepresentation> getSubcomponentConfig(@PathParam("id") String parentId, @QueryParam("type") String subtype) List of subcomponent types that are available to configure for a particular parent component.- Parameters:
parentId-subtype-- Returns:
-