001    //$HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/ogcwebservices/csw/configuration/CatalogueDeegreeParams.java $
002    /*----------------------------------------------------------------------------
003     This file is part of deegree, http://deegree.org/
004     Copyright (C) 2001-2009 by:
005       Department of Geography, University of Bonn
006     and
007       lat/lon GmbH
008    
009     This library is free software; you can redistribute it and/or modify it under
010     the terms of the GNU Lesser General Public License as published by the Free
011     Software Foundation; either version 2.1 of the License, or (at your option)
012     any later version.
013     This library is distributed in the hope that it will be useful, but WITHOUT
014     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
015     FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
016     details.
017     You should have received a copy of the GNU Lesser General Public License
018     along with this library; if not, write to the Free Software Foundation, Inc.,
019     59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020    
021     Contact information:
022    
023     lat/lon GmbH
024     Aennchenstr. 19, 53177 Bonn
025     Germany
026     http://lat-lon.de/
027    
028     Department of Geography, University of Bonn
029     Prof. Dr. Klaus Greve
030     Postfach 1147, 53001 Bonn
031     Germany
032     http://www.geographie.uni-bonn.de/deegree/
033    
034     e-mail: info@deegree.org
035    ----------------------------------------------------------------------------*/
036    package org.deegree.ogcwebservices.csw.configuration;
037    
038    import org.deegree.datatypes.xlink.SimpleLink;
039    import org.deegree.enterprise.DeegreeParams;
040    import org.deegree.io.JDBCConnection;
041    import org.deegree.model.metadata.iso19115.OnlineResource;
042    
043    /**
044     * Represents the specific <code>deegreeParams</code> section of the configuration for a deegree
045     * CSW 2.0 instance. This class encapsulates the deegree CWS specific parameters and inherits the
046     * parameters from the <code>DeegreeParams</code> class.
047     * <p>
048     * It adds the following elements to the common <code>deegreeParams<code>:<table border="1">
049     * <tr>
050     * <th>Name</th>
051     * <th>Mandatory</th>
052     * <th>Function</th>
053     * </tr>
054     * <tr>
055     * <td>WFSResource</td>
056     * <td align="center">-</td>
057     * <td>Resource location of the capabilities of the WFS responsible for data
058     * access, default: file:///$RootDirectory$/WEB-INF/xml/wfs_capabilities.xml.
059     * </td>
060     * </tr>
061     * <tr>
062     * <td>CatalogAddresses</td>
063     * <td align="center">-</td>
064     * <td>Addresses of remote catalogs to be used to realize a cascading catalog.
065     * </td>
066     * </tr>
067     * <tr>
068     * <td>HarvestRepository</td>
069     * <td align="center">-</td>
070     * <td>Information concerning services that are harvestable.</td>
071     * </tr>
072     * </table>
073     *
074     *
075     * @author <a href="mailto:poth@lat-lon.de">Andreas Poth </a>
076     * @author <a href="mailto:mschneider@lat-lon.de">Markus Schneider </a>
077     * @author last edited by: $Author: mschneider $
078     *
079     * @version 2.0, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
080     *
081     * @see org.deegree.enterprise.DeegreeParams
082     *
083     * @since 2.0
084     */
085    
086    public class CatalogueDeegreeParams extends DeegreeParams {
087    
088        private static final long serialVersionUID = -2923926335089417513L;
089    
090        private SimpleLink wfsResource;
091    
092        private OnlineResource[] catalogAddresses;
093    
094        private JDBCConnection harvestRepository;
095    
096        private String defaultOutputSchema = null;
097    
098        private OnlineResource transInXslt = null;
099    
100        private OnlineResource transOutXslt = null;
101    
102        /**
103         * Creates a new CatalogDeegreeParams instance.
104         *
105         * @param defaultOnlineResource
106         * @param cacheSize
107         * @param requestTimeLimit
108         * @param characterSet
109         * @param wfsResource
110         * @param catalogAddresses
111         * @param harvestRepository
112         * @param defaultOutputSchema
113         * @param trans_in_xslt
114         * @param trans_out_xslt
115         */
116        public CatalogueDeegreeParams( OnlineResource defaultOnlineResource, int cacheSize, int requestTimeLimit,
117                                       String characterSet, SimpleLink wfsResource, OnlineResource[] catalogAddresses,
118                                       JDBCConnection harvestRepository, String defaultOutputSchema,
119                                       OnlineResource trans_in_xslt, OnlineResource trans_out_xslt ) {
120            super( defaultOnlineResource, cacheSize, requestTimeLimit, characterSet );
121            this.wfsResource = wfsResource;
122            this.catalogAddresses = catalogAddresses;
123            this.harvestRepository = harvestRepository;
124            this.defaultOutputSchema = defaultOutputSchema;
125            this.transInXslt = trans_in_xslt;
126            this.transOutXslt = trans_out_xslt;
127        }
128    
129        /**
130         * @return Returns the catalogAddresses.
131         */
132        public OnlineResource[] getCatalogAddresses() {
133            return catalogAddresses;
134        }
135    
136        /**
137         * @param catalogAddresses
138         *            The catalogAddresses to set.
139         */
140        public void setCatalogAddresses( OnlineResource[] catalogAddresses ) {
141            this.catalogAddresses = catalogAddresses;
142        }
143    
144        /**
145         * @return Returns the harvestRepository.
146         */
147        public JDBCConnection getHarvestRepository() {
148            return harvestRepository;
149        }
150    
151        /**
152         * @param harvestRepository
153         *            The harvestRepository to set.
154         */
155        public void setHarvestRepository( JDBCConnection harvestRepository ) {
156            this.harvestRepository = harvestRepository;
157        }
158    
159        /**
160         * @return Returns the wfsResource.
161         */
162        public SimpleLink getWfsResource() {
163            return wfsResource;
164        }
165    
166        /**
167         * @param wfsResource
168         *            The wfsResource to set.
169         */
170        public void setWfsResource( SimpleLink wfsResource ) {
171            this.wfsResource = wfsResource;
172        }
173    
174        /**
175         *
176         * @return returns the default output schema
177         */
178        public String getDefaultOutputSchema() {
179            return defaultOutputSchema;
180        }
181    
182        /**
183         * @param defaultOutputSchema
184         *            default output schema
185         */
186        public void setDefaultOutputSchema( String defaultOutputSchema ) {
187            this.defaultOutputSchema = defaultOutputSchema;
188        }
189    
190        /**
191         * @return the xslt url
192         */
193        public OnlineResource getTransformationInputXSLT() {
194            return transInXslt;
195        }
196    
197        /**
198         * @param xslt
199         */
200        public void setTransformationInputXSLT( OnlineResource xslt ) {
201            this.transInXslt = xslt;
202        }
203    
204        /**
205         * @return the xslt url
206         */
207        public OnlineResource getTransformationOutputXSLT() {
208            return transOutXslt;
209        }
210    
211        /**
212         * @param xslt
213         */
214        public void setTransformationOutputXSLT( OnlineResource xslt ) {
215            this.transOutXslt = xslt;
216        }
217    }