Package org.keycloak.storage.managers
Class UserStorageSyncManager
- java.lang.Object
-
- org.keycloak.storage.managers.UserStorageSyncManager
-
public class UserStorageSyncManager extends Object
- Author:
- Marek Posolda
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserStorageSyncManager.UserStorageProviderClusterEvent
-
Constructor Summary
Constructors Constructor Description UserStorageSyncManager()
-
Method Summary
-
-
-
Method Detail
-
bootstrapPeriodic
public static void bootstrapPeriodic(KeycloakSessionFactory sessionFactory, TimerProvider timer)
Check federationProviderModel of all realms and possibly start periodic sync for them- Parameters:
sessionFactory
-timer
-
-
syncAllUsers
public static SynchronizationResult syncAllUsers(KeycloakSessionFactory sessionFactory, String realmId, UserStorageProviderModel provider)
-
syncChangedUsers
public static SynchronizationResult syncChangedUsers(KeycloakSessionFactory sessionFactory, String realmId, UserStorageProviderModel provider)
-
notifyToRefreshPeriodicSyncAll
public static void notifyToRefreshPeriodicSyncAll(KeycloakSession session, RealmModel realm, boolean removed)
-
notifyToRefreshPeriodicSyncSingle
public static void notifyToRefreshPeriodicSyncSingle(KeycloakSession session, RealmModel realm, ComponentModel component, boolean removed)
-
notifyToRefreshPeriodicSync
public static void notifyToRefreshPeriodicSync(KeycloakSession session, RealmModel realm, UserStorageProviderModel provider, boolean removed)
-
refreshPeriodicSyncForProvider
protected static void refreshPeriodicSyncForProvider(KeycloakSessionFactory sessionFactory, TimerProvider timer, UserStorageProviderModel provider, String realmId)
-
removePeriodicSyncForProvider
protected static void removePeriodicSyncForProvider(TimerProvider timer, UserStorageProviderModel fedProvider)
-
-