- Timestamp:
- Jan 25, 2010, 10:58:29 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/CreateDataService.groovy
r294 r296 154 154 155 155 // Authority #2 156 authInstance = new Authority(description:"Business manager, grants full management access.",156 authInstance = new Authority(description:"Business Manager, grants full management access.", 157 157 authority:"ROLE_Manager") 158 158 saveAndTest(authInstance) … … 161 161 authInstance = new Authority(description:"Application User, all application users need this base role to allow login.", 162 162 authority:"ROLE_AppUser") 163 saveAndTest(authInstance) 164 165 // Authority #4 166 authInstance = new Authority(description:"Task Manager", 167 authority:"ROLE_TaskManager") 168 saveAndTest(authInstance) 169 170 // Authority #5 171 authInstance = new Authority(description:"Task User", 172 authority:"ROLE_TaskUser") 173 saveAndTest(authInstance) 174 175 // Authority #6 176 authInstance = new Authority(description:"Inventory Manager", 177 authority:"ROLE_InventoryManager") 178 saveAndTest(authInstance) 179 180 // Authority #7 181 authInstance = new Authority(description:"Inventory User", 182 authority:"ROLE_InvetoryUser") 183 saveAndTest(authInstance) 184 185 // Authority #8 186 authInstance = new Authority(description:"Asset Manager", 187 authority:"ROLE_AssetManager") 188 saveAndTest(authInstance) 189 190 // Authority #9 191 authInstance = new Authority(description:"Asset User", 192 authority:"ROLE_AssetUser") 163 193 saveAndTest(authInstance) 164 194 } … … 263 293 saveAndTest(personInstance) 264 294 personInstance.addToAuthorities(Authority.get(3)) 295 personInstance.addToAuthorities(Authority.get(5)) 296 personInstance.addToAuthorities(Authority.get(7)) 297 personInstance.addToAuthorities(Authority.get(9)) 265 298 personInstance.addToPersonGroups(PersonGroup.get(1)) 266 299 … … 274 307 saveAndTest(personInstance) 275 308 personInstance.addToAuthorities(Authority.get(3)) 309 personInstance.addToAuthorities(Authority.get(5)) 310 personInstance.addToAuthorities(Authority.get(7)) 311 personInstance.addToAuthorities(Authority.get(9)) 276 312 personInstance.addToPersonGroups(PersonGroup.get(1)) 277 313 … … 285 321 saveAndTest(personInstance) 286 322 personInstance.addToAuthorities(Authority.get(3)) 323 personInstance.addToAuthorities(Authority.get(5)) 324 personInstance.addToAuthorities(Authority.get(7)) 325 personInstance.addToAuthorities(Authority.get(9)) 287 326 personInstance.addToPersonGroups(PersonGroup.get(2)) 288 327 … … 296 335 saveAndTest(personInstance) 297 336 personInstance.addToAuthorities(Authority.get(3)) 337 personInstance.addToAuthorities(Authority.get(5)) 338 personInstance.addToPersonGroups(PersonGroup.get(3)) 339 340 //Person #7 341 personInstance = new Person(loginName:"testmanager", 342 firstName:"Test", 343 lastName:"Manager", 344 pass:passClearText, 345 password:passwordEncoded, 346 email:"user@example.com") 347 saveAndTest(personInstance) 348 personInstance.addToAuthorities(Authority.get(3)) 349 personInstance.addToAuthorities(Authority.get(4)) 350 personInstance.addToAuthorities(Authority.get(6)) 351 personInstance.addToAuthorities(Authority.get(8)) 298 352 personInstance.addToPersonGroups(PersonGroup.get(3)) 299 353 }
Note: See TracChangeset
for help on using the changeset viewer.