source: branches/TaskRewrite/src/plugins/acegi-0.5.1/src/templates/_Person.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: 704 bytes
Line 
1${personClassPackage}
2
3${authorityClassImport}
4
5/**
6 * User domain class.
7 */
8class ${personClassName} {
9        static transients = ['pass']
10        static hasMany = [authorities: ${authorityClassName}]
11        static belongsTo = ${authorityClassName}
12
13        /** Username */
14        String username
15        /** User Real Name*/
16        String userRealName
17        /** MD5 Password */
18        String passwd
19        /** enabled */
20        boolean enabled
21
22        String email
23        boolean emailShow
24
25        /** description */
26        String description = ''
27
28        /** plain password to create a MD5 password */
29        String pass = '[secret]'
30
31        static constraints = {
32                username(blank: false, unique: true)
33                userRealName(blank: false)
34                passwd(blank: false)
35                enabled()
36        }
37}
Note: See TracBrowser for help on using the repository browser.