Package org.ocpsoft.rewrite.annotation
Annotation Type RolesRequired
Adds a JAASRoles condition to the current rule. This allows to restrict the rule to users with the given
role. Rewrite uses HttpServletRequest#isUserInRole(String) for checking the roles.
@Join(path = "/admin/users", to = "/admin/user-list.html")
@RolesRequired("admin")
public class MyClass {
}
- Author:
- Christian Kaltepoth
-
Required Element Summary
Required Elements
-
Element Details
-
value
String[] valueThe roles required for the rule to match.
-