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
static 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 themprotected static void
cancelPeriodicSyncForProviderIfPresent
(TimerProvider timer, UserStorageProviderModel providerModel, UserStorageSyncManager.UserStorageSyncTask.SyncMode syncMode) static String
createSyncTaskName
(UserStorageProviderModel model, UserStorageSyncManager.UserStorageSyncTask.SyncMode syncMode) static 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, RealmModel realm) 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, RealmModel realm) -
createSyncTaskName
public static String createSyncTaskName(UserStorageProviderModel model, UserStorageSyncManager.UserStorageSyncTask.SyncMode syncMode) -
removePeriodicSyncForProvider
protected static void removePeriodicSyncForProvider(TimerProvider timer, UserStorageProviderModel fedProvider) -
cancelPeriodicSyncForProviderIfPresent
protected static void cancelPeriodicSyncForProviderIfPresent(TimerProvider timer, UserStorageProviderModel providerModel, UserStorageSyncManager.UserStorageSyncTask.SyncMode syncMode)
-