Last change
on this file since 185 was
180,
checked in by gav, 15 years ago
|
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 size:
550 bytes
|
Rev | Line | |
---|
[180] | 1 | import java.text.SimpleDateFormat |
---|
| 2 | |
---|
[93] | 3 | class TaskModification { |
---|
[66] | 4 | Person person |
---|
[93] | 5 | TaskModificationType taskModificationType |
---|
[66] | 6 | Task task |
---|
| 7 | Date date = new Date() |
---|
[180] | 8 | String comment = "" |
---|
[66] | 9 | |
---|
[93] | 10 | static belongsTo = [Person, TaskModificationType, Task] |
---|
[66] | 11 | |
---|
| 12 | static constraints = { |
---|
| 13 | person() |
---|
[93] | 14 | taskModificationType() |
---|
[66] | 15 | task() |
---|
| 16 | date() |
---|
| 17 | comment() |
---|
| 18 | } |
---|
| 19 | |
---|
[180] | 20 | String toString() { |
---|
| 21 | def date = new SimpleDateFormat("EEE, dd-MMM-yyyy").format(this.date) |
---|
| 22 | "${taskModificationType} by ${person} on ${date}." |
---|
| 23 | } |
---|
[66] | 24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.