public interface ComponentFactory<CreatedType,ProviderType extends Provider> extends ProviderFactory<ProviderType>, ConfiguredProvider
Modifier and Type | Method and Description |
---|---|
default ProviderType |
create(KeycloakSession session) |
CreatedType |
create(KeycloakSession session,
ComponentModel model) |
default List<ProviderConfigProperty> |
getCommonProviderConfigProperties()
These are config properties that are common across all implementation of this component type
|
default Map<String,Object> |
getTypeMetadata()
This is metadata about this component type.
|
default void |
onCreate(KeycloakSession session,
RealmModel realm,
ComponentModel model)
Called after a component is created
|
default void |
onUpdate(KeycloakSession session,
RealmModel realm,
ComponentModel oldModel,
ComponentModel newModel)
Called after the component is updated.
|
default void |
preRemove(KeycloakSession session,
RealmModel realm,
ComponentModel model)
Called before the component is removed.
|
default void |
validateConfiguration(KeycloakSession session,
RealmModel realm,
ComponentModel model)
Called before a component is created or updated.
|
close, getId, init, order, postInit
getConfigProperties, getHelpText
CreatedType create(KeycloakSession session, ComponentModel model)
default ProviderType create(KeycloakSession session)
create
in interface ProviderFactory<ProviderType extends Provider>
default void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) throws ComponentValidationException
session
- realm
- model
- ComponentValidationException
default void onCreate(KeycloakSession session, RealmModel realm, ComponentModel model)
session
- realm
- model
- default void onUpdate(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel)
session
- realm
- oldModel
- old saved modelnewModel
- new configurationdefault void preRemove(KeycloakSession session, RealmModel realm, ComponentModel model)
session
- realm
- model
- model of the component, which is going to be removeddefault List<ProviderConfigProperty> getCommonProviderConfigProperties()
Copyright © 2019 JBoss by Red Hat. All rights reserved.