Last change
on this file since 58 was
58,
checked in by gav, 15 years ago
|
Configure BootStrap? with latest concepts.
Install and setup Acegi plugin with custom views.
Test Fixture plugin in a test app but couldn't get it to work with Acegi encodePassword() so gave up.
|
File size:
735 bytes
|
Line | |
---|
1 | package org.codehaus.groovy.grails.plugins.springsecurity; |
---|
2 | |
---|
3 | import java.lang.annotation.Documented; |
---|
4 | import java.lang.annotation.ElementType; |
---|
5 | import java.lang.annotation.Inherited; |
---|
6 | import java.lang.annotation.Retention; |
---|
7 | import java.lang.annotation.RetentionPolicy; |
---|
8 | import java.lang.annotation.Target; |
---|
9 | |
---|
10 | /** |
---|
11 | * Annotation for Controllers at the class level or per-action, defining what roles |
---|
12 | * are required for the entire controller or action. |
---|
13 | */ |
---|
14 | @Target({ElementType.FIELD, ElementType.TYPE}) |
---|
15 | @Retention(RetentionPolicy.RUNTIME) |
---|
16 | @Inherited |
---|
17 | @Documented |
---|
18 | public @interface Secured { |
---|
19 | |
---|
20 | /** |
---|
21 | * Defines the security configuration attributes (e.g. ROLE_USER, ROLE_ADMIN, etc.) |
---|
22 | * @return the names of the roles |
---|
23 | */ |
---|
24 | String[] value(); |
---|
25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.