Search in sources :

Example 1 with OnUpdateComponent

use of org.keycloak.storage.OnUpdateComponent in project keycloak by keycloak.

the class ComponentUtil method notifyUpdated.

public static void notifyUpdated(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) {
    ComponentFactory factory = getComponentFactory(session, newModel);
    factory.onUpdate(session, realm, oldModel, newModel);
    if (factory instanceof UserStorageProviderFactory) {
        ((OnUpdateComponent) session.userStorageManager()).onUpdate(session, realm, oldModel, newModel);
    }
}
Also used : OnUpdateComponent(org.keycloak.storage.OnUpdateComponent) ComponentFactory(org.keycloak.component.ComponentFactory) UserStorageProviderFactory(org.keycloak.storage.UserStorageProviderFactory)

Aggregations

ComponentFactory (org.keycloak.component.ComponentFactory)1 OnUpdateComponent (org.keycloak.storage.OnUpdateComponent)1 UserStorageProviderFactory (org.keycloak.storage.UserStorageProviderFactory)1