Class RoleConfigPropertyByRoleNameSynchronizer
- java.lang.Object
-
- org.keycloak.broker.provider.mappersync.AbstractConfigPropertySynchronizer<RoleModel.RoleNameChangeEvent>
-
- org.keycloak.broker.provider.mappersync.RoleConfigPropertyByRoleNameSynchronizer
-
- All Implemented Interfaces:
ConfigSynchronizer<RoleModel.RoleNameChangeEvent>
public class RoleConfigPropertyByRoleNameSynchronizer extends AbstractConfigPropertySynchronizer<RoleModel.RoleNameChangeEvent>
Updates a role reference a in mapper config, when a role name changes.- Author:
- Daniel Fesenmeyer
-
-
Field Summary
Fields Modifier and Type Field Description static RoleConfigPropertyByRoleNameSynchronizer
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RealmModel
extractRealm(RoleModel.RoleNameChangeEvent event)
String
getConfigPropertyName()
Class<RoleModel.RoleNameChangeEvent>
getEventClass()
protected void
updateConfigPropertyIfNecessary(RoleModel.RoleNameChangeEvent event, String currentPropertyValue, Consumer<String> propertyUpdater)
-
Methods inherited from class org.keycloak.broker.provider.mappersync.AbstractConfigPropertySynchronizer
handleEvent
-
-
-
-
Field Detail
-
INSTANCE
public static final RoleConfigPropertyByRoleNameSynchronizer INSTANCE
-
-
Method Detail
-
getEventClass
public Class<RoleModel.RoleNameChangeEvent> getEventClass()
-
extractRealm
public RealmModel extractRealm(RoleModel.RoleNameChangeEvent event)
-
getConfigPropertyName
public String getConfigPropertyName()
- Specified by:
getConfigPropertyName
in classAbstractConfigPropertySynchronizer<RoleModel.RoleNameChangeEvent>
-
updateConfigPropertyIfNecessary
protected void updateConfigPropertyIfNecessary(RoleModel.RoleNameChangeEvent event, String currentPropertyValue, Consumer<String> propertyUpdater)
- Specified by:
updateConfigPropertyIfNecessary
in classAbstractConfigPropertySynchronizer<RoleModel.RoleNameChangeEvent>
-
-