Changeset 1357 for trunk/grails-app/domain
- Timestamp:
- Jan 10, 2011, 4:44:44 PM (12 years ago)
- Location:
- trunk/grails-app/domain/dbnp/studycapturing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/AssayModule.groovy
r1027 r1357 16 16 */ 17 17 String url 18 19 /** Determines whether this module will be notified of changes in studies. This can be used 20 * to determine when synchronization should take place in a module. The URL called is 21 * 22 * [url]/rest/notifyStudyChange?studyToken=abc 23 * 24 * @see synchronizationService 25 */ 26 boolean notify = false; 18 27 19 28 static constraints = { -
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r1353 r1357 13 13 class Study extends TemplateEntity { 14 14 static searchable = true 15 16 def synchronizationService 15 17 16 18 SecUser owner // The owner of the study. A new study is automatically owned by its creator. … … 499 501 } 500 502 } 503 504 // Send messages to modules about changes in this study 505 def beforeInsert = { 506 synchronizationService.invalidateStudy( this ); 507 } 508 def beforeUpdate = { 509 synchronizationService.invalidateStudy( this ); 510 } 511 def beforeDelete = { 512 synchronizationService.invalidateStudy( this ); 513 } 501 514 }
Note: See TracChangeset
for help on using the changeset viewer.