Ignore:
Timestamp:
Mar 9, 2009, 10:31:40 AM (16 years ago)
Author:
gav
Message:

Add TaskPriority? and TaskType? domains, generate views and controllers.
Tweak security extensively.
Use 'extend BaseController?' to pass ROLE_USER to most controllers.
Add parentTask and subTask to Task Domain.

Location:
branches/TaskRewrite/src/grails-app/domain
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/TaskRewrite/src/grails-app/domain/Task.groovy

    r66 r69  
    22    TaskGroup taskGroup
    33    TaskStatus taskStatus
     4    TaskPriority taskPriority
     5    TaskType taskType
     6    Task    parentTask
    47    Person leadPerson
    58    String description
     
    1114    boolean isActive = true
    1215
    13     static hasMany = [entries: Entry, modifications: Modification, assignedPersons: Person]
     16    static hasMany = [entries: Entry,
     17                        modifications: Modification,
     18                        assignedPersons: Person,
     19                        subTasks: Task]
    1420
    15     static belongsTo = [TaskGroup, TaskStatus, Person]
     21    static belongsTo = [TaskGroup, TaskStatus, Task, Person]
    1622
    1723    static constraints = {
     
    1925        description(blank:false,maxSize:50)
    2026        leadPerson()
     27        taskPriority()
    2128        taskStatus()
     29        parentTask(blank: true, nullable:true)
    2230        comment(maxSize:255)
     31       
    2332    }
    2433
Note: See TracChangeset for help on using the changeset viewer.