Package org.keycloak.locale
Class DefaultLocaleUpdaterProvider
- java.lang.Object
-
- org.keycloak.locale.DefaultLocaleUpdaterProvider
-
- All Implemented Interfaces:
LocaleUpdaterProvider
,Provider
public class DefaultLocaleUpdaterProvider extends Object implements LocaleUpdaterProvider
-
-
Constructor Summary
Constructors Constructor Description DefaultLocaleUpdaterProvider(KeycloakSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
expireLocaleCookie()
void
updateLocaleCookie(String locale)
void
updateUsersLocale(UserModel user, String locale)
-
-
-
Constructor Detail
-
DefaultLocaleUpdaterProvider
public DefaultLocaleUpdaterProvider(KeycloakSession session)
-
-
Method Detail
-
updateUsersLocale
public void updateUsersLocale(UserModel user, String locale)
- Specified by:
updateUsersLocale
in interfaceLocaleUpdaterProvider
-
updateLocaleCookie
public void updateLocaleCookie(String locale)
- Specified by:
updateLocaleCookie
in interfaceLocaleUpdaterProvider
-
expireLocaleCookie
public void expireLocaleCookie()
- Specified by:
expireLocaleCookie
in interfaceLocaleUpdaterProvider
-
-