Package io.jmix.flowui.sys
Class FlowuiAccessChecker
java.lang.Object
io.jmix.flowui.sys.FlowuiAccessChecker
Class checks UI access permission.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.server.auth.AccessAnnotationCheckerprotected AccessManagerprotected ScreenRegistry -
Constructor Summary
ConstructorsConstructorDescriptionFlowuiAccessChecker(com.vaadin.flow.server.auth.AccessAnnotationChecker accessAnnotationChecker, AccessManager accessManager, ScreenRegistry screenRegistry) -
Method Summary
Modifier and TypeMethodDescriptiongetControllerClass(MenuItem menuItem) protected booleanisMenuItemHasSecurityPermission(MenuItem menuItem) booleanisMenuPermitted(MenuItem menuItem) FirstlyAccessAnnotationCheckerchecks annotation constraints, if menu item is not permitted thenAccessManagerchecks granted permissions.protected booleanisScreenHasSecurityPermission(Class<?> target) protected booleanisSupportedScreen(Class<?> targetView) booleanisViewPermitted(Class<?> target) FirstlyAccessAnnotationCheckerchecks annotation constraints, if view is not permitted thenAccessManagerchecks 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
FirstlyAccessAnnotationCheckerchecks annotation constraints, if view is not permitted thenAccessManagerchecks granted permissions.- Parameters:
target- class to check- Returns:
trueif view is permitted
-
isSupportedScreen
-
isScreenHasSecurityPermission