Ignore:
Timestamp:
Jan 4, 2010, 12:13:36 PM (13 years ago)
Author:
keesvb
Message:

updated to Grails 1.2, restructured packages, added some domain classes, removed obsolete code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/LoadController.groovy

    r65 r70  
    1818    def load = {
    1919
    20         static ArrayList attributs = new ArrayList();
     20        //ArrayList attributes = new ArrayList();
    2121
    2222        render("Loading ...\n");
     
    2525        BufferedReader fileReader = new BufferedReader(new InputStreamReader(inputStream));
    2626
    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();
    3737
    3838        for (i in fileReader.readLines()){
     
    162162                }
    163163                else if (tmp_list[0]=="Publication Status") {
    164                     def status = new magetab.idf.OntologyTerm();
     164                    def status = new dbnp.transcriptomics.magetab.idf.OntologyTerm();
    165165                    status.text = tmp_list[1];
    166166                    status.save();
     
    177177                }
    178178                else if (tmp_list[0]=="Protocol Type") {
    179                     def type = new magetab.idf.OntologyTerm();
     179                    def type = new dbnp.transcriptomics.magetab.idf.OntologyTerm();
    180180                    for (j in 1..tmp_list.size()){
    181181                        type.text = tmp_list[j];
Note: See TracChangeset for help on using the changeset viewer.