annotate src/main/resources/probequery.json @ 721:6eed8b5decb1

Added shibboleth authorization.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 14 Aug 2015 09:44:31 +0200
parents 6441bb4a90f0
children add3e994b4c4
rev   line source
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
1 [
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
2 { "id": "0",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
3 "name": "Kein Filter",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
4 "description": "Abfrage der Proben ohne Filter",
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
5 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr from land.probe p join land.probe_translation pt on p.id = pt.probe_id",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
6 "result": [
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
7 {"dataIndex": "probeId", "header": "ProbeId", "width": 120},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
8 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
9 {"dataIndex": "mstId", "header": "MST", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
10 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
11 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 120}
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
12 ],
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
13 "filters": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
14 ]
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
15 },
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
16 { "id": "1",
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
17 "name": "Probe-ID-Filer",
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
18 "description": "Abfrage der Proben mit Wildcardfilter fuer die Probe_id",
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
19 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr from land.probe p join land.probe_translation pt on p.id = pt.probe_id where (pt.probe_id_alt like :probe_id or '' = :probe_id)",
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
20 "result": [
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
21 {"dataIndex": "probeId", "header": "ProbeId", "width": 120},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
22 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
23 {"dataIndex": "mstId", "header": "MST", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
24 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
25 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 120}
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
26 ],
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
27 "filters": [
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
28 {"dataIndex": "probe_id", "type": "text", "label": "Probe_id-Filter"}
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
29 ]
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
30 },
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
31 { "id": "2",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
32 "name": "MST und UMW",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
33 "description": "Abfrage der Proben gefiltert nach Messtellen ID und ID des Umweltbereichs",
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
34 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr from land.probe p join land.probe_translation pt on p.id = pt.probe_id where (p.mst_id = :mst_id OR '' = :mst_id) and (p.umw_id = :umw_id OR '' = :umw_id)",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
35 "result": [
690
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
36 {"dataIndex": "probeId", "header": "ProbeId", "width": 120},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
37 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
38 {"dataIndex": "mstId", "header": "MST", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
39 {"dataIndex": "umwId", "header": "Umw-ID", "width": 60},
6441bb4a90f0 probequery.json extended
Michael Stanko <mstanko@bfs.de>
parents: 638
diff changeset
40 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 120}
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
41 ],
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
42 "filters": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
43 {"dataIndex": "mst_id", "type": "listmst", "label": "Messstelle"},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
44 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich"}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
45 ]
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
46 },
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
47 { "id": "3",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
48 "name": "Proben pro Land",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
49 "description": "Proben gefiltert nach Ländern",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
50 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr from land.probe p join land.probe_translation pt on p.id = pt.probe_id where (netzbetreiber_id = :netz OR '' = :netz)",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
51 "result": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
52 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
53 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
54 {"dataIndex": "mstId", "header": "MST", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
55 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
56 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
57 ],
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
58 "filters": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
59 {"dataIndex": "netz", "type": "listnetz", "label": "Land"}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
60 ]
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
61 },
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
62 { "id": "4",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
63 "name": "alle Proben mit Ort",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
64 "description": "alle Proben mit Entnahmeort",
638
76f08c40a13a Added column probe_id_alt in query 4 in probequery.json
Michael Stanko <mstanko@bfs.de>
parents: 636
diff changeset
65 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr, so.gem_id as gemId, v.bezeichnung as bezeichnung from land.probe p join land.probe_translation pt on p.id = pt.probe_id left outer join land.ort o on (p.id = o.probe_id) left outer join stammdaten.ort so on (o.ort_id = so.id) left outer join stammdaten.verwaltungseinheit v on (so.gem_id = v.id) where o.orts_typ = 'E' or o.orts_typ is null",
636
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
66 "result": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
67 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
68 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
69 {"dataIndex": "mstId", "header": "MST", "width": 60},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
70 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
71 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
72 {"dataIndex": "gemId", "header": "Gem-ID", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
73 {"dataIndex": "bezeichnung", "header": "Gemeinde", "flex": 1}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
74 ],
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
75 "filters": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
76 ]
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
77 },
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
78 { "id": "5",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
79 "name": "Proben pro Land und UMW (Multiselect)",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
80 "description": "Abfrage aller Proben gefiltert pro Land und Umweltbereich (mit Mehrfachauswahl)",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
81 "sql": "select p.id as id, pt.probe_id_alt as probeId, p.netzbetreiber_id as netzbetreiberId, p.mst_id as mstId, to_char(p.probeentnahme_beginn,'YYYY-mm-dd HH24:MI') entnahmeVon, to_char(p.probeentnahme_ende,'YYYY-mm-dd HH24:MI') entnahmeBis, p.umw_id as umwId, p.hauptproben_nr as hauptprobenNr, o.orts_typ as ortsTyp, so.gem_id as gemId, v.bezeichnung as bezeichnung from land.probe p join land.probe_translation pt on p.id = pt.probe_id left outer join land.ort o on (p.id = o.probe_id) left outer join stammdaten.ort so on (o.ort_id = so.id) left outer join stammdaten.verwaltungseinheit v on (so.gem_id = v.id) where (o.orts_typ = 'E' or o.orts_typ is null) and (p.netzbetreiber_id = :netz OR '' =:netz) and (p.umw_id similar to (:umw_id) OR '' = :umw_id)",
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
82 "result": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
83 {"dataIndex": "probeId", "header": "ProbeId", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
84 {"dataIndex": "netzbetreiberId", "header": "Land", "width": 50},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
85 {"dataIndex": "mstId", "header": "MST", "width": 50},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
86 {"dataIndex": "entnahmeVon", "header": "Entnahme von", "width": 120},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
87 {"dataIndex": "entnahmeBis", "header": "Entnahme bis", "width": 120},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
88 {"dataIndex": "umwId", "header": "Umweltbereich", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
89 {"dataIndex": "hauptprobenNr", "header": "Proben-Nr", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
90 {"dataIndex": "ortsTyp", "header": "Ortstyp", "width": 50},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
91 {"dataIndex": "genId", "header": "Gemeinde-ID", "width": 100},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
92 {"dataIndex": "bezeichnung", "header": "Gemeinde", "flex": 1}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
93 ],
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
94 "filters": [
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
95 {"dataIndex": "netz", "type": "listnetz", "label": "Land"},
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
96 {"dataIndex": "umw_id", "type": "listumw", "label": "Umweltbereich", "multiselect":true}
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
97 ]
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
98 }
cdcb7a141529 Added new query config for messprogramme and serve it via QueryService.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
99 ]
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)