public class UserFederationProviderResource extends Object
| Constructor and Description |
|---|
UserFederationProviderResource(KeycloakSession session,
RealmModel realm,
RealmAuth auth,
UserFederationProviderModel federationProviderModel,
AdminEventBuilder adminEvent) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addMapper(UserFederationMapperRepresentation mapper)
Create a mapper
|
void |
delete(String id)
Delete a mapper with a given id
|
void |
deleteProviderInstance()
Delete a provider
|
UserFederationMapperRepresentation |
getMapperById(String id)
Get a mapper
|
List<UserFederationMapperRepresentation> |
getMappers()
Get mappers configured for this provider
|
Map<String,UserFederationMapperTypeRepresentation> |
getMapperTypes()
Get available user federation mapper types
|
UserFederationProviderRepresentation |
getProviderInstance()
Get a provider
|
UserFederationSyncResult |
syncMapperData(String mapperId,
String direction)
Trigger sync of mapper data related to federationMapper (roles, groups, ...)
|
UserFederationSyncResult |
syncUsers(String action)
Trigger sync of users
|
void |
update(String id,
UserFederationMapperRepresentation rep)
Update a mapper
|
javax.ws.rs.core.Response |
updateProviderInstance(UserFederationProviderRepresentation rep)
Update a provider
|
public UserFederationProviderResource(KeycloakSession session, RealmModel realm, RealmAuth auth, UserFederationProviderModel federationProviderModel, AdminEventBuilder adminEvent)
@PUT @Consumes(value="application/json") public javax.ws.rs.core.Response updateProviderInstance(UserFederationProviderRepresentation rep)
rep - @GET @Produces(value="application/json") public UserFederationProviderRepresentation getProviderInstance()
@DELETE public void deleteProviderInstance()
@POST @Path(value="sync") @Produces(value="application/json") public UserFederationSyncResult syncUsers(@QueryParam(value="action") String action)
@GET @Path(value="mapper-types") @Produces(value="application/json") public Map<String,UserFederationMapperTypeRepresentation> getMapperTypes()
@GET @Path(value="mappers") @Produces(value="application/json") public List<UserFederationMapperRepresentation> getMappers()
@POST @Path(value="mappers") @Consumes(value="application/json") public javax.ws.rs.core.Response addMapper(UserFederationMapperRepresentation mapper)
mapper - @GET
@Path(value="mappers/{id}")
@Produces(value="application/json")
public UserFederationMapperRepresentation getMapperById(@PathParam(value="id")
String id)
id - Mapper id@PUT
@Path(value="mappers/{id}")
@Consumes(value="application/json")
public void update(@PathParam(value="id")
String id,
UserFederationMapperRepresentation rep)
id - Mapper idrep - @DELETE
@Path(value="mappers/{id}")
public void delete(@PathParam(value="id")
String id)
id - Mapper id@POST
@Path(value="mappers/{id}/sync")
@Produces(value="application/json")
public UserFederationSyncResult syncMapperData(@PathParam(value="id")
String mapperId,
@QueryParam(value="direction")
String direction)
Copyright © 2016 JBoss by Red Hat. All rights reserved.