Class UiViewAccessChecker

java.lang.Object
io.jmix.securityflowui.access.UiViewAccessChecker
All Implemented Interfaces:
com.vaadin.flow.router.BeforeEnterListener, com.vaadin.flow.router.internal.BeforeEnterHandler, Serializable

@Deprecated(since="2.3", forRemoval=true) public class UiViewAccessChecker extends Object implements com.vaadin.flow.router.BeforeEnterListener
Deprecated, for removal: This API element is subject to removal in a future version.
Use JmixNavigationAccessChecker instead. Vaadin introduced new NavigationAccessControl mechanism.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected Class<? extends com.vaadin.flow.component.Component>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected final UiAccessChecker
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    UiViewAccessChecker(boolean enabled, UiAccessChecker uiAccessChecker)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beforeEnter(com.vaadin.flow.router.BeforeEnterEvent beforeEnterEvent)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Enables the access checker.
    protected boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected boolean
    isHasAccess(Class<?> targetView)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected boolean
    isProductionMode(com.vaadin.flow.router.BeforeEnterEvent beforeEnterEvent)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setLoginView(Class<? extends com.vaadin.flow.component.Component> loginView)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • uiAccessChecker

      protected final UiAccessChecker uiAccessChecker
      Deprecated, for removal: This API element is subject to removal in a future version.
    • enabled

      protected boolean enabled
      Deprecated, for removal: This API element is subject to removal in a future version.
    • loginView

      protected Class<? extends com.vaadin.flow.component.Component> loginView
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • UiViewAccessChecker

      public UiViewAccessChecker(UiAccessChecker uiAccessChecker)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • UiViewAccessChecker

      public UiViewAccessChecker(boolean enabled, UiAccessChecker uiAccessChecker)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • enable

      public void enable()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Enables the access checker.

      This must be called for the access checker to perform any checks. By default, the access checker is disabled.

    • setLoginView

      public void setLoginView(Class<? extends com.vaadin.flow.component.Component> loginView)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • throwIfLoginViewSet

      protected void throwIfLoginViewSet()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • beforeEnter

      public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent beforeEnterEvent)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      beforeEnter in interface com.vaadin.flow.router.internal.BeforeEnterHandler
    • isHasAccess

      protected boolean isHasAccess(Class<?> targetView)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isProductionMode

      protected boolean isProductionMode(com.vaadin.flow.router.BeforeEnterEvent beforeEnterEvent)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isAnonymousAuthentication

      protected boolean isAnonymousAuthentication()
      Deprecated, for removal: This API element is subject to removal in a future version.