source: trunk/grails-app/controllers/dbnp/query/QueryController.groovy @ 314

Last change on this file since 314 was 314, checked in by jahn, 12 years ago

Empty shell for Query workflow.

  • Property svn:keywords set to Author Rev Date
File size: 1.9 KB
Line 
1package dbnp.query
2
3import org.compass.core.engine.SearchEngineQueryParseException
4
5/*
6 * Copyright 2007 the original author or authors.
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 *      http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21
22/**
23 * Basic web interface for Grails Searchable Plugin
24 *
25 * @author Adem and Jahn
26 */
27class QueryController {
28
29    def searchableService
30
31    def index = {
32        redirect( action:'pages')
33    }
34
35    def pagesFlow = {
36       
37        onStart {
38                println "starting"
39        }
40
41
42        mainPage {
43
44             render( view:'/query/mainPage')
45
46
47             onRender {
48                println "done randering index"
49             }
50
51
52             on("next") {
53                println "clicked next in sample"
54             } .to 'study'
55
56        }       
57
58
59        study {
60             render( view:'_study')
61
62             on("next") {
63                println "clicked next in sample"
64             } .to 'sample'
65
66        }
67
68
69
70        sample {
71             render( view:'_sample')
72
73             on("next") {
74                println "clicked next in sample"
75             } .to 'biomarker'
76
77        }
78
79
80
81        biomarker {
82             render( view:'_biomarker')
83
84             on("next") {
85                println "clicked next in sample"
86             } .to 'group'
87
88        }
89
90
91        group {
92             render( view:'_group')
93
94             on("next") {
95                println "clicked next in sample"
96             } .to 'result'
97
98        }
99
100
101
102        result {
103             render( view:'_result')
104
105        }
106
107
108
109
110
111
112
113
114
115
116
117
118
119    }
120
121}
Note: See TracBrowser for help on using the repository browser.