Ignore:
Timestamp:
Jan 27, 2011, 2:34:41 PM (10 years ago)
Author:
robert@…
Message:

Implemented convenience method to call rest methods on modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r1440 r1446  
    44import nl.grails.plugins.gdt.*
    55import java.util.UUID;
     6import dbnp.modules.*;
    67
    78/**
     
    1617        static searchable = true
    1718       
    18         def synchronizationService
     19        def moduleNotificationService
    1920
    2021        SecUser owner           // The owner of the study. A new study is automatically owned by its creator.
     
    524525        // Send messages to modules about changes in this study
    525526        def beforeInsert = {
    526                 synchronizationService.invalidateStudy( this );
     527                moduleNotificationService.invalidateStudy( this );
    527528        }
    528529        def beforeUpdate = {
    529                 synchronizationService.invalidateStudy( this );
     530                moduleNotificationService.invalidateStudy( this );
    530531        }
    531532        def beforeDelete = {
    532                 synchronizationService.invalidateStudy( this );
     533                moduleNotificationService.invalidateStudy( this );
    533534        }
    534535}
Note: See TracChangeset for help on using the changeset viewer.