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

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

Location:
trunk/grails-app/controllers
Files:
4 deleted
4 edited

Legend:

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

    r39 r70  
    2828     * @visibility public
    2929     */
    30     def scaffold = false;
     30    //def scaffold = false;
    3131
    3232    /**
     
    4343
    4444        // dynamically set scaffolding
    45         this.scaffold = (GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT && this.class.name != 'BaseController');
     45        //this.scaffold = (GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT && this.class.name != 'BaseController');
    4646    }
    4747
  • trunk/grails-app/controllers/HomeController.groovy

    r53 r70  
     1import dbnp.studycapturing.Study
     2
    13class HomeController {
    24
    35    def index = {
    4        [ studyCount: Study.count() ]
     6       [ studyCount: dbnp.studycapturing.Study.count() ]
    57    }
    68}
  • 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];
  • trunk/grails-app/controllers/StudyController.groovy

    r53 r70  
    11class StudyController extends BaseController {
    22
    3     def scaffold = true
     3    def scaffold = dbnp.studycapturing.Study
    44}
Note: See TracChangeset for help on using the changeset viewer.