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 Details

    • flowuiAccessChecker

      protected final FlowuiAccessChecker flowuiAccessChecker
    • enabled

      protected boolean enabled
    • loginScreen

      protected Class<? extends com.vaadin.flow.component.Component> loginScreen
  • Constructor Details

    • FlowuiScreenAccessChecker

      public FlowuiScreenAccessChecker(FlowuiAccessChecker flowuiAccessChecker)
    • FlowuiScreenAccessChecker

      public FlowuiScreenAccessChecker(boolean enabled, FlowuiAccessChecker flowuiAccessChecker)
  • 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

      public void setLoginScreen(Class<? extends com.vaadin.flow.component.Component> loginScreen)
    • throwIfLoginScreenSet

      protected void throwIfLoginScreenSet()
    • beforeEnter

      public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent beforeEnterEvent)
      Specified by:
      beforeEnter in interface com.vaadin.flow.router.internal.BeforeEnterHandler
    • isHasAccess

      protected boolean isHasAccess(Class<?> targetView)
    • isProductionMode

      protected boolean isProductionMode(com.vaadin.flow.router.BeforeEnterEvent beforeEnterEvent)
    • isAnonymousAuthentication

      protected boolean isAnonymousAuthentication()