Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/conf.xml @ 3814:8083f6384023
merged flys-artifacts/pre2.6-2012-01-04
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:56 +0200 |
parents | 0eab7d98a850 |
children | 007a8f5ed9f1 |
comparison
equal
deleted
inserted
replaced
1491:2a00f4849738 | 3814:8083f6384023 |
---|---|
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="wmskmfactory" description="Factory to create an artifact that generates WMS facets for KMs." | |
21 ttl="3600000" | |
22 artifact="de.intevation.flys.artifacts.WMSKmArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
23 <artifact-factory name="wmsqpsfactory" description="Factory to create an artifact that generates WMS facets for CrossSectionTracks." | |
24 ttl="3600000" | |
25 artifact="de.intevation.flys.artifacts.WMSQPSArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
26 <artifact-factory name="wmshwsfactory" description="Factory to create an artifact that generates WMS facets for CrossSectionTracks." | |
27 ttl="3600000" | |
28 artifact="de.intevation.flys.artifacts.WMSHwsArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
29 <artifact-factory name="wmscatchmentfactory" description="Factory to create an artifact that generates WMS facets for CrossSectionTracks." | |
30 ttl="3600000" | |
31 artifact="de.intevation.flys.artifacts.WMSCatchmentArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
32 <artifact-factory name="wmsfloodplainfactory" description="Factory to create an artifact that generates WMS facets for CrossSectionTracks." | |
33 ttl="3600000" | |
34 artifact="de.intevation.flys.artifacts.WMSFloodplainArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
35 <artifact-factory name="wmslinefactory" description="Factory to create an artifact to be used in WINFO" | |
36 ttl="3600000" | |
37 artifact="de.intevation.flys.artifacts.WMSLineArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
38 <artifact-factory name="wmsbuildingsfactory" description="Factory to create an artifact to be used in WINFO" | |
39 ttl="3600000" | |
40 artifact="de.intevation.flys.artifacts.WMSBuildingsArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
41 <artifact-factory name="wmsfixpointsfactory" description="Factory to create an artifact to be used in WINFO" | |
42 ttl="3600000" | |
43 artifact="de.intevation.flys.artifacts.WMSFixpointsArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
44 <artifact-factory name="wmsbackground" description="Factory to create an artifact to be used in WINFO" | |
45 ttl="3600000" | |
46 artifact="de.intevation.flys.artifacts.WMSBackgroundArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
47 <artifact-factory name="externalwmsfactory" description="Factory to create an artifact to be used in Floodmaps to display external WMS layers" | |
48 ttl="3600000" | |
49 artifact="de.intevation.flys.artifacts.ExternalWMSArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
50 <artifact-factory name="annotations" description="Factory to create an artifact to access Annotations for Points at rivers" | |
51 ttl="3600000" | |
52 artifact="de.intevation.flys.artifacts.AnnotationArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
53 <artifact-factory name="crosssections" description="Factory to create an artifact to access cross sections" | |
54 ttl="3600000" | |
55 artifact="de.intevation.flys.artifacts.CrossSectionArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
56 <artifact-factory name="waterlevel" description="Factory to create an artifact to access waterlevel data" | |
57 ttl="3600000" | |
58 artifact="de.intevation.flys.artifacts.WaterlevelArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
59 <artifact-factory name="mainvalue" description="Factory to create an artifact to access Main Values for discharge curve diagrams" | |
60 ttl="3600000" | |
61 artifact="de.intevation.flys.artifacts.MainValuesArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
62 <artifact-factory name="staticwkms" description="Factory to create an artifact to access 'other' WKms data" | |
63 ttl="3600000" | |
64 artifact="de.intevation.flys.artifacts.StaticWKmsArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
65 <artifact-factory name="area" description="Factory to create an artifact to draw (wkms) area data" | |
66 ttl="3600000" | |
67 artifact="de.intevation.flys.artifacts.AreaArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
68 <artifact-factory name="wqinterpol" description="Factory to create an artifact to access 'other' WQ (at km) data" | |
69 ttl="3600000" | |
70 artifact="de.intevation.flys.artifacts.WQKmsInterpolArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
71 </artifact-factories> | |
72 | |
73 <user-factory name="default" description="Factory to create new users">de.intevation.artifactdatabase.DefaultUserFactory</user-factory> | |
74 | |
75 <service-factories> | |
76 <service-factory | |
77 name="rivers" | |
78 service="de.intevation.flys.artifacts.services.RiverService" | |
79 description="This service returns a list of provided rivers by the artifact server.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory> | |
80 <service-factory | |
81 name="distanceinfo" | |
82 service="de.intevation.flys.artifacts.services.DistanceInfoService" | |
83 description="Returns a list of distances supported by a specific river.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory> | |
84 <service-factory | |
85 name="mainvalues" | |
86 service="de.intevation.flys.artifacts.services.MainValuesService" | |
87 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> | |
88 <service-factory | |
89 name="metadata" | |
90 service="de.intevation.flys.artifacts.services.MetaDataService" | |
91 description="The service provides some introspection into the database content.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory> | |
92 <service-factory | |
93 name="mapinfo" | |
94 service="de.intevation.flys.artifacts.services.MapInfoService" | |
95 description="The service provides some basic information to create a WMS for a specific river.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory> | |
96 <service-factory | |
97 name="cross-section-km" | |
98 service="de.intevation.flys.artifacts.services.CrossSectionKMService" | |
99 description="The service provides the N next neighbored kms and ids of cross section lines for given cross section id, km and N.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory> | |
100 </service-factories> | |
101 | |
102 </factories> | |
103 | |
104 <lifetime-listeners> | |
105 <listener>de.intevation.flys.artifacts.datacage.Datacage</listener> | |
106 <listener>de.intevation.flys.wsplgen.SchedulerSetup</listener> | |
107 </lifetime-listeners> | |
108 | |
109 <backend-listeners> | |
110 <listener>de.intevation.flys.artifacts.datacage.DatacageBackendListener</listener> | |
111 </backend-listeners> | |
112 | |
113 <callcontext-listener | |
114 name="SessionCallContextListener" | |
115 description="A CallContext.Listener to open and close Hibernatesessions">de.intevation.flys.artifacts.context.SessionCallContextListener</callcontext-listener> | |
116 | |
117 <artifacts> | |
118 <artifact name="winfo" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/winfo.xml" /> | |
119 <artifact name="waterlevel" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/waterlevel.xml" /> | |
120 <artifact name="annotation" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/annotation.xml" /> | |
121 <artifact name="wmsbackground" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/wmsbackground.xml" /> | |
122 </artifacts> | |
123 | |
124 | |
125 <hooks> | |
126 <hook | |
127 class="de.intevation.flys.artifacts.CollectionMonitor" | |
128 applies="post-feed,post-advance,post-describe" | |
129 xmlns:xlink="http://www.w3.org/1999/xlink" | |
130 xlink:href="${artifacts.config.dir}/output-defaults.xml"> | |
131 </hook> | |
132 </hooks> | |
133 | |
134 <output-generators> | |
135 <output-generator name="discharge_curve">de.intevation.flys.exports.DischargeCurveGenerator</output-generator> | |
136 <output-generator name="discharge_curve_chartinfo">de.intevation.flys.exports.DischargeCurveInfoGenerator</output-generator> | |
137 <output-generator name="cross_section">de.intevation.flys.exports.CrossSectionGenerator</output-generator> | |
138 <output-generator name="cross_section_chartinfo">de.intevation.flys.exports.CrossSectionInfoGenerator</output-generator> | |
139 <output-generator name="computed_discharge_curve">de.intevation.flys.exports.ComputedDischargeCurveGenerator</output-generator> | |
140 <output-generator name="computed_discharge_curve_chartinfo">de.intevation.flys.exports.ComputedDischargeCurveInfoGenerator</output-generator> | |
141 <output-generator name="longitudinal_section">de.intevation.flys.exports.LongitudinalSectionGenerator</output-generator> | |
142 <output-generator name="longitudinal_section_chartinfo">de.intevation.flys.exports.LongitudinalSectionInfoGenerator</output-generator> | |
143 <output-generator name="duration_curve">de.intevation.flys.exports.DurationCurveGenerator</output-generator> | |
144 <output-generator name="duration_curve_chartinfo">de.intevation.flys.exports.DurationCurveInfoGenerator</output-generator> | |
145 <output-generator name="discharge_longitudinal_section">de.intevation.flys.exports.DischargeLongitudinalSectionGenerator</output-generator> | |
146 <output-generator name="discharge_longitudinal_section_chartinfo">de.intevation.flys.exports.DischargeLongitudinalSectionInfoGenerator</output-generator> | |
147 <output-generator name="waterlevel_export">de.intevation.flys.exports.WaterlevelExporter</output-generator> | |
148 <output-generator name="durationcurve_export">de.intevation.flys.exports.DurationCurveExporter</output-generator> | |
149 <output-generator name="computed_dischargecurve_export">de.intevation.flys.exports.ComputedDischargeCurveExporter</output-generator> | |
150 <output-generator name="discharge_longitudinal_section_export">de.intevation.flys.exports.DischargeLongitudinalSectionExporter</output-generator> | |
151 <output-generator name="w_differences">de.intevation.flys.exports.WDifferencesCurveGenerator</output-generator> | |
152 <output-generator name="w_differences_chartinfo">de.intevation.flys.exports.WDifferencesCurveInfoGenerator</output-generator> | |
153 <output-generator name="w_differences_export">de.intevation.flys.exports.WDifferencesExporter</output-generator> | |
154 <output-generator name="floodmap">de.intevation.flys.exports.MapGenerator</output-generator> | |
155 <!-- Error report generators. --> | |
156 <output-generator name="discharge_longitudinal_section_report">de.intevation.flys.exports.ReportGenerator</output-generator> | |
157 <output-generator name="waterlevel_report">de.intevation.flys.exports.ReportGenerator</output-generator> | |
158 <output-generator name="computed_dischargecurve_report">de.intevation.flys.exports.ReportGenerator</output-generator> | |
159 <output-generator name="durationcurve_report">de.intevation.flys.exports.ReportGenerator</output-generator> | |
160 <output-generator name="wsplgen_report">de.intevation.flys.exports.ReportGenerator</output-generator> | |
161 <!-- AT exporter. --> | |
162 <output-generator name="computed_dischargecurve_at_export">de.intevation.flys.exports.ATExporter</output-generator> | |
163 </output-generators> | |
164 | |
165 <!-- Path to the template file of the meta data. --> | |
166 <metadata> | |
167 <template>${artifacts.config.dir}/meta-data.xml</template> | |
168 </metadata> | |
169 | |
170 <!-- The floodmap configuration for each supported river. Each element | |
171 requires a srid, wms and background-wms. Those information are used for | |
172 creating a Map view.--> | |
173 <floodmap> | |
174 <shapefile-path value="${artifacts.config.dir}/../shapefiles"/> | |
175 <mapserver> | |
176 <server path="http://flys-devel.intevation.de/cgi-bin/"/> | |
177 <mapfile path="${artifacts.config.dir}/../flys.map"/> | |
178 <templates path="${artifacts.config.dir}/mapserver/"/> | |
179 <map-template path="mapfile.vm"/> | |
180 </mapserver> | |
181 | |
182 <velocity> | |
183 <logfile path="${artifacts.config.dir}/../velocity_log.log"/> | |
184 </velocity> | |
185 | |
186 <river name="Saar"> | |
187 <srid value="31466"/> | |
188 <river-wms url="http://flys-devel.intevation.de/cgi-bin/saar-wms"/> | |
189 <background-wms url="http://vmap0.tiles.osgeo.org/wms/vmap0" layers="basic"/> | |
190 </river> | |
191 <river name="Mosel"> | |
192 <srid value="31466"/> | |
193 <river-wms url="http://flys-devel.intevation.de/cgi-bin/mosel-wms"/> | |
194 <background-wms url="http://vmap0.tiles.osgeo.org/wms/vmap0" layers="basic"/> | |
195 </river> | |
196 <river name="Elbe"> | |
197 <srid value="31466"/> | |
198 <river-wms url="http://flys-devel.intevation.de/cgi-bin/elbe-wms"/> | |
199 <background-wms url="http://vmap0.tiles.osgeo.org/wms/vmap0" layers="basic"/> | |
200 </river> | |
201 </floodmap> | |
202 | |
203 <rest-server> | |
204 <!-- The port which the ArtifactDatabase (ArtifactServer) will bind to. --> | |
205 <port>8181</port> | |
206 <listen>localhost</listen> | |
207 </rest-server> | |
208 <!-- Garbage collection of outdated artifacts. --> | |
209 <cleaner> | |
210 <sleep-time>60000</sleep-time> | |
211 </cleaner> | |
212 | |
213 <cache> | |
214 <config-file>${artifacts.config.dir}/cache.xml</config-file> | |
215 </cache> | |
216 | |
217 <!-- This is the default configuration of the datacage db: | |
218 <datacage> | |
219 <user/> | |
220 <password/> | |
221 <driver>org.h2.Driver</driver> | |
222 <url>jdbc:h2:mem:datacage;INIT=RUNSCRIPT FROM '${artifacts.config.dir}/datacage.sql'</url> | |
223 </datacage> | |
224 --> | |
225 | |
226 <database> | |
227 <!-- This Section configures the Settings for connecting to the | |
228 Artifact-Database instance. e.g. SQLite --> | |
229 <user>SA</user> | |
230 <password></password> | |
231 <!-- For use with a postgresql database use the appropriate driver--> | |
232 <!--driver>org.postgresql.Driver</driver--> | |
233 <url>jdbc:h2:${artifacts.config.dir}/../artifactdb/artifacts.db</url> | |
234 </database> | |
235 <!-- This is the default backend db configuration. --> | |
236 <!-- | |
237 <backend-database> | |
238 <user>flys</user> | |
239 <password>flys</password> | |
240 <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect> | |
241 <driver>org.postgresql.Driver</driver> | |
242 <url>jdbc:postgresql://localhost:5432/flys</url> | |
243 </backend-database> | |
244 --> | |
245 | |
246 <flys> | |
247 <themes> | |
248 <configuration>${artifacts.config.dir}/themes.xml</configuration> | |
249 </themes> | |
250 </flys> | |
251 </artifact-database> |