Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/conf.xml @ 1190:f514894ec2fd
merged flys-artifacts/2.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:17 +0200 |
parents | 9bdf738abbad |
children | 4aec853a2f85 |
comparison
equal
deleted
inserted
replaced
917:b48c36076e17 | 1190:f514894ec2fd |
---|---|
1 <artifact-database> | |
2 <export-secret>YOUR_SECRET</export-secret> | |
3 <factories> | |
4 <context-factory>de.intevation.flys.artifacts.context.FLYSContextFactory</context-factory> | |
5 | |
6 <collection-factory | |
7 name="DefaultArtifactCollectionFactory" | |
8 description="The default artifact collection factory" | |
9 ttl="21600000" | |
10 artifact-collection="de.intevation.flys.collections.FLYSArtifactCollection">de.intevation.artifactdatabase.DefaultArtifactCollectionFactory</collection-factory> | |
11 | |
12 <artifact-factories> | |
13 <!-- All Artifactfactories which are available in this Database. --> | |
14 <artifact-factory name="winfo" description="Factory to create an artifact to be used in WINFO" | |
15 ttl="3600000" | |
16 artifact="de.intevation.flys.artifacts.WINFOArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
17 <artifact-factory name="riveraxis" description="Factory to create an artifact to be used in WINFO" | |
18 ttl="3600000" | |
19 artifact="de.intevation.flys.artifacts.RiverAxisArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
20 <artifact-factory name="wmsbackground" description="Factory to create an artifact to be used in WINFO" | |
21 ttl="3600000" | |
22 artifact="de.intevation.flys.artifacts.WMSBackgroundArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
23 <artifact-factory name="annotations" description="Factory to create an artifact to access Annotations for Points at rivers" | |
24 ttl="3600000" | |
25 artifact="de.intevation.flys.artifacts.AnnotationArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
26 <artifact-factory name="mainvalue" description="Factory to create an artifact to access Main Values for discharge curve diagrams" | |
27 ttl="3600000" | |
28 artifact="de.intevation.flys.artifacts.MainValuesArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
29 </artifact-factories> | |
30 | |
31 <user-factory name="default" description="Factory to create new users">de.intevation.artifactdatabase.DefaultUserFactory</user-factory> | |
32 | |
33 <service-factories> | |
34 <service-factory | |
35 name="rivers" | |
36 service="de.intevation.flys.artifacts.services.RiverService" | |
37 description="This service returns a list of provided rivers by the artifact server.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory> | |
38 <service-factory | |
39 name="distanceinfo" | |
40 service="de.intevation.flys.artifacts.services.DistanceInfoService" | |
41 description="Returns a list of distances supported by a specific river.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory> | |
42 <service-factory | |
43 name="mainvalues" | |
44 service="de.intevation.flys.artifacts.services.MainValuesService" | |
45 description="Returns the main values of a river's gauge based on a start and end point of the river.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory> | |
46 <service-factory | |
47 name="metadata" | |
48 service="de.intevation.flys.artifacts.services.MetaDataService" | |
49 description="The service provides some introspection into the database content.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory> | |
50 <service-factory | |
51 name="mapinfo" | |
52 service="de.intevation.flys.artifacts.services.MapInfoService" | |
53 description="The service provides some basic information to create a WMS for a specific river.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory> | |
54 </service-factories> | |
55 | |
56 </factories> | |
57 | |
58 <lifetime-listeners> | |
59 <listener>de.intevation.flys.artifacts.datacage.Datacage</listener> | |
60 </lifetime-listeners> | |
61 | |
62 <backend-listeners> | |
63 <listener>de.intevation.flys.artifacts.datacage.DatacageBackendListener</listener> | |
64 </backend-listeners> | |
65 | |
66 <callcontext-listener | |
67 name="SessionCallContextListener" | |
68 description="A CallContext.Listener to open and close Hibernatesessions">de.intevation.flys.artifacts.context.SessionCallContextListener</callcontext-listener> | |
69 | |
70 <artifacts> | |
71 <artifact name="winfo" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/winfo.xml" /> | |
72 <artifact name="riveraxis" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/riveraxis.xml" /> | |
73 <artifact name="annotation" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/annotation.xml" /> | |
74 <artifact name="wmsbackground" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/wmsbackground.xml" /> | |
75 </artifacts> | |
76 | |
77 | |
78 <hooks> | |
79 <hook | |
80 class="de.intevation.flys.artifacts.CollectionMonitor" | |
81 applies="post-feed,post-advance" | |
82 xmlns:xlink="http://www.w3.org/1999/xlink" | |
83 xlink:href="${artifacts.config.dir}/output-defaults.xml"> | |
84 </hook> | |
85 </hooks> | |
86 | |
87 <output-generators> | |
88 <output-generator name="discharge_curve">de.intevation.flys.exports.DischargeCurveGenerator</output-generator> | |
89 <output-generator name="discharge_curve_chartinfo">de.intevation.flys.exports.DischargeCurveInfoGenerator</output-generator> | |
90 <output-generator name="cross_section">de.intevation.flys.exports.CrossSectionGenerator</output-generator> | |
91 <output-generator name="cross_section_chartinfo">de.intevation.flys.exports.CrossSectionInfoGenerator</output-generator> | |
92 <output-generator name="computed_discharge_curve">de.intevation.flys.exports.ComputedDischargeCurveGenerator</output-generator> | |
93 <output-generator name="computed_discharge_curve_chartinfo">de.intevation.flys.exports.ComputedDischargeCurveInfoGenerator</output-generator> | |
94 <output-generator name="longitudinal_section">de.intevation.flys.exports.LongitudinalSectionGenerator</output-generator> | |
95 <output-generator name="longitudinal_section_chartinfo">de.intevation.flys.exports.LongitudinalSectionInfoGenerator</output-generator> | |
96 <output-generator name="duration_curve">de.intevation.flys.exports.DurationCurveGenerator</output-generator> | |
97 <output-generator name="duration_curve_chartinfo">de.intevation.flys.exports.DurationCurveInfoGenerator</output-generator> | |
98 <output-generator name="discharge_longitudinal_section">de.intevation.flys.exports.DischargeLongitudinalSectionGenerator</output-generator> | |
99 <output-generator name="discharge_longitudinal_section_chartinfo">de.intevation.flys.exports.DischargeLongitudinalSectionInfoGenerator</output-generator> | |
100 <output-generator name="waterlevel_export">de.intevation.flys.exports.WaterlevelExporter</output-generator> | |
101 <output-generator name="durationcurve_export">de.intevation.flys.exports.DurationCurveExporter</output-generator> | |
102 <output-generator name="computed_dischargecurve_export">de.intevation.flys.exports.ComputedDischargeCurveExporter</output-generator> | |
103 <output-generator name="discharge_longitudinal_section_export">de.intevation.flys.exports.DischargeLongitudinalSectionExporter</output-generator> | |
104 <output-generator name="w_differences">de.intevation.flys.exports.WDifferencesCurveGenerator</output-generator> | |
105 <output-generator name="w_differences_chartinfo">de.intevation.flys.exports.WDifferencesCurveInfoGenerator</output-generator> | |
106 <output-generator name="w_differences_export">de.intevation.flys.exports.WDifferencesExporter</output-generator> | |
107 <!-- Error report generators. --> | |
108 <output-generator name="discharge_longitudinal_section_report">de.intevation.flys.exports.ReportGenerator</output-generator> | |
109 <output-generator name="waterlevel_report">de.intevation.flys.exports.ReportGenerator</output-generator> | |
110 <output-generator name="computed_dischargecurve_report">de.intevation.flys.exports.ReportGenerator</output-generator> | |
111 <output-generator name="durationcurve_report">de.intevation.flys.exports.ReportGenerator</output-generator> | |
112 <output-generator name="wsplgen_report">de.intevation.flys.exports.ReportGenerator</output-generator> | |
113 <!-- AT exporter. --> | |
114 <output-generator name="computed_dischargecurve_at_export">de.intevation.flys.exports.ATExporter</output-generator> | |
115 </output-generators> | |
116 | |
117 <!-- Path to the template file of the meta data. --> | |
118 <metadata> | |
119 <template>${artifacts.config.dir}/meta-data.xml</template> | |
120 </metadata> | |
121 | |
122 <!-- The floodmap configuration for each supported river. Each element | |
123 requires a srid, wms and background-wms. Those information are used for | |
124 creating a Map view.--> | |
125 <floodmap> | |
126 <shapefile-path value="${artifacts.config.dir}/../shapefiles"/> | |
127 <mapserver> | |
128 <server path="http://flys-devel.intevation.de/cgi-bin/"/> | |
129 <mapfile path="${artifacts.config.dir}/../flys.map"/> | |
130 <templates path="${artifacts.config.dir}/mapserver/"/> | |
131 <map-template path="mapfile.vm"/> | |
132 </mapserver> | |
133 | |
134 <velocity> | |
135 <logfile path="${artifacts.config.dir}/../velocity_log.log"/> | |
136 </velocity> | |
137 | |
138 <river name="Saar"> | |
139 <srid value="31466"/> | |
140 <river-wms url="http://flys-devel.intevation.de/cgi-bin/saar-wms"/> | |
141 <background-wms url="http://vmap0.tiles.osgeo.org/wms/vmap0" layers="basic"/> | |
142 </river> | |
143 <river name="Mosel"> | |
144 <srid value="31466"/> | |
145 <river-wms url="http://flys-devel.intevation.de/cgi-bin/mosel-wms"/> | |
146 <background-wms url="http://vmap0.tiles.osgeo.org/wms/vmap0" layers="basic"/> | |
147 </river> | |
148 <river name="Elbe"> | |
149 <srid value="31466"/> | |
150 <river-wms url="http://flys-devel.intevation.de/cgi-bin/elbe-wms"/> | |
151 <background-wms url="http://vmap0.tiles.osgeo.org/wms/vmap0" layers="basic"/> | |
152 </river> | |
153 </floodmap> | |
154 | |
155 <rest-server> | |
156 <!-- The port which the ArtifactDatabase will bind to. --> | |
157 <port>8181</port> | |
158 <listen>localhost</listen> | |
159 </rest-server> | |
160 <!-- Garbage collection of outdated artifacts. --> | |
161 <cleaner> | |
162 <sleep-time>60000</sleep-time> | |
163 </cleaner> | |
164 | |
165 <cache> | |
166 <config-file>${artifacts.config.dir}/cache.xml</config-file> | |
167 </cache> | |
168 | |
169 <!-- This is the default configuration of the datacage db: | |
170 <datacage> | |
171 <user/> | |
172 <password/> | |
173 <driver>org.h2.Driver</driver> | |
174 <url>jdbc:h2:mem:datacage;INIT=RUNSCRIPT FROM '${artifacts.config.dir}/datacage.sql'</url> | |
175 </datacage> | |
176 --> | |
177 | |
178 <database> | |
179 <!-- This Section configures the Settings for connecting to the | |
180 Artifact-Database instance. e.g. SQLite --> | |
181 <user>SA</user> | |
182 <password></password> | |
183 <!-- For use with a postgresql database use the appropriate driver--> | |
184 <!--driver>org.postgresql.Driver</driver--> | |
185 <url>jdbc:h2:${artifacts.config.dir}/../artifactdb/artifacts.db</url> | |
186 </database> | |
187 <!-- This is the default backend db configuration. --> | |
188 <!-- | |
189 <backend-database> | |
190 <user>flys</user> | |
191 <password>flys</password> | |
192 <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect> | |
193 <driver>org.postgresql.Driver</driver> | |
194 <url>jdbc:postgresql://localhost:5432/flys</url> | |
195 </backend-database> | |
196 --> | |
197 | |
198 <flys> | |
199 <themes> | |
200 <configuration>${artifacts.config.dir}/themes.xml</configuration> | |
201 </themes> | |
202 </flys> | |
203 </artifact-database> |