source: branches/TaskRewrite/src/plugins/acegi-0.5.1/src/templates/_Authority.groovy @ 58

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: 347 bytes
Line 
1${authorityClassPackage}
2
3${personClassImport}
4
5/**
6 * Authority domain class.
7 */
8class ${authorityClassName} {
9
10        static hasMany = [people: ${personClassName}]
11
12        /** description */
13        String description
14        /** ROLE String */
15        String authority
16
17        static constraints = {
18                authority(blank: false, unique: true)
19                description()
20        }
21}
Note: See TracBrowser for help on using the repository browser.