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
    • viewRegistry

      protected ViewRegistry viewRegistry
  • Constructor Details

    • FlowuiAccessChecker

      public FlowuiAccessChecker(@Nullable com.vaadin.flow.server.auth.AccessAnnotationChecker accessAnnotationChecker, AccessManager accessManager, ViewRegistry viewRegistry)
  • 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 View<?>> getControllerClass(MenuItem menuItem)
    • isSupportedView

      protected boolean isSupportedView(Class<?> targetView)
    • isViewHasSecurityPermission

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

      protected boolean isMenuItemHasSecurityPermission(MenuItem menuItem)