Changeset 184 for trunk/grails-app/controllers
- Timestamp:
- Feb 9, 2010, 5:01:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/LoadController.groovy
r162 r184 1 /*2 * To change this template, choose Tools | Templates3 * and open the template in the editor.4 */5 6 1 /** 7 2 * 8 3 * @author ademcan 9 4 */ 5 6 import dbnp.studycapturing.* 7 import dbnp.data.Term 8 10 9 class LoadController { 11 10 … … 33 32 BufferedReader fileReader = new BufferedReader(new InputStreamReader(inputStream)); 34 33 35 def investigationDesign = new dbnp.transcriptomics.magetab.idf.InvestigationDesign();36 def person = new dbnp.transcriptomics.magetab.idf.Person();37 def protocol = new dbnp.transcriptomics.magetab.idf.MAGEProtocol();38 def publication = new dbnp.transcriptomics.magetab.idf.Publication();39 def normalization = new dbnp.transcriptomics.magetab.sdrf.Normalization();34 def study = new Study(); 35 def person = new Person(); 36 //def protocol = new dbnp.transcriptomics.magetab.idf.MAGEProtocol(); 37 def publication = Publication(); 38 //def normalization = new dbnp.transcriptomics.magetab.sdrf.Normalization(); 40 39 //def termSource = new dbnp.transcriptomics.magetab.adf.Termsource(); 41 def comment = new dbnp.transcriptomics.magetab.idf.Comment();42 def experimentalInfo = new dbnp.transcriptomics.magetab.idf.ExperimentalInfo();43 def factor = new dbnp.transcriptomics.magetab.idf.Factor();40 //def comment = new dbnp.transcriptomics.magetab.idf.Comment(); 41 //def experimentalInfo = new dbnp.transcriptomics.magetab.idf.ExperimentalInfo(); 42 //def factor = new dbnp.transcriptomics.magetab.idf.Factor(); 44 43 45 44 //ArrayList rows = new ArrayList(); 45 46 // TODO: remap to dbnp studycapturing data model + extra template fields for MIAMI studies 46 47 47 48 for (i in fileReader.readLines()){ … … 219 220 } 220 221 else if (tmp_list[0]=="Publication Status") { 221 def status = new dbnp.transcriptomics.magetab.idf.OntologyTerm();222 def status = new Term(); 222 223 status.text = tmp_list[1]; 223 224 status.save(); … … 239 240 //todo list of type 240 241 else if (tmp_list[0]=="Protocol Type") { 241 def type = new dbnp.transcriptomics.magetab.idf.OntologyTerm();242 def type = new Term(); 242 243 for (j in 1..tmp_list.size()){ 243 244 type.text = tmp_list[j];
Note: See TracChangeset
for help on using the changeset viewer.