Module org.apache.wicket.auth.roles
Annotation Interface AuthorizeActions
Groups a set (technically an array) of
AuthorizeActions for authorization. This
annotation works on a class level, and can be used like this:
// A panel that is only visible for users with role ADMIN
@AuthorizeAction(action = "RENDER", roles = { "ADMIN", "USER" })
public class ForAdminsAndUsers extends Panel
{
public ForAdminsAndUsers(String id)
{
super(id);
}
}
- Author:
- Eelco Hillenius
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe actions that are allowed.
-
Element Details
-
actions
The actions that are allowed.- Returns:
- the allowed actions
-