Changeset 636 for trunk/grails-app/conf


Ignore:
Timestamp:
Jul 1, 2010, 4:19:46 PM (11 years ago)
Author:
jahn
Message:

Updated CommunicationManager? to support URL generation for SAM views.
The REST methods and Grails views used in inter module communcation
are now added in the CommunicationManager? from BootStrap?.

File:
1 edited

Legend:

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

    r626 r636  
    33import dbnp.data.Ontology
    44import dbnp.data.Term
     5import dbnp.rest.common.CommunicationManager
    56import org.codehaus.groovy.grails.commons.GrailsApplication
    67import grails.util.GrailsUtil
     
    4142                TemplateEntity.getField(Subject.domainFields, 'species').ontologies = [Ontology.getOrCreateOntologyByNcboId(1132)]
    4243                TemplateEntity.getField(Sample.domainFields, 'material').ontologies = [Ontology.getOrCreateOntologyByNcboId(1005)]
     44
     45                // register methods for accessing SAM's Rest services
     46                CommunicationManager.setSAMServerURL = 'nbx5.nugo.org/sam'
     47        CommunicationManager.registerRestWrapperMethodsSAMtoGSCF()
     48        CommunicationManager.registerRestWrapperMethodsSAMtoGSCF()
    4349        }
    4450
Note: See TracChangeset for help on using the changeset viewer.