Changeset 70 for trunk/grails-app/controllers/LoadController.groovy
- Timestamp:
- Jan 4, 2010, 12:13:36 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/LoadController.groovy
r65 r70 18 18 def load = { 19 19 20 static ArrayList attributs = new ArrayList();20 //ArrayList attributes = new ArrayList(); 21 21 22 22 render("Loading ...\n"); … … 25 25 BufferedReader fileReader = new BufferedReader(new InputStreamReader(inputStream)); 26 26 27 def investigationDesign = new magetab.idf.InvestigationDesign();28 def person = new magetab.idf.Person();29 def protocol = new magetab.idf.Protocol();30 def publication = new magetab.idf.Publication();31 def normalization = new magetab.sdrf.Normalization();32 //def termSource = new magetab.adf.Termsource();33 def comment = new magetab.idf.Comment();34 def experimentalInfo = new magetab.idf.ExperimentalInfo();35 36 ArrayList rows = new ArrayList();27 def investigationDesign = new dbnp.transcriptomics.magetab.idf.InvestigationDesign(); 28 def person = new dbnp.transcriptomics.magetab.idf.Person(); 29 def protocol = new dbnp.transcriptomics.magetab.idf.MAGEProtocol(); 30 def publication = new dbnp.transcriptomics.magetab.idf.Publication(); 31 def normalization = new dbnp.transcriptomics.magetab.sdrf.Normalization(); 32 //def termSource = new dbnp.transcriptomics.magetab.adf.Termsource(); 33 def comment = new dbnp.transcriptomics.magetab.idf.Comment(); 34 def experimentalInfo = new dbnp.transcriptomics.magetab.idf.ExperimentalInfo(); 35 36 //ArrayList rows = new ArrayList(); 37 37 38 38 for (i in fileReader.readLines()){ … … 162 162 } 163 163 else if (tmp_list[0]=="Publication Status") { 164 def status = new magetab.idf.OntologyTerm();164 def status = new dbnp.transcriptomics.magetab.idf.OntologyTerm(); 165 165 status.text = tmp_list[1]; 166 166 status.save(); … … 177 177 } 178 178 else if (tmp_list[0]=="Protocol Type") { 179 def type = new magetab.idf.OntologyTerm();179 def type = new dbnp.transcriptomics.magetab.idf.OntologyTerm(); 180 180 for (j in 1..tmp_list.size()){ 181 181 type.text = tmp_list[j];
Note: See TracChangeset
for help on using the changeset viewer.