Changeset 1199 for trunk/grails-app


Ignore:
Timestamp:
Nov 25, 2010, 10:56:40 AM (10 years ago)
Author:
j.saito@…
Message:

Further streamlined CommunicationManager?. It now builds fetches its URL from config.modules and is further minimized.

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r1196 r1199  
    4646                        // register SAM REST methods
    4747                        "Registering SAM REST methods".grom()
    48                         CommunicationManager.GSCFServerURL = config.grails.serverURL
    49                         CommunicationManager.SAMServerURL = config.modules.sam.url
    50                         CommunicationManager.DSPServerURL = config.modules.metabolomics.url
    51                         CommunicationManager.ServerURL = config.grails.serverURL
     48                        CommunicationManager.registerModule('gscf', config.grails.serverURL, config.modules)
    5249                        CommunicationManager.registerRestWrapperMethodsFromSAM()
    5350                }
  • trunk/grails-app/controllers/RestController.groovy

    r1101 r1199  
    252252
    253253                        def id = params.studyToken
    254                         def study = Study.find( "from Study as s where s.code=?", [id] )
     254                        def study = Study.findByCode(id)
    255255
    256256                        if(study) {
     
    302302
    303303                }
    304 
    305304                render returnList as JSON
    306305        }
Note: See TracChangeset for help on using the changeset viewer.