org.apache.wicket.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 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:
IAuthorizationStrategy, AnnotationsRoleAuthorizationStrategy, AuthorizeAction, AuthorizeInstantiation

Required Element Summary
 AuthorizeAction[] actions
          The actions that are allowed.
 

Element Detail

actions

public abstract AuthorizeAction[] actions
The actions that are allowed.

Returns:
the allowed actions


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.