Class FlowUiAnonymousAuthenticationLocaleResolver
java.lang.Object
io.jmix.flowui.sys.localeresolver.FlowUiAnonymousAuthenticationLocaleResolver
- All Implemented Interfaces:
AuthenticationLocaleResolver,org.springframework.core.Ordered
@Component("flowui_AnonymousAuthenticationLocaleResolver")
public class FlowUiAnonymousAuthenticationLocaleResolver
extends Object
implements AuthenticationLocaleResolver
Provides
Locale from VaadinSession.getCurrent() instance that should be used if current
authentication is anonymous.- See Also:
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
messageTools
-
-
Constructor Details
-
FlowUiAnonymousAuthenticationLocaleResolver
public FlowUiAnonymousAuthenticationLocaleResolver()
-
-
Method Details
-
supports
public boolean supports(org.springframework.security.core.Authentication authentication) - Specified by:
supportsin interfaceAuthenticationLocaleResolver- Parameters:
authentication- authentication to check- Returns:
trueif resolver supports given authentication
-
getLocale
- Specified by:
getLocalein interfaceAuthenticationLocaleResolver- Parameters:
authentication- authentication- Returns:
- locale that should be used, or
null
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-