Search in sources :

Example 1 with OnCreateComponent

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

the class ComponentUtil method notifyCreated.

public static void notifyCreated(KeycloakSession session, RealmModel realm, ComponentModel model) {
    ComponentFactory factory = getComponentFactory(session, model);
    factory.onCreate(session, realm, model);
    if (factory instanceof UserStorageProviderFactory) {
        ((OnCreateComponent) session.userStorageManager()).onCreate(session, realm, model);
    }
}
Also used : OnCreateComponent(org.keycloak.storage.OnCreateComponent) ComponentFactory(org.keycloak.component.ComponentFactory) UserStorageProviderFactory(org.keycloak.storage.UserStorageProviderFactory)

Aggregations

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