public class UserStorageProviderResource extends Object
Modifier and Type | Field and Description |
---|---|
protected AdminEventBuilder |
adminEvent |
protected AdminPermissionEvaluator |
auth |
protected org.keycloak.common.ClientConnection |
clientConnection |
protected javax.ws.rs.core.HttpHeaders |
headers |
protected RealmModel |
realm |
protected KeycloakSession |
session |
Constructor and Description |
---|
UserStorageProviderResource(RealmModel realm,
AdminPermissionEvaluator auth,
AdminEventBuilder adminEvent) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getSimpleName(String id)
Need this for admin console to display simple name of provider when displaying user detail
KEYCLOAK-4328
|
void |
removeImportedUsers(String id)
Remove imported users
|
SynchronizationResult |
syncMapperData(String parentId,
String mapperId,
String direction)
Trigger sync of mapper data related to ldap mapper (roles, groups, ...)
direction is "fedToKeycloak" or "keycloakToFed"
|
SynchronizationResult |
syncUsers(String id,
String action)
Trigger sync of users
Action can be "triggerFullSync" or "triggerChangedUsersSync"
|
void |
unlinkUsers(String id)
Unlink imported users from a storage provider
|
protected RealmModel realm
protected AdminPermissionEvaluator auth
protected AdminEventBuilder adminEvent
@Context protected org.keycloak.common.ClientConnection clientConnection
@Context protected KeycloakSession session
@Context protected javax.ws.rs.core.HttpHeaders headers
public UserStorageProviderResource(RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
@GET @Path(value="{id}/name") @Produces(value="application/json") public Map<String,String> getSimpleName(@PathParam(value="id") String id)
id
- @POST @Path(value="{id}/sync") @Produces(value="application/json") public SynchronizationResult syncUsers(@PathParam(value="id") String id, @QueryParam(value="action") String action)
id
- action
- @POST @Path(value="{id}/remove-imported-users") public void removeImportedUsers(@PathParam(value="id") String id)
id
- @POST @Path(value="{id}/unlink-users") public void unlinkUsers(@PathParam(value="id") String id)
id
- @POST @Path(value="{parentId}/mappers/{id}/sync") @Produces(value="application/json") public SynchronizationResult syncMapperData(@PathParam(value="parentId") String parentId, @PathParam(value="id") String mapperId, @QueryParam(value="direction") String direction)
Copyright © 2019 JBoss by Red Hat. All rights reserved.