Class AbstractLDAPStorageMapperFactory
java.lang.Object
org.keycloak.storage.ldap.mappers.AbstractLDAPStorageMapperFactory
- All Implemented Interfaces:
ComponentFactory<LDAPStorageMapper,,LDAPStorageMapper> SubComponentFactory<LDAPStorageMapper,,LDAPStorageMapper> ConfiguredProvider,ProviderFactory<LDAPStorageMapper>,LDAPStorageMapperFactory<LDAPStorageMapper>
- Direct Known Subclasses:
FullNameLDAPStorageMapperFactory,GroupLDAPStorageMapperFactory,HardcodedAttributeMapperFactory,HardcodedLDAPAttributeMapperFactory,HardcodedLDAPGroupStorageMapperFactory,HardcodedLDAPRoleStorageMapperFactory,KerberosPrincipalAttributeMapperFactory,MSADLDSUserAccountControlStorageMapperFactory,MSADUserAccountControlStorageMapperFactory,RoleLDAPStorageMapperFactory,UserAttributeLDAPStorageMapperFactory
public abstract class AbstractLDAPStorageMapperFactory
extends Object
implements LDAPStorageMapperFactory<LDAPStorageMapper>
- Author:
- Marek Posolda
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckMandatoryConfigAttribute(String name, String displayName, ComponentModel mapperModel) voidclose()This is called when the server shuts down.create(KeycloakSession session, ComponentModel model) called per Keycloak transaction.static ProviderConfigPropertystatic ProviderConfigPropertycreateConfigProperty(String name, String label, String helpText, String type, List<String> options, boolean required) protected abstract AbstractLDAPStorageMappercreateMapper(ComponentModel mapperModel, LDAPStorageProvider federationProvider) This is metadata about this component type.voidinit(Config.Scope config) Only called once when the factory is first created.voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.component.ComponentFactory
create, getCommonProviderConfigProperties, onUpdate, preRemoveMethods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfigMethods inherited from interface org.keycloak.storage.ldap.mappers.LDAPStorageMapperFactory
getConfigProperties, getHelpText, getId, onCreate, onParentUpdate, validateConfigurationMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, orderMethods inherited from interface org.keycloak.component.SubComponentFactory
getConfigProperties, getTypeMetadata
-
Constructor Details
-
AbstractLDAPStorageMapperFactory
public AbstractLDAPStorageMapperFactory()
-
-
Method Details
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
initin interfaceLDAPStorageMapperFactory<LDAPStorageMapper>- Specified by:
initin interfaceProviderFactory<LDAPStorageMapper>
-
create
Description copied from interface:LDAPStorageMapperFactorycalled per Keycloak transaction.- Specified by:
createin interfaceComponentFactory<LDAPStorageMapper,LDAPStorageMapper> - Specified by:
createin interfaceLDAPStorageMapperFactory<LDAPStorageMapper>
-
createMapper
protected abstract AbstractLDAPStorageMapper createMapper(ComponentModel mapperModel, LDAPStorageProvider federationProvider) -
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceLDAPStorageMapperFactory<LDAPStorageMapper>- Specified by:
postInitin interfaceProviderFactory<LDAPStorageMapper>
-
getTypeMetadata
Description copied from interface:ComponentFactoryThis is metadata about this component type. Its really configuration information about the component type and not an individual instance- Specified by:
getTypeMetadatain interfaceComponentFactory<LDAPStorageMapper,LDAPStorageMapper> - Returns:
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceLDAPStorageMapperFactory<LDAPStorageMapper>- Specified by:
closein interfaceProviderFactory<LDAPStorageMapper>
-
createConfigProperty
-
createConfigProperty
-
checkMandatoryConfigAttribute
protected void checkMandatoryConfigAttribute(String name, String displayName, ComponentModel mapperModel) throws ComponentValidationException - Throws:
ComponentValidationException
-