public class ComponentResource extends Object
Modifier and Type | Field and Description |
---|---|
protected ClientConnection |
clientConnection |
protected javax.ws.rs.core.HttpHeaders |
headers |
protected static ServicesLogger |
logger |
protected RealmModel |
realm |
protected KeycloakSession |
session |
protected javax.ws.rs.core.UriInfo |
uriInfo |
Constructor and Description |
---|
ComponentResource(RealmModel realm,
RealmAuth auth,
AdminEventBuilder adminEvent) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(ComponentRepresentation rep) |
ComponentRepresentation |
getComponent(String id) |
List<ComponentRepresentation> |
getComponents(String parent,
String type) |
void |
removeComponent(String id) |
void |
updateComponent(String id,
ComponentRepresentation rep) |
protected static final ServicesLogger logger
protected RealmModel realm
@Context protected ClientConnection clientConnection
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected KeycloakSession session
@Context protected javax.ws.rs.core.HttpHeaders headers
public ComponentResource(RealmModel realm, RealmAuth auth, AdminEventBuilder adminEvent)
@GET @Produces(value="application/json") public List<ComponentRepresentation> getComponents(@QueryParam(value="parent") String parent, @QueryParam(value="type") String type)
@POST @Consumes(value="application/json") public javax.ws.rs.core.Response create(ComponentRepresentation rep)
@GET @Path(value="{id}") public ComponentRepresentation getComponent(@PathParam(value="id") String id)
@PUT @Path(value="{id}") @Consumes(value="application/json") public void updateComponent(@PathParam(value="id") String id, ComponentRepresentation rep)
@DELETE @Path(value="{id}") public void removeComponent(@PathParam(value="id") String id)
Copyright © 2016 JBoss by Red Hat. All rights reserved.