Package mg.emberframework.utils.http
Class UserRoleUtils
java.lang.Object
mg.emberframework.utils.http.UserRoleUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkUserRole
(jakarta.servlet.http.HttpServletRequest request, VerbMethod verbMethod) boolean
hasRequiredRole
(String userRole, String[] requiredRoles) void
setDefaultRoleAttribute
(String defaultRoleAttribute)
-
Constructor Details
-
UserRoleUtils
-
-
Method Details
-
hasRequiredRole
-
checkUserRole
public void checkUserRole(jakarta.servlet.http.HttpServletRequest request, VerbMethod verbMethod) throws UnauthorizedAccessException - Throws:
UnauthorizedAccessException
-
getDefaultRoleAttribute
-
setDefaultRoleAttribute
-