org.apache.wicket.authorization.strategies.role.annotations
Annotation Type AuthorizeAction


@Retention(value=RUNTIME)
@Target(value={PACKAGE,TYPE})
@Documented
@Inherited
public @interface AuthorizeAction

A mapping of 1..n roles to an action. This annotions must be embedded in the AuthorizeActions annotation.

Author:
Eelco Hillenius
See Also:
IAuthorizationStrategy, AnnotationsRoleAuthorizationStrategy, AuthorizeActions, AuthorizeInstantiation

Required Element Summary
 String action
          The action that is allowed.
 
Optional Element Summary
 String[] deny
          The roles to deny for this action.
 String[] roles
          The roles for this action.
 

Element Detail

action

public abstract String action
The action that is allowed. The default actions that are supported by Wicket are RENDER and ENABLE as defined as constants of Component.

Returns:
the action that is allowed
See Also:
Component.RENDER, Component.ENABLE

roles

public abstract String[] roles
The roles for this action.

Returns:
the roles for this action. The default is an empty string (annotations do not allow null default values)
Default:
""

deny

public abstract String[] deny
The roles to deny for this action.

Returns:
the roles to deny for this action. The default is an empty string (annotations do not allow null default values)
Default:
""


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