Package org.keycloak.userprofile
Class DeclarativeUserProfileProviderFactory
java.lang.Object
org.keycloak.userprofile.DeclarativeUserProfileProviderFactory
- All Implemented Interfaces:
AmphibianProviderFactory<UserProfileProvider>,ComponentFactory<UserProfileProvider,,UserProfileProvider> ConfiguredProvider,ProviderFactory<UserProfileProvider>,UserProfileProviderFactory
public class DeclarativeUserProfileProviderFactory
extends Object
implements UserProfileProviderFactory, AmphibianProviderFactory<UserProfileProvider>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.protected UserProfileMetadataconfigureUserProfile(UserProfileMetadata metadata) Specifies how contextual profile metadata is configured at init time.create(KeycloakSession session) Returns the metadata for each configuration property supported by this factory.protected Map<UserProfileContext,UserProfileMetadata> getId()protected UPConfigstatic PatterngetRegexPatternString(String[] builtinReadOnlyAttributes) voidinit(Config.Scope config) Only called once when the factory is first created.intorder()voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedstatic voidsetDefaultConfig(UPConfig defaultConfig) voidvalidateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) Called before a component is created or updated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.component.AmphibianProviderFactory
create, onUpdate, preRemoveMethods inherited from interface org.keycloak.component.ComponentFactory
getCommonProviderConfigProperties, getTypeMetadata, onCreateMethods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfigMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn
-
Field Details
-
CONFIG_ADMIN_READ_ONLY_ATTRIBUTES
- See Also:
-
CONFIG_READ_ONLY_ATTRIBUTES
- See Also:
-
MAX_EMAIL_LOCAL_PART_LENGTH
- See Also:
-
ID
- See Also:
-
PROVIDER_PRIORITY
public static final int PROVIDER_PRIORITY- See Also:
-
-
Constructor Details
-
DeclarativeUserProfileProviderFactory
public DeclarativeUserProfileProviderFactory()
-
-
Method Details
-
setDefaultConfig
-
getRegexPatternString
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created.- Specified by:
initin interfaceProviderFactory<UserProfileProvider>
-
getConfigMetadata
Description copied from interface:ProviderFactoryReturns the metadata for each configuration property supported by this factory.- Specified by:
getConfigMetadatain interfaceProviderFactory<UserProfileProvider>- Returns:
- a list with the metadata for each configuration property supported by this factory
-
getConfigProperties
- Specified by:
getConfigPropertiesin interfaceAmphibianProviderFactory<UserProfileProvider>- Specified by:
getConfigPropertiesin interfaceConfiguredProvider
-
validateConfiguration
public void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) throws ComponentValidationException Description copied from interface:ComponentFactoryCalled before a component is created or updated. Allows you to validate the configuration- Specified by:
validateConfigurationin interfaceComponentFactory<UserProfileProvider,UserProfileProvider> - Throws:
ComponentValidationException
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<UserProfileProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<UserProfileProvider>
-
order
public int order()- Specified by:
orderin interfaceProviderFactory<UserProfileProvider>
-
getHelpText
- Specified by:
getHelpTextin interfaceConfiguredProvider
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceAmphibianProviderFactory<UserProfileProvider>- Specified by:
closein interfaceProviderFactory<UserProfileProvider>
-
create
- Specified by:
createin interfaceAmphibianProviderFactory<UserProfileProvider>- Specified by:
createin interfaceComponentFactory<UserProfileProvider,UserProfileProvider> - Specified by:
createin interfaceProviderFactory<UserProfileProvider>
-
configureUserProfile
Specifies how contextual profile metadata is configured at init time.- Parameters:
metadata- the profile metadata- Returns:
- the metadata
-
getParsedDefaultRawConfig
-
getContextualMetadataRegistry
-