Annotation Type AuthorizeInstantiation

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
  public class AdminAnnotationsBookmarkablePage extends WebPage

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

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


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

the roles that are allowed. Returns a zero length array by default

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