Class FlowuiAccessChecker

java.lang.Object
io.jmix.flowui.sys.FlowuiAccessChecker

@Component("flowui_FlowuiAccessChecker") public class FlowuiAccessChecker extends Object
Class checks UI access permission.
  • Field Details

    • accessAnnotationChecker

      protected com.vaadin.flow.server.auth.AccessAnnotationChecker accessAnnotationChecker
    • accessManager

      protected AccessManager accessManager
    • screenRegistry

      protected ScreenRegistry screenRegistry
  • Constructor Details

    • FlowuiAccessChecker

      public FlowuiAccessChecker(@Nullable com.vaadin.flow.server.auth.AccessAnnotationChecker accessAnnotationChecker, AccessManager accessManager, ScreenRegistry screenRegistry)
  • Method Details

    • isMenuPermitted

      public boolean isMenuPermitted(MenuItem menuItem)
      Firstly AccessAnnotationChecker checks annotation constraints, if menu item is not permitted then AccessManager checks granted permissions.
      Parameters:
      menuItem - menu item to check
      Returns:
      true if menu item is permitted
    • isViewPermitted

      public boolean isViewPermitted(Class<?> target)
      Firstly AccessAnnotationChecker checks annotation constraints, if view is not permitted then AccessManager checks granted permissions.
      Parameters:
      target - class to check
      Returns:
      true if view is permitted
    • getControllerClass

      protected Class<? extends Screen<?>> getControllerClass(MenuItem menuItem)
    • isSupportedScreen

      protected boolean isSupportedScreen(Class<?> targetView)
    • isScreenHasSecurityPermission

      protected boolean isScreenHasSecurityPermission(Class<?> target)
    • isMenuItemHasSecurityPermission

      protected boolean isMenuItemHasSecurityPermission(MenuItem menuItem)