Class ProtocolMappersResource
java.lang.Object
org.keycloak.services.resources.admin.ProtocolMappersResource
Base resource for managing users
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AdminEventBuilder
protected final AdminPermissionEvaluator
protected final ProtocolMapperContainerModel
protected static final org.jboss.logging.Logger
protected final AdminPermissionEvaluator.RequirePermissionCheck
protected final RealmModel
protected final KeycloakSession
protected final AdminPermissionEvaluator.RequirePermissionCheck
-
Constructor Summary
ConstructorDescriptionProtocolMappersResource
(KeycloakSession session, ProtocolMapperContainerModel client, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck managePermission, AdminPermissionEvaluator.RequirePermissionCheck viewPermission) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Create multiple mappersjakarta.ws.rs.core.Response
Create a mappervoid
Delete the mappergetMapperById
(String id) Get mapper by idGet mappersgetMappersPerProtocol
(String protocol) Get mappers by name for a specific protocolvoid
update
(String id, ProtocolMapperRepresentation rep) Update the mapper
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
realm
-
client
-
auth
-
managePermission
-
viewPermission
-
adminEvent
-
session
-
-
Constructor Details
-
ProtocolMappersResource
public ProtocolMappersResource(KeycloakSession session, ProtocolMapperContainerModel client, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck managePermission, AdminPermissionEvaluator.RequirePermissionCheck viewPermission)
-
-
Method Details
-
getMappersPerProtocol
@GET @Path("protocol/{protocol}") @Produces("application/json") public Stream<ProtocolMapperRepresentation> getMappersPerProtocol(@PathParam("protocol") String protocol) Get mappers by name for a specific protocol- Parameters:
protocol
-- Returns:
-
createMapper
@Path("models") @POST @Consumes("application/json") public jakarta.ws.rs.core.Response createMapper(ProtocolMapperRepresentation rep) Create a mapper- Parameters:
rep
-
-
createMapper
@Path("add-models") @POST @Consumes("application/json") public void createMapper(List<ProtocolMapperRepresentation> reps) Create multiple mappers -
getMappers
@GET @Path("models") @Produces("application/json") public Stream<ProtocolMapperRepresentation> getMappers()Get mappers- Returns:
-
getMapperById
@GET @Path("models/{id}") @Produces("application/json") public ProtocolMapperRepresentation getMapperById(@PathParam("id") String id) Get mapper by id- Parameters:
id
- Mapper id- Returns:
-
update
@PUT @Path("models/{id}") @Consumes("application/json") public void update(@PathParam("id") String id, ProtocolMapperRepresentation rep) Update the mapper- Parameters:
id
- Mapper idrep
-
-
delete
Delete the mapper- Parameters:
id
- Mapper id
-