Class UserPermissionsBean
java.lang.Object
de.xima.fc.gui.common.bean.security.UserPermissionsBean
- All Implemented Interfaces:
IUserPermissionCheck, Serializable
@Named
@ViewScoped
public class UserPermissionsBean
extends Object
implements IUserPermissionCheck, Serializable
Bean for handling user permissions
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
UserPermissionsBean
public UserPermissionsBean()
-
-
Method Details
-
hasProjectAccess
Description copied from interface:IUserPermissionCheckCheck if the user was granted the given project-specific permission for the given project.- Specified by:
hasProjectAccessin interfaceIUserPermissionCheck- 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.
-
hasClientAccess
Description copied from interface:IUserPermissionCheckCheck if the user was granted the given client-specific permission for the given client.- Specified by:
hasClientAccessin interfaceIUserPermissionCheck- 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.
-
hasSystemAccess
Description copied from interface:IUserPermissionCheckCheck if the user was granted the given- Specified by:
hasSystemAccessin interfaceIUserPermissionCheck- Parameters:
property- The system permission to check.- Returns:
- True if the user has the permission, false otherwise.
-
canAccessProjectScopedView
Description copied from interface:IUserPermissionCheckChecks if the user can access the given project-specific view in the context.- Specified by:
canAccessProjectScopedViewin interfaceIUserPermissionCheck- 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.
-
canAccessClientScopedView
Description copied from interface:IUserPermissionCheckChecks if the user can access the given client-specific view in the context.- Specified by:
canAccessClientScopedViewin interfaceIUserPermissionCheck- 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.
-