- Timestamp:
- Jan 25, 2010, 2:14:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskDetailedController.groovy
r291 r298 3 3 import com.zeddware.grails.plugins.filterpane.FilterUtils 4 4 5 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager']) 5 6 class TaskDetailedController extends BaseController { 6 7 … … 15 16 static allowedMethods = [save:'POST', update:'POST', restore:'POST', trash:'POST', approve:'POST', renegeApproval:'POST', complete:'POST', reopen:'POST'] 16 17 18 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 17 19 def index = { redirect(action: 'search', params: params) } 18 20 21 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 19 22 def list = { 20 23 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100 ) … … 22 25 } 23 26 27 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 24 28 def setTaskSearchParamsMax = { 25 29 def max = 1000 … … 34 38 } 35 39 40 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 36 41 def search = { 37 42 … … 119 124 } // end search() 120 125 126 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 121 127 def searchCalendar = { 122 128 params.max = 30 … … 164 170 } 165 171 172 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 166 173 def budget = { 167 174 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100 ) … … 210 217 } 211 218 219 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 212 220 def show = { 213 221 … … 400 408 } 401 409 410 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 402 411 def complete = { 403 412 … … 425 434 } 426 435 436 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 427 437 def reopen = { 428 438 … … 450 460 } 451 461 462 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 452 463 def edit = { 453 464 … … 474 485 } 475 486 487 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 476 488 def update = { 477 489 … … 493 505 } 494 506 507 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 495 508 def create = { 496 509 def taskInstance = new Task() … … 506 519 } 507 520 521 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 508 522 def save = { 509 523 def result = taskService.create(params) … … 525 539 } 526 540 541 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 527 542 def listSubTasks = { 528 543 def parentTaskInstance = Task.get(params.id) … … 543 558 } 544 559 560 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 545 561 def createSubTask = { 546 562 def parentTaskInstance = Task.get(params.id)
Note: See TracChangeset
for help on using the changeset viewer.