Ignore:
Timestamp:
Nov 4, 2009, 2:47:47 PM (14 years ago)
Author:
gav
Message:

Add support for taskModification audit/change log, the create and update modifications are complete.
Moved create and update of tasks to taskService.
Small Assset domain class adjustment to prevent blank asset name.
Removed "static scope = 'request'" from services since I don't believe it is required and it limits where the service may be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/TaskModification.groovy

    r93 r180  
     1import java.text.SimpleDateFormat
     2
    13class TaskModification {
    24    Person person
     
    46    Task task
    57    Date date = new Date()
    6     String comment
     8    String comment = ""
    79
    810    static belongsTo = [Person, TaskModificationType, Task]
     
    1618    }
    1719
    18     static optionals = ["comment"]
     20    String toString() {
     21        def date = new SimpleDateFormat("EEE, dd-MMM-yyyy").format(this.date)
     22        "${taskModificationType} by ${person} on ${date}."
     23    }
    1924}
Note: See TracChangeset for help on using the changeset viewer.