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


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

Annotation for configuring what roles are allowed for instantiation the annotated component or package. This annotation can be used for classes and packages, and can be used like this:

  // only users with role ADMIN are allowed to create instances of this page, whether it is
  // either bookmarkable or not
  @AuthorizeInstantiation("ADMIN")
  public class AdminAnnotationsBookmarkablePage extends WebPage
 

Author:
Eelco hillenius
See Also:
IAuthorizationStrategy, AnnotationsRoleAuthorizationStrategy, AuthorizeActions, AuthorizeAction

Optional Element Summary
 java.lang.String[] value
          Gets the roles that are allowed to take the action.
 

value

public abstract java.lang.String[] value
Gets the roles that are allowed to take the action.

Returns:
the roles that are allowed. Returns a zero length array by default
Default:
{}


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