- Timestamp:
- Apr 5, 2009, 3:19:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/conf/BootStrap.groovy
r96 r102 63 63 def authInstance 64 64 65 authInstance = new Authority(description:"Application Admin, grants full admin access to the application.",65 authInstance = new Authority(description:"Application Admin, not required for daily use! Grants full admin access to the application.", 66 66 authority:"ROLE_AppAdmin") 67 67 BootStrapSaveAndTest(authInstance) … … 80 80 def personInstance 81 81 82 //Person #1 82 83 personInstance = new Person(loginName:"admin", 83 84 firstName:"Admin", … … 92 93 personInstance.addToPersonGroups(PersonGroup.findByName("gnuMims")) 93 94 95 //Person #2 94 96 personInstance = new Person(loginName:"manager", 95 97 firstName:"Meca", … … 103 105 personInstance.addToPersonGroups(PersonGroup.findByName("gnuMims")) 104 106 107 //Person #3 105 108 personInstance = new Person(loginName:"user", 106 109 firstName:"Demo", 107 lastName:" Danza",110 lastName:"User", 108 111 pass:passClearText, 109 112 password:passwordEncoded, … … 113 116 personInstance.addToPersonGroups(PersonGroup.findByName("Electrical")) 114 117 118 //Person #4 115 119 personInstance = new Person(loginName:"craig", 116 120 firstName:"Craig", 117 lastName:"Super Tech",121 lastName:"SuperSparky", 118 122 pass:passClearText, 119 123 password:passwordEncoded, … … 123 127 personInstance.addToPersonGroups(PersonGroup.findByName("Electrical")) 124 128 129 //Person #5 125 130 personInstance = new Person(loginName:"john", 126 131 firstName:"John", 127 lastName:"S amples",132 lastName:"SuperFitter", 128 133 pass:passClearText, 129 134 password:passwordEncoded, … … 133 138 personInstance.addToPersonGroups(PersonGroup.findByName("Mechanical")) 134 139 140 //Person #6 135 141 personInstance = new Person(loginName:"mann", 136 142 firstName:"Production", … … 220 226 taskPriority:TaskPriority.get(2), 221 227 taskType:TaskType.get(1), 222 leadPerson:Person.get( 3),223 description:"Some follow 228 leadPerson:Person.get(5), 229 description:"Some follow-up work", 224 230 comment:"Some help required") 225 231 BootStrapSaveAndTest(subTaskInstance) … … 233 239 taskPriority:TaskPriority.get(2), 234 240 taskType:TaskType.get(1), 235 leadPerson:Person.get( 3),241 leadPerson:Person.get(4), 236 242 description:"Replace sensor at next opportunity.", 237 243 comment:"Nothing else has worked.") … … 246 252 taskPriority:TaskPriority.get(2), 247 253 taskType:TaskType.get(5), 248 leadPerson:Person.get( 5),254 leadPerson:Person.get(6), 249 255 description:"Production Report", 250 256 comment:"Production report for specific production run or shift")
Note: See TracChangeset
for help on using the changeset viewer.