Class ComponentResource


  • public class ComponentResource
    extends Object
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Field Detail

      • logger

        protected static final org.jboss.logging.Logger logger
      • realm

        protected final org.keycloak.models.RealmModel realm
      • clientConnection

        protected final org.keycloak.common.ClientConnection clientConnection
      • session

        protected final org.keycloak.models.KeycloakSession session
      • headers

        protected final javax.ws.rs.core.HttpHeaders headers
    • Method Detail

      • getComponents

        @GET
        @Produces("application/json")
        public Stream<org.keycloak.representations.idm.ComponentRepresentation> getComponents​(@QueryParam("parent")
                                                                                              String parent,
                                                                                              @QueryParam("type")
                                                                                              String type,
                                                                                              @QueryParam("name")
                                                                                              String name)
      • create

        @POST
        @Consumes("application/json")
        public javax.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 javax.ws.rs.core.Response updateComponent​(@PathParam("id")
                                                         String id,
                                                         org.keycloak.representations.idm.ComponentRepresentation rep)
      • removeComponent

        @DELETE
        @Path("{id}")
        public void removeComponent​(@PathParam("id")
                                    String id)
      • 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: