org.apache.wicket.authroles.authorization.strategies.role.annotations
Annotation Type AuthorizeActions
@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
@Inherited
public @interface AuthorizeActions
Groups a set (technically an array) of AuthorizeAction
s 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:
IAuthorizationStrategy
,
org.apache.wicket.authorization.strategies.role.annotations.AnnotationsRoleAuthorizationStrategy
,
org.apache.wicket.authorization.strategies.role.annotations.AuthorizeAction
,
org.apache.wicket.authorization.strategies.role.annotations.AuthorizeInstantiation
actions
public abstract AuthorizeAction[] actions
- The actions that are allowed.
- Returns:
- the allowed actions
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.