Package io.jmix.securityflowui.access
Class FlowuiScreenAccessChecker
java.lang.Object
io.jmix.securityflowui.access.FlowuiScreenAccessChecker
- All Implemented Interfaces:
com.vaadin.flow.router.BeforeEnterListener
,com.vaadin.flow.router.internal.BeforeEnterHandler
,Serializable
public class FlowuiScreenAccessChecker
extends Object
implements com.vaadin.flow.router.BeforeEnterListener
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected final FlowuiAccessChecker
protected Class<? extends com.vaadin.flow.component.Component>
-
Constructor Summary
ConstructorDescriptionFlowuiScreenAccessChecker
(boolean enabled, FlowuiAccessChecker flowuiAccessChecker) FlowuiScreenAccessChecker
(FlowuiAccessChecker flowuiAccessChecker) -
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeEnter
(com.vaadin.flow.router.BeforeEnterEvent beforeEnterEvent) void
enable()
Enables the access checker.protected boolean
protected boolean
isHasAccess
(Class<?> targetView) protected boolean
isProductionMode
(com.vaadin.flow.router.BeforeEnterEvent beforeEnterEvent) void
setLoginScreen
(Class<? extends com.vaadin.flow.component.Component> loginScreen) protected void
-
Field Details
-
flowuiAccessChecker
-
enabled
protected boolean enabled -
loginScreen
-
-
Constructor Details
-
FlowuiScreenAccessChecker
-
FlowuiScreenAccessChecker
-
-
Method Details
-
enable
public void enable()Enables the access checker.This must be called for the access checker to perform any checks. By default, the access checker is disabled.
-
setLoginScreen
-
throwIfLoginScreenSet
protected void throwIfLoginScreenSet() -
beforeEnter
public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent beforeEnterEvent) - Specified by:
beforeEnter
in interfacecom.vaadin.flow.router.internal.BeforeEnterHandler
-
isHasAccess
-
isProductionMode
protected boolean isProductionMode(com.vaadin.flow.router.BeforeEnterEvent beforeEnterEvent) -
isAnonymousAuthentication
protected boolean isAnonymousAuthentication()
-