Class RoleUtils
java.lang.Object
org.deltava.util.RoleUtils
A utility class to help with security role filtering.
- Since:
- 1.0
- Version:
- 3.4
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasAccess
(Collection<String> userRoles, Collection<String> rsrcRoles) Validates whether a user has access to a role-limited resource.
-
Method Details
-
hasAccess
Validates whether a user has access to a role-limited resource.- Parameters:
userRoles
- a Collection of the user's role namesrsrcRoles
- a Collection of the resource's restricted roles- Returns:
- TRUE if any member of userRoles is contained within rsrcRoles, otherwise FALSE
-