@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Inherited public @interface AuthorizeActions
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); } }
IAuthorizationStrategy
,
AnnotationsRoleAuthorizationStrategy
,
AuthorizeAction
,
AuthorizeInstantiation
Modifier and Type | Required Element and Description |
---|---|
AuthorizeAction[] |
actions
The actions that are allowed.
|
public abstract AuthorizeAction[] actions
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.