public class UserStorageProviderResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AdminEventBuilder |
adminEvent |
protected RealmAuth |
auth |
protected org.keycloak.common.ClientConnection |
clientConnection |
protected javax.ws.rs.core.HttpHeaders |
headers |
protected RealmModel |
realm |
protected KeycloakSession |
session |
protected javax.ws.rs.core.UriInfo |
uriInfo |
| Constructor and Description |
|---|
UserStorageProviderResource(RealmModel realm,
RealmAuth auth,
AdminEventBuilder adminEvent) |
| Modifier and Type | Method and Description |
|---|---|
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"
|
protected RealmModel realm
protected RealmAuth auth
protected AdminEventBuilder adminEvent
@Context protected org.keycloak.common.ClientConnection clientConnection
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected KeycloakSession session
@Context protected javax.ws.rs.core.HttpHeaders headers
public UserStorageProviderResource(RealmModel realm, RealmAuth auth, AdminEventBuilder adminEvent)
@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="{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 © 2017 JBoss by Red Hat. All rights reserved.