Class GroupLDAPStorageMapperFactory
java.lang.Object
org.keycloak.storage.ldap.mappers.AbstractLDAPStorageMapperFactory
org.keycloak.storage.ldap.mappers.membership.group.GroupLDAPStorageMapperFactory
- All Implemented Interfaces:
ComponentFactory<LDAPStorageMapper,,LDAPStorageMapper> SubComponentFactory<LDAPStorageMapper,,LDAPStorageMapper> ConfiguredProvider,ProviderFactory<LDAPStorageMapper>,LDAPStorageMapperFactory<LDAPStorageMapper>
- Author:
- Marek Posolda
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final List<ProviderConfigProperty>static final Stringprotected static final Map<String,UserRolesRetrieveStrategy> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractLDAPStorageMappercreateMapper(ComponentModel mapperModel, LDAPStorageProvider federationProvider) getConfigProperties(RealmModel realm, ComponentModel parent) getId()This is the name of the provider and will be showed in the admin console as an option.This is metadata about this component type.protected UserRolesRetrieveStrategygetUserGroupsRetrieveStrategy(String strategyKey) voidonCreate(KeycloakSession session, RealmModel realm, ComponentModel model) Called when UserStorageProviderModel is created.voidonParentUpdate(RealmModel realm, UserStorageProviderModel oldParent, UserStorageProviderModel newParent, ComponentModel mapperModel) voidonUpdate(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) Called after the component is updated.voidvalidateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config) Called before a component is created or updated.Methods inherited from class org.keycloak.storage.ldap.mappers.AbstractLDAPStorageMapperFactory
checkMandatoryConfigAttribute, close, create, createConfigProperty, createConfigProperty, init, postInitMethods 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, preRemoveMethods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfigMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, orderMethods inherited from interface org.keycloak.component.SubComponentFactory
getTypeMetadata
-
Field Details
-
PROVIDER_ID
- See Also:
-
configProperties
-
userGroupsStrategies
-
MEMBERSHIP_TYPES
-
MODES
-
NO_IMPORT_MODES
-
-
Constructor Details
-
GroupLDAPStorageMapperFactory
public GroupLDAPStorageMapperFactory()
-
-
Method Details
-
getHelpText
-
getConfigProperties
-
getId
Description copied from interface:LDAPStorageMapperFactoryThis is the name of the provider and will be showed in the admin console as an option. -
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> - Overrides:
getTypeMetadatain classAbstractLDAPStorageMapperFactory- Returns:
-
onParentUpdate
public void onParentUpdate(RealmModel realm, UserStorageProviderModel oldParent, UserStorageProviderModel newParent, ComponentModel mapperModel) -
onCreate
Description copied from interface:LDAPStorageMapperFactoryCalled when UserStorageProviderModel is created. This allows you to do initialization of any additional configuration you need to add. For example, you may be introspecting a database or ldap schema to automatically create mappings. -
onUpdate
public void onUpdate(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) Description copied from interface:ComponentFactoryCalled after the component is updated.oldModel- old saved modelnewModel- new configuration
-
getConfigProperties
-
validateConfiguration
public void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config) throws ComponentValidationException Description copied from interface:ComponentFactoryCalled before a component is created or updated. Allows you to validate the configuration- Throws:
ComponentValidationException
-
createMapper
protected AbstractLDAPStorageMapper createMapper(ComponentModel mapperModel, LDAPStorageProvider federationProvider) - Specified by:
createMapperin classAbstractLDAPStorageMapperFactory
-
getUserGroupsRetrieveStrategy
-