Package org.keycloak.storage.managers
Class UserStorageSyncManager
java.lang.Object
org.keycloak.storage.managers.UserStorageSyncManager
- Author:
- Marek Posolda
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
bootstrapPeriodic
(KeycloakSessionFactory sessionFactory, TimerProvider timer) Check federationProviderModel of all realms and possibly start periodic sync for themstatic void
notifyToRefreshPeriodicSync
(KeycloakSession session, RealmModel realm, UserStorageProviderModel provider, boolean removed) static void
notifyToRefreshPeriodicSyncAll
(KeycloakSession session, RealmModel realm, boolean removed) static void
notifyToRefreshPeriodicSyncSingle
(KeycloakSession session, RealmModel realm, ComponentModel component, boolean removed) protected static void
refreshPeriodicSyncForProvider
(KeycloakSessionFactory sessionFactory, TimerProvider timer, UserStorageProviderModel provider, String realmId) protected static void
removePeriodicSyncForProvider
(TimerProvider timer, UserStorageProviderModel fedProvider) static SynchronizationResult
syncAllUsers
(KeycloakSessionFactory sessionFactory, String realmId, UserStorageProviderModel provider) static SynchronizationResult
syncChangedUsers
(KeycloakSessionFactory sessionFactory, String realmId, UserStorageProviderModel provider)
-
Constructor Details
-
UserStorageSyncManager
public UserStorageSyncManager()
-
-
Method Details
-
bootstrapPeriodic
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)
-