org.chenillekit.access.annotations
Annotation Type Restricted
@Target(value={TYPE,METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface Restricted
Annotation to hold role weight and/or group names the user
must fulfill in his profile to access a restricted page.
- Version:
- $Id: Restricted.java 333 2008-11-19 16:26:03Z mlusetti $
role
public abstract int role
- Returns:
- the minimum role weight a user should own
- Default:
- 0
groups
public abstract String[] groups
- Returns:
- the groups names (or ids if you like) a user should be listed in
- Default:
- {}
Copyright © 2008-2009 ChenilleKit. All Rights Reserved.