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