public class ProtocolMappersResource extends Object
Modifier and Type | Field and Description |
---|---|
protected RealmAuth |
auth |
protected ClientModel |
client |
protected static org.jboss.logging.Logger |
logger |
protected KeycloakSession |
session |
protected javax.ws.rs.core.UriInfo |
uriInfo |
Constructor and Description |
---|
ProtocolMappersResource(ClientModel client,
RealmAuth auth) |
Modifier and Type | Method and Description |
---|---|
void |
createMapper(List<ProtocolMapperRepresentation> reps)
creates multiple mapper
|
javax.ws.rs.core.Response |
createMapper(ProtocolMapperRepresentation rep)
creates mapper
|
void |
delete(String id) |
ProtocolMapperRepresentation |
getMapperById(String id) |
List<ProtocolMapperRepresentation> |
getMappers() |
List<ProtocolMapperRepresentation> |
getMappersPerProtocol(String protocol)
Map of mappers by name for a specific protocol
|
void |
update(String id,
ProtocolMapperRepresentation rep) |
protected static final org.jboss.logging.Logger logger
protected ClientModel client
protected RealmAuth auth
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected KeycloakSession session
public ProtocolMappersResource(ClientModel client, RealmAuth auth)
@GET @Path(value="protocol/{protocol}") @Produces(value="application/json") public List<ProtocolMapperRepresentation> getMappersPerProtocol(@PathParam(value="protocol") String protocol)
protocol
- @Path(value="models") @POST @Consumes(value="application/json") public javax.ws.rs.core.Response createMapper(ProtocolMapperRepresentation rep)
rep
- @Path(value="add-models") @POST @Consumes(value="application/json") public void createMapper(List<ProtocolMapperRepresentation> reps)
@GET @Path(value="models") @Produces(value="application/json") public List<ProtocolMapperRepresentation> getMappers()
@GET @Path(value="models/{id}") @Produces(value="application/json") public ProtocolMapperRepresentation getMapperById(@PathParam(value="id") String id)
@PUT @Path(value="models/{id}") @Consumes(value="application/json") public void update(@PathParam(value="id") String id, ProtocolMapperRepresentation rep)
@DELETE @Path(value="models/{id}") public void delete(@PathParam(value="id") String id)
Copyright © 2015. All rights reserved.