view flys-artifacts/doc/conf/conf.xml @ 1664:71d5abde92f2

Bugfix: #176 and #349 Create proper titles for W and Q waterlevel facets. flys-artifacts/trunk@2869 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 30 Sep 2011 08:02:21 +0000
parents 4aec853a2f85
children cee5a292754f
line wrap: on
line source
<artifact-database>
    <export-secret>YOUR_SECRET</export-secret>
    <factories>
        <context-factory>de.intevation.flys.artifacts.context.FLYSContextFactory</context-factory>

        <collection-factory
            name="DefaultArtifactCollectionFactory"
            description="The default artifact collection factory"
            ttl="21600000"
            artifact-collection="de.intevation.flys.collections.FLYSArtifactCollection">de.intevation.artifactdatabase.DefaultArtifactCollectionFactory</collection-factory>

        <artifact-factories>
            <!-- All Artifactfactories which are available in this Database. -->
            <artifact-factory name="winfo" description="Factory to create an artifact to be used in WINFO"
                ttl="3600000"
                artifact="de.intevation.flys.artifacts.WINFOArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory>
            <artifact-factory name="riveraxis" description="Factory to create an artifact to be used in WINFO"
                ttl="3600000"
                artifact="de.intevation.flys.artifacts.RiverAxisArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory>
            <artifact-factory name="wmsbackground" description="Factory to create an artifact to be used in WINFO"
                ttl="3600000"
                artifact="de.intevation.flys.artifacts.WMSBackgroundArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory>
            <artifact-factory name="annotations" description="Factory to create an artifact to access Annotations for Points at rivers"
                ttl="3600000"
                artifact="de.intevation.flys.artifacts.AnnotationArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory>
            <artifact-factory name="waterlevel" description="Factory to create an artifact to access waterlevel data"
                ttl="3600000"
                artifact="de.intevation.flys.artifacts.WaterlevelArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory>
            <artifact-factory name="mainvalue" description="Factory to create an artifact to access Main Values for discharge curve diagrams"
                ttl="3600000"
                artifact="de.intevation.flys.artifacts.MainValuesArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory>
        </artifact-factories>

        <user-factory name="default" description="Factory to create new users">de.intevation.artifactdatabase.DefaultUserFactory</user-factory>

        <service-factories>
            <service-factory
                name="rivers"
                service="de.intevation.flys.artifacts.services.RiverService"
                description="This service returns a list of provided rivers by the artifact server.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory>
            <service-factory
                name="distanceinfo"
                service="de.intevation.flys.artifacts.services.DistanceInfoService"
                description="Returns a list of distances supported by a specific river.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory>
            <service-factory
                name="mainvalues"
                service="de.intevation.flys.artifacts.services.MainValuesService"
                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>
            <service-factory
                name="metadata"
                service="de.intevation.flys.artifacts.services.MetaDataService"
                description="The service provides some introspection into the database content.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory>
            <service-factory
                name="mapinfo"
                service="de.intevation.flys.artifacts.services.MapInfoService"
                description="The service provides some basic information to create a WMS for a specific river.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory>
        </service-factories>

    </factories>

    <lifetime-listeners>
        <listener>de.intevation.flys.artifacts.datacage.Datacage</listener>
    </lifetime-listeners>

    <backend-listeners>
        <listener>de.intevation.flys.artifacts.datacage.DatacageBackendListener</listener>
    </backend-listeners>

    <callcontext-listener
        name="SessionCallContextListener"
        description="A CallContext.Listener to open and close Hibernatesessions">de.intevation.flys.artifacts.context.SessionCallContextListener</callcontext-listener>

    <artifacts>
        <artifact name="winfo" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/winfo.xml" />
        <artifact name="waterlevel" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/waterlevel.xml" />
        <artifact name="riveraxis" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/riveraxis.xml" />
        <artifact name="annotation" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/annotation.xml" />
        <artifact name="wmsbackground" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/wmsbackground.xml" />
    </artifacts>


    <hooks>
        <hook
            class="de.intevation.flys.artifacts.CollectionMonitor"
            applies="post-feed,post-advance"
            xmlns:xlink="http://www.w3.org/1999/xlink"
            xlink:href="${artifacts.config.dir}/output-defaults.xml">
        </hook>
    </hooks>

    <output-generators>
        <output-generator name="discharge_curve">de.intevation.flys.exports.DischargeCurveGenerator</output-generator>
        <output-generator name="discharge_curve_chartinfo">de.intevation.flys.exports.DischargeCurveInfoGenerator</output-generator>
        <output-generator name="cross_section">de.intevation.flys.exports.CrossSectionGenerator</output-generator>
        <output-generator name="cross_section_chartinfo">de.intevation.flys.exports.CrossSectionInfoGenerator</output-generator>
        <output-generator name="computed_discharge_curve">de.intevation.flys.exports.ComputedDischargeCurveGenerator</output-generator>
        <output-generator name="computed_discharge_curve_chartinfo">de.intevation.flys.exports.ComputedDischargeCurveInfoGenerator</output-generator>
        <output-generator name="longitudinal_section">de.intevation.flys.exports.LongitudinalSectionGenerator</output-generator>
        <output-generator name="longitudinal_section_chartinfo">de.intevation.flys.exports.LongitudinalSectionInfoGenerator</output-generator>
        <output-generator name="duration_curve">de.intevation.flys.exports.DurationCurveGenerator</output-generator>
        <output-generator name="duration_curve_chartinfo">de.intevation.flys.exports.DurationCurveInfoGenerator</output-generator>
        <output-generator name="discharge_longitudinal_section">de.intevation.flys.exports.DischargeLongitudinalSectionGenerator</output-generator>
        <output-generator name="discharge_longitudinal_section_chartinfo">de.intevation.flys.exports.DischargeLongitudinalSectionInfoGenerator</output-generator>
        <output-generator name="waterlevel_export">de.intevation.flys.exports.WaterlevelExporter</output-generator>
        <output-generator name="durationcurve_export">de.intevation.flys.exports.DurationCurveExporter</output-generator>
        <output-generator name="computed_dischargecurve_export">de.intevation.flys.exports.ComputedDischargeCurveExporter</output-generator>
        <output-generator name="discharge_longitudinal_section_export">de.intevation.flys.exports.DischargeLongitudinalSectionExporter</output-generator>
        <output-generator name="w_differences">de.intevation.flys.exports.WDifferencesCurveGenerator</output-generator>
        <output-generator name="w_differences_chartinfo">de.intevation.flys.exports.WDifferencesCurveInfoGenerator</output-generator>
        <output-generator name="w_differences_export">de.intevation.flys.exports.WDifferencesExporter</output-generator>
        <!-- Error report generators. -->
        <output-generator name="discharge_longitudinal_section_report">de.intevation.flys.exports.ReportGenerator</output-generator>
        <output-generator name="waterlevel_report">de.intevation.flys.exports.ReportGenerator</output-generator>
        <output-generator name="computed_dischargecurve_report">de.intevation.flys.exports.ReportGenerator</output-generator>
        <output-generator name="durationcurve_report">de.intevation.flys.exports.ReportGenerator</output-generator>
        <output-generator name="wsplgen_report">de.intevation.flys.exports.ReportGenerator</output-generator>
        <!-- AT exporter. -->
        <output-generator name="computed_dischargecurve_at_export">de.intevation.flys.exports.ATExporter</output-generator>
    </output-generators>

    <!-- Path to the template file of the meta data. -->
    <metadata>
        <template>${artifacts.config.dir}/meta-data.xml</template>
    </metadata>

    <!-- The floodmap configuration for each supported river. Each element
         requires a srid, wms and background-wms. Those information are used for
         creating a Map view.-->
    <floodmap>
        <shapefile-path value="${artifacts.config.dir}/../shapefiles"/>
        <mapserver>
            <server path="http://flys-devel.intevation.de/cgi-bin/"/>
            <mapfile path="${artifacts.config.dir}/../flys.map"/>
            <templates path="${artifacts.config.dir}/mapserver/"/>
            <map-template path="mapfile.vm"/>
        </mapserver>

        <velocity>
            <logfile path="${artifacts.config.dir}/../velocity_log.log"/>
        </velocity>

        <river name="Saar">
            <srid value="31466"/>
            <river-wms url="http://flys-devel.intevation.de/cgi-bin/saar-wms"/>
            <background-wms url="http://vmap0.tiles.osgeo.org/wms/vmap0" layers="basic"/>
        </river>
        <river name="Mosel">
            <srid value="31466"/>
            <river-wms url="http://flys-devel.intevation.de/cgi-bin/mosel-wms"/>
            <background-wms url="http://vmap0.tiles.osgeo.org/wms/vmap0" layers="basic"/>
        </river>
        <river name="Elbe">
            <srid value="31466"/>
            <river-wms url="http://flys-devel.intevation.de/cgi-bin/elbe-wms"/>
            <background-wms url="http://vmap0.tiles.osgeo.org/wms/vmap0" layers="basic"/>
        </river>
    </floodmap>

    <rest-server>
        <!--  The port which the ArtifactDatabase will bind to. -->
        <port>8181</port>
        <listen>localhost</listen>
    </rest-server>
    <!-- Garbage collection of outdated artifacts. -->
    <cleaner>
        <sleep-time>60000</sleep-time>
    </cleaner>

    <cache>
        <config-file>${artifacts.config.dir}/cache.xml</config-file>
    </cache>

    <!-- This is the default configuration of the datacage db:
    <datacage>
        <user/>
        <password/>
        <driver>org.h2.Driver</driver>
        <url>jdbc:h2:mem:datacage;INIT=RUNSCRIPT FROM '${artifacts.config.dir}/datacage.sql'</url>
    </datacage>
    -->

    <database>
        <!-- This Section configures the Settings for connecting to the 
             Artifact-Database instance. e.g. SQLite -->
        <user>SA</user>
        <password></password>
        <!-- For use with a postgresql database use the appropriate driver-->
        <!--driver>org.postgresql.Driver</driver-->
        <url>jdbc:h2:${artifacts.config.dir}/../artifactdb/artifacts.db</url>
    </database>
    <!-- This is the default backend db configuration. -->
    <!--
    <backend-database>
        <user>flys</user>
        <password>flys</password>
        <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect>
        <driver>org.postgresql.Driver</driver>
        <url>jdbc:postgresql://localhost:5432/flys</url>
    </backend-database>
    -->

    <flys>
        <themes>
            <configuration>${artifacts.config.dir}/themes.xml</configuration>
        </themes>
    </flys>
</artifact-database>

http://dive4elements.wald.intevation.org