comparison flys-artifacts/doc/conf/conf.xml @ 430:7ab81ff32111 2.3

merged flys-artifacts/2.3
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:10 +0200
parents 9eb5f0c8fe7f
children bb484489d3df
comparison
equal deleted inserted replaced
290:a6f56ed9238b 430:7ab81ff32111
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="60000"
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 Each Artifactfactory represents one river. -->
15 <artifact-factory name="winfo" description="Factory to create an artifact to be used in WINFO"
16 ttl="3600000"
17 artifact="de.intevation.flys.artifacts.WINFOArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory>
18 </artifact-factories>
19
20 <user-factory name="default" description="Factory to create new users">de.intevation.artifactdatabase.DefaultUserFactory</user-factory>
21
22 <service-factories>
23 <service-factory
24 name="rivers"
25 service="de.intevation.flys.artifacts.services.RiverService"
26 description="This service returns a list of provided rivers by the artifact server.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory>
27 <service-factory
28 name="distanceinfo"
29 service="de.intevation.flys.artifacts.services.DistanceInfoService"
30 description="Returns a list of distances supported by a specific river.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory>
31 <service-factory
32 name="mainvalues"
33 service="de.intevation.flys.artifacts.services.MainValuesService"
34 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>
35 <service-factory
36 name="metadata"
37 service="de.intevation.flys.artifacts.services.MetaDataService"
38 description="The service provides some introspection into the database content.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory>
39 </service-factories>
40
41 </factories>
42
43 <callcontext-listener
44 name="SessionCallContextListener"
45 description="A CallContext.Listener to open and close Hibernatesessions">de.intevation.flys.artifacts.context.SessionCallContextListener</callcontext-listener>
46
47 <artifacts>
48 <artifact name="winfo" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/winfo.xml" />
49 </artifacts>
50
51 <output-generators>
52 <output-generator name="discharge_curve">de.intevation.flys.exports.DischargeCurveGenerator</output-generator>
53 <output-generator name="computed_discharge_curve">de.intevation.flys.exports.ComputedDischargeCurveGenerator</output-generator>
54 <output-generator name="longitudinal_section">de.intevation.flys.exports.LongitudinalSectionGenerator</output-generator>
55 <output-generator name="duration_curve">de.intevation.flys.exports.DurationCurveGenerator</output-generator>
56 <output-generator name="discharge_longitudinal_section">de.intevation.flys.exports.DischargeLongitudinalSectionGenerator</output-generator>
57 <output-generator name="waterlevel_export">de.intevation.flys.exports.WaterlevelExporter</output-generator>
58 <output-generator name="durationcurve_export">de.intevation.flys.exports.DurationCurveExporter</output-generator>
59 <output-generator name="computed_dischargecurve_export">de.intevation.flys.exports.ComputedDischargeCurveExporter</output-generator>
60 <output-generator name="discharge_longitudinal_section_export">de.intevation.flys.exports.DischargeLongitudinalSectionExporter</output-generator>
61 </output-generators>
62
63 <rest-server>
64 <!-- at this Point it is possible to Change the Port the ArtifactDatabase will bind to.-->
65 <port>8181</port>
66 <listen>localhost</listen>
67 </rest-server>
68 <!-- garbage collection of outdated artifacts -->
69 <cleaner>
70 <sleep-time>60000</sleep-time>
71 </cleaner>
72
73 <cache>
74 <config-file>${artifacts.config.dir}/cache.xml</config-file>
75 </cache>
76
77 <database>
78 <!-- This Section configures the Settings for connecting to the
79 Artifact-Database instance. e.g. SQLite -->
80 <user>SA</user>
81 <password></password>
82 <url>jdbc:h2:${artifacts.config.dir}/../artifactdb/artifacts.db</url>
83 </database>
84 <!-- This is the default backend db configuration -->
85 <!--
86 <backend-database>
87 <user>flys</user>
88 <password>flys</password>
89 <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect>
90 <driver>org.postgresql.Driver</driver>
91 <url>jdbc:postgresql://localhost:5432/flys</url>
92 </backend-database>
93 -->
94
95 <flys>
96 <themes>
97 <configuration>${artifacts.config.dir}/themes.xml</configuration>
98 </themes>
99 </flys>
100 </artifact-database>

http://dive4elements.wald.intevation.org