services/src/main/java/org/keycloak/services/managers/UsersSyncManager.java
/**
     * Check federationProviderModel of all realms and possibly start periodic sync for them
     *
     * @param sessionFactory
     * @param timer
     */
Check federationProviderModel of all realms and possibly start periodic sync for them
@param sessionFactory
@param timer
Check federationProviderModel of all realms and possibly start periodic sync for them @param sessionFactory @param timer
public void bootstrapPeriodic(final KeycloakSessionFactory sessionFactory, final TimerProvider timer) {
        KeycloakModelUtils.runJobInTransaction(sessionFactory, new KeycloakSessionTask() {
            @Override
            public void run(KeycloakSession session) {
                List<RealmModel> realms = session.realms().getRealms();
                for (final RealmModel realm : realms) {
                    List<UserFederationProviderModel> federationProviders = realm.getUserFederationProviders();
                    for (final UserFederationProviderModel fedProvider : federationProviders) {
                        refreshPeriodicSyncForProvider(sessionFactory, timer, fedProvider, realm.getId());
                    }
                }
            }
        });
    }
public void bootstrapPeriodic ( final KeycloakSessionFactory sessionFactory , final TimerProvider timer ) { KeycloakModelUtils . runJobInTransaction ( sessionFactory , new KeycloakSessionTask ( ) { @ Override public void run ( KeycloakSession session ) { List < RealmModel > realms = session . realms ( ) . getRealms ( ) ; for ( final RealmModel realm : realms ) { List < UserFederationProviderModel > federationProviders = realm . getUserFederationProviders ( ) ; for ( final UserFederationProviderModel fedProvider : federationProviders ) { refreshPeriodicSyncForProvider ( sessionFactory , timer , fedProvider , realm . getId ( ) ) ; } } } } ) ; }
Check federationProviderModel of all realms and possibly start periodic sync for them
 @param sessionFactory
 @param timer
Check federationProviderModel of all realms and possibly start periodic sync for them @param sessionFactory @param timer