source: trunk/grails-app/domain/dbnp/studycapturing/AssayModule.groovy @ 1366

Last change on this file since 1366 was 1366, checked in by robert@…, 10 years ago

Fixed bug with AssayModule?.notify property (see #269)

  • Property svn:keywords set to Author Date Rev
File size: 946 bytes
Line 
1package dbnp.studycapturing
2
3/**
4 * This entity describes actual dbNP submodule instances: what type of data they store, and how to reach them 
5 */
6class AssayModule extends Identity {
7       
8        /** The name of the module, for user-reference purposes  */
9        String name
10
11        /** A descriptive string describing the 'platform' of the assay data in the module */
12        String platform
13
14        /** The base URL at which the module instance is located. This is also used
15         * as a consumer parameter to identify the module in the authentication process.
16         */
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;
27
28        static constraints = {
29                notify(nullable:true)
30        }
31
32        def String toString() {
33                return name;
34        }
35
36}
Note: See TracBrowser for help on using the repository browser.