- Timestamp:
- Jan 23, 2010, 10:42:41 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 10 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/Config.groovy
r278 r291 86 86 error "grails.app" // Set the default log level for our app code. 87 87 info "grails.app.bootstrap" // Set the log level per type and per type.class 88 error "grails.app.service. PersonService"88 error "grails.app.service.AuthService" 89 89 error "grails.app.service.NavigationService" 90 90 error "grails.app.service.com.zeddware.grails.plugins.filterpane.FilterService" -
trunk/grails-app/controllers/AppCoreController.groovy
r258 r291 6 6 class AppCoreController extends BaseController { 7 7 8 def personService8 def authService 9 9 def appConfigService 10 10 def createDataService … … 22 22 */ 23 23 def welcome = { 24 def personInstance = personService.currentUser24 def personInstance = authService.currentUser 25 25 flash.message = "Welcome, ${personInstance.firstName} ${personInstance.lastName}." 26 26 … … 41 41 def changeSessionTimeout = { 42 42 if (request.method == 'GET') { 43 def personInstance = personService.currentUser43 def personInstance = authService.currentUser 44 44 return [ personInstance : personInstance ] 45 45 } 46 46 if (request.method == 'POST') { 47 def personInstance = personService.currentUser47 def personInstance = authService.currentUser 48 48 personInstance.properties = params 49 49 if (!personInstance.hasErrors() && personInstance.save(flush: true)) { … … 67 67 68 68 if (request.method == 'GET') { 69 def personInstance = personService.currentUser69 def personInstance = authService.currentUser 70 70 return [ personInstance : personInstance ] 71 71 } 72 72 73 73 if (request.method == 'POST') { 74 def personInstance = personService.currentUser74 def personInstance = authService.currentUser 75 75 76 76 if(params.confirmPass == params.pass) { -
trunk/grails-app/controllers/EntryDetailedController.groovy
r216 r291 3 3 class EntryDetailedController extends BaseController { 4 4 5 def personService5 def authService 6 6 def taskService 7 7 … … 29 29 def entryInstance = Entry.get( params.id ) 30 30 if(entryInstance) { 31 if(entryInstance.enteredBy.loginName == personService.currentUser.loginName) {31 if(entryInstance.enteredBy.loginName == authService.currentUser.loginName) { 32 32 def taskID = entryInstance.task.id 33 33 entryInstance.delete(flush:true) … … 55 55 else { 56 56 57 if(entryInstance.enteredBy.loginName == personService.currentUser.loginName) {57 if(entryInstance.enteredBy.loginName == authService.currentUser.loginName) { 58 58 return [ entryInstance : entryInstance ] 59 59 } … … 70 70 if(entryInstance) { 71 71 // The update method only accepts post requests, so this is just in case. 72 if(entryInstance.enteredBy.loginName == personService.currentUser.loginName) {72 if(entryInstance.enteredBy.loginName == authService.currentUser.loginName) { 73 73 entryInstance.properties = params 74 74 if(!entryInstance.hasErrors() && entryInstance.save(flush: true)) { -
trunk/grails-app/controllers/TaskDetailedController.groovy
r262 r291 5 5 class TaskDetailedController extends BaseController { 6 6 7 def personService7 def authService 8 8 def taskService 9 9 def taskSearchService … … 45 45 def taskInstanceTotal 46 46 def filterParams = [:] 47 def personInstance = personService.currentUser47 def personInstance = authService.currentUser 48 48 49 49 // Quick Search: … … 125 125 if(!FilterUtils.isFilterApplied(params)) { 126 126 def taskInstanceList = [] 127 def personInstance = personService.currentUser127 def personInstance = authService.currentUser 128 128 129 129 if(params.quickSearch == "searchMyTodays") { … … 170 170 if(!FilterUtils.isFilterApplied(params)) { 171 171 def taskInstanceList = [] 172 def personInstance = personService.currentUser172 def personInstance = authService.currentUser 173 173 174 174 if(params.quickSearch == "budgetUnplanned") { … … 501 501 502 502 // Default leadPerson to current user, unless supplied in params. 503 taskInstance.leadPerson = personService.currentUser503 taskInstance.leadPerson = authService.currentUser 504 504 taskInstance.properties = params 505 505 return ['taskInstance': taskInstance] -
trunk/grails-app/services/AssignedGroupService.groovy
r256 r291 3 3 boolean transactional = false 4 4 5 def personService5 def authService 6 6 7 7 def delete(params) { … … 22 22 return fail(code:"default.not.found") 23 23 24 def taskModification = new TaskModification(person: personService.currentUser,24 def taskModification = new TaskModification(person: authService.currentUser, 25 25 taskModificationType: TaskModificationType.get(10), 26 26 task: result.assignedGroupInstance.task) … … 95 95 return fail(code:"default.update.failure") 96 96 97 def taskModification = new TaskModification(person: personService.currentUser,97 def taskModification = new TaskModification(person: authService.currentUser, 98 98 taskModificationType: TaskModificationType.get(10), 99 99 task: result.assignedGroupInstance.task) … … 155 155 156 156 // Record a taskModification for everyone except "system". 157 if( personService.currentUser.id != 1) {158 def taskModification = new TaskModification(person: personService.currentUser,157 if(authService.currentUser.id != 1) { 158 def taskModification = new TaskModification(person: authService.currentUser, 159 159 taskModificationType: TaskModificationType.get(10), 160 160 task: result.assignedGroupInstance.task) -
trunk/grails-app/services/AssignedPersonService.groovy
r255 r291 3 3 boolean transactional = false 4 4 5 def personService5 def authService 6 6 7 7 def delete(params) { … … 22 22 return fail(code:"default.not.found") 23 23 24 def taskModification = new TaskModification(person: personService.currentUser,24 def taskModification = new TaskModification(person: authService.currentUser, 25 25 taskModificationType: TaskModificationType.get(11), 26 26 task: result.assignedPersonInstance.task) … … 95 95 return fail(code:"default.update.failure") 96 96 97 def taskModification = new TaskModification(person: personService.currentUser,97 def taskModification = new TaskModification(person: authService.currentUser, 98 98 taskModificationType: TaskModificationType.get(11), 99 99 task: result.assignedPersonInstance.task) … … 155 155 156 156 // Record a taskModification for every one except "system". 157 if( personService.currentUser.id != 1) {158 def taskModification = new TaskModification(person: personService.currentUser,157 if(authService.currentUser.id != 1) { 158 def taskModification = new TaskModification(person: authService.currentUser, 159 159 taskModificationType: TaskModificationType.get(11), 160 160 task: result.assignedPersonInstance.task) -
trunk/grails-app/services/AuthService.groovy
r290 r291 3 3 * 4 4 */ 5 class PersonService {5 class AuthService { 6 6 7 7 boolean transactional = false -
trunk/grails-app/services/CreateBulkDataService.groovy
r269 r291 8 8 boolean transactional = false 9 9 10 def personService10 def authService 11 11 def taskService 12 12 def dateUtilService … … 83 83 //Person 84 84 def passClearText = "pass" 85 def passwordEncoded = personService.encodePassword(passClearText)85 def passwordEncoded = authService.encodePassword(passClearText) 86 86 def personInstance 87 87 -
trunk/grails-app/services/CreateDataService.groovy
r290 r291 9 9 boolean transactional = false 10 10 11 def personService11 def authService 12 12 def taskService 13 13 def dateUtilService … … 194 194 //Person 195 195 def passClearText = "pass" 196 def passwordEncoded = personService.encodePassword(passClearText)196 def passwordEncoded = authService.encodePassword(passClearText) 197 197 def personInstance 198 198 … … 212 212 //Person 213 213 def passClearText = "pass" 214 def passwordEncoded = personService.encodePassword(passClearText)214 def passwordEncoded = authService.encodePassword(passClearText) 215 215 def personInstance 216 216 … … 234 234 //Person 235 235 def passClearText = "pass" 236 def passwordEncoded = personService.encodePassword(passClearText)236 def passwordEncoded = authService.encodePassword(passClearText) 237 237 def personInstance 238 238 -
trunk/grails-app/services/InventoryMovementService.groovy
r226 r291 3 3 boolean transactional = false 4 4 5 def personService5 def authService 6 6 7 7 def reverseMove(params) { … … 88 88 result.inventoryMovementInstance = new InventoryMovement(params) 89 89 90 result.inventoryMovementInstance.person = personService.currentUser90 result.inventoryMovementInstance.person = authService.currentUser 91 91 92 92 // Used type must have a task that is not complete or in the trash -
trunk/grails-app/services/TaskService.groovy
r252 r291 7 7 boolean transactional = false 8 8 9 def personService9 def authService 10 10 def assignedGroupService 11 11 def assignedPersonService … … 56 56 57 57 if(taskInstance.save()) { 58 def taskModification = new TaskModification(person: personService.currentUser,58 def taskModification = new TaskModification(person: authService.currentUser, 59 59 taskModificationType: TaskModificationType.get(1), 60 60 task: taskInstance) … … 183 183 def result = [:] 184 184 result.entryInstance = new Entry(params) 185 result.entryInstance.enteredBy = personService.currentUser185 result.entryInstance.enteredBy = authService.currentUser 186 186 187 187 if(result.entryInstance.validate()) { … … 207 207 208 208 // Create the "Started" task modification, this provides the "Actual started date". 209 def taskModification = new TaskModification(person: personService.currentUser,209 def taskModification = new TaskModification(person: authService.currentUser, 210 210 taskModificationType: TaskModificationType.get(2), 211 211 task: taskInstance) … … 279 279 return fail() 280 280 281 def taskModification = new TaskModification(person: personService.currentUser,281 def taskModification = new TaskModification(person:authService.currentUser, 282 282 taskModificationType: TaskModificationType.get(3), 283 283 task: result.taskInstance) … … 318 318 319 319 if(result.taskInstance.save()) { 320 def taskModification = new TaskModification(person: personService.currentUser,320 def taskModification = new TaskModification(person:authService.currentUser, 321 321 taskModificationType: TaskModificationType.get(4), 322 322 task: result.taskInstance) … … 367 367 368 368 if(result.taskInstance.save()) { 369 def taskModification = new TaskModification(person: personService.currentUser,369 def taskModification = new TaskModification(person:authService.currentUser, 370 370 taskModificationType: TaskModificationType.get(5), 371 371 task: result.taskInstance) … … 416 416 417 417 if(result.taskInstance.save()) { 418 def taskModification = new TaskModification(person: personService.currentUser,418 def taskModification = new TaskModification(person:authService.currentUser, 419 419 taskModificationType: TaskModificationType.get(6), 420 420 task: result.taskInstance) … … 464 464 465 465 if(result.taskInstance.save()) { 466 def taskModification = new TaskModification(person: personService.currentUser,466 def taskModification = new TaskModification(person:authService.currentUser, 467 467 taskModificationType: TaskModificationType.get(7), 468 468 task: result.taskInstance) … … 512 512 513 513 if(result.taskInstance.save()) { 514 def taskModification = new TaskModification(person: personService.currentUser,514 def taskModification = new TaskModification(person:authService.currentUser, 515 515 taskModificationType: TaskModificationType.get(8), 516 516 task: result.taskInstance) … … 560 560 561 561 if(result.taskInstance.save()) { 562 def taskModification = new TaskModification(person: personService.currentUser,562 def taskModification = new TaskModification(person:authService.currentUser, 563 563 taskModificationType: TaskModificationType.get(9), 564 564 task: result.taskInstance)
Note: See TracChangeset
for help on using the changeset viewer.