Interface IUserPermissionCheck
- All Known Implementing Classes:
UserPermissionsBean
public interface IUserPermissionCheck
Interface for checking user permissions.
- Since:
- 8.2.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanAccessClientScopedView(Mandant client, IView view) Checks if the user can access the given client-specific view in the context.booleancanAccessProjectScopedView(Projekt project, IView view) Checks if the user can access the given project-specific view in the context.booleanhasClientAccess(Mandant client, IAccessProperty property) Check if the user was granted the given client-specific permission for the given client.booleanhasProjectAccess(Projekt project, IAccessProperty property) Check if the user was granted the given project-specific permission for the given project.booleanhasSystemAccess(IAccessProperty property) Check if the user was granted the given
-
Method Details
-
canAccessClientScopedView
Checks if the user can access the given client-specific view in the context.- Parameters:
client- The client to check the view access for.view- The view to check access for.- Returns:
- True if the user can access the view, false otherwise.
-
canAccessProjectScopedView
Checks if the user can access the given project-specific view in the context.- Parameters:
project- The project to check the view access for.view- The view to check access for.- Returns:
- True if the user can access the view, false otherwise.
-
hasClientAccess
Check if the user was granted the given client-specific permission for the given client.- Parameters:
client- The client to check the permission for.property- The client permission to check.- Returns:
- True if the user has the permission, false otherwise.
-
hasProjectAccess
Check if the user was granted the given project-specific permission for the given project.- Parameters:
project- The project to check the permission for.property- The project permission to check.- Returns:
- True if the user has the permission, false otherwise.
-
hasSystemAccess
Check if the user was granted the given- Parameters:
property- The system permission to check.- Returns:
- True if the user has the permission, false otherwise.
-