Package io.jmix.flowui.sys
Class FlowuiAccessChecker
java.lang.Object
io.jmix.flowui.sys.FlowuiAccessChecker
Class checks UI access permission.
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.vaadin.flow.server.auth.AccessAnnotationChecker
protected AccessManager
protected ScreenRegistry
-
Constructor Summary
ConstructorDescriptionFlowuiAccessChecker
(com.vaadin.flow.server.auth.AccessAnnotationChecker accessAnnotationChecker, AccessManager accessManager, ScreenRegistry screenRegistry) -
Method Summary
Modifier and TypeMethodDescriptiongetControllerClass
(MenuItem menuItem) protected boolean
isMenuItemHasSecurityPermission
(MenuItem menuItem) boolean
isMenuPermitted
(MenuItem menuItem) FirstlyAccessAnnotationChecker
checks annotation constraints, if menu item is not permitted thenAccessManager
checks granted permissions.protected boolean
isScreenHasSecurityPermission
(Class<?> target) protected boolean
isSupportedScreen
(Class<?> targetView) boolean
isViewPermitted
(Class<?> target) FirstlyAccessAnnotationChecker
checks annotation constraints, if view is not permitted thenAccessManager
checks granted permissions.
-
Field Details
-
accessAnnotationChecker
protected com.vaadin.flow.server.auth.AccessAnnotationChecker accessAnnotationChecker -
accessManager
-
screenRegistry
-
-
Constructor Details
-
FlowuiAccessChecker
public FlowuiAccessChecker(@Nullable com.vaadin.flow.server.auth.AccessAnnotationChecker accessAnnotationChecker, AccessManager accessManager, ScreenRegistry screenRegistry)
-
-
Method Details
-
isViewPermitted
FirstlyAccessAnnotationChecker
checks annotation constraints, if view is not permitted thenAccessManager
checks granted permissions.- Parameters:
target
- class to check- Returns:
true
if view is permitted
-
isSupportedScreen
-
isScreenHasSecurityPermission