    001    //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/branches/2.4_testing/src/org/deegree/ogcwebservices/wmps/configuration/PrintMapParam.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
    037    package org.deegree.ogcwebservices.wmps.configuration;
    038
    039    /**
    040     * This class is a container to store the print map parameters used to access the (jasper reports)
    041     * template and output directory parameters.
    042     *
    043     * @author <a href="mailto:deshmukh@lat-lon.de">Anup Deshmukh</a>
    044     *
    045     * @author last edited by: $Author: mschneider $
    046     *
    047     * @version $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
    048     */
    049
    050    public class PrintMapParam {
    051
    052        private String format;
    053
    054        private String templateDirectory;
    055
    056        private String onlineResource;
    057
    058        private String plotDirectory;
    059
    060        private String plotImageDir;
    061
    062        private String adminMailAddress;
    063
    064        private String mailHost;
    065
    066        private String mailHostUser;
    067
    068        private String mailHostPassword;
    069
    070        private String mailTextTemplate;
    071
    072        private int targetResolution = 300;
    073
    074        /**
    075         *  Create a new PrintMapParam instance.
    076         * @param format
    077         * @param templateDirectory
    078         * @param onlineResource
    079         * @param plotDirectory
    080         * @param plotImageDir
    081         * @param adminMailAddress
    082         * @param mailHost
    083         * @param mailHostUser
    084         * @param mailHostPassword
    085         * @param mailTextTemplate
    086         * @param targetResolution
    087         */
    088        public PrintMapParam( String format, String templateDirectory, String onlineResource,
    089                              String plotDirectory, String plotImageDir, String adminMailAddress,
    090                              String mailHost, String mailHostUser, String mailHostPassword,
    091                              String mailTextTemplate, int targetResolution ) {
    092            this.format = format;
    093            this.templateDirectory = templateDirectory;
    094            this.onlineResource = onlineResource;
    095            this.plotDirectory = plotDirectory;
    096            this.plotImageDir = plotImageDir;
    097            this.adminMailAddress = adminMailAddress;
    098            this.mailHost = mailHost;
    099            this.mailHostUser = mailHostUser;
    100            this.mailHostPassword = mailHostPassword;
    101            this.mailTextTemplate = mailTextTemplate;
    102            this.targetResolution = targetResolution;
    103        }
    104
    105        /**
    106         * @return Returns the format. default: pdf
    107         */
    108        public String getFormat() {
    109            return this.format;
    110        }
    111
    112        /**
    113         * @return Returns the plotDirectory.
    114         */
    115        public String getPlotDirectory() {
    116            return this.plotDirectory;
    117        }
    118
    119        /**
    120         * @return Returns the adminMailAddress.
    121         */
    122        public String getAdminMailAddress() {
    123            return this.adminMailAddress;
    124        }
    125
    126        /**
    127         * @return Returns the mailHost.
    128         */
    129        public String getMailHost() {
    130            return this.mailHost;
    131        }
    132
    133        /**
    134         * @return the mailHostUser
    135         */
    136        public String getMailHostUser() {
    137            return mailHostUser;
    138        }
    139
    140        /**
    141         * @return the mailHostPassword
    142         */
    143        public String getMailHostPassword() {
    144            return mailHostPassword;
    145        }
    146
    147        /**
    148         * @return Returns the plotImgDir.
    149         */
    150        public String getPlotImageDir() {
    151            return this.plotImageDir;
    152        }
    153
    154        /**
    155         * @return Returns the templateDirectory.
    156         */
    157        public String getTemplateDirectory() {
    158            return this.templateDirectory;
    159        }
    160
    161        /**
    162         * @return Returns the onlineResource.
    163         */
    164        public String getOnlineResource() {
    165            return this.onlineResource;
    166        }
    167
    168        /**
    169         * returns the template (text) for creating a mail to inform a user where to access the result
    170         * of a PrintMap request
    171         *
    172         * @return the template (text) for creating a mail to inform a user where to access the result
    173         *         of a PrintMap request
    174         */
    175        public String getMailTextTemplate() {
    176            return mailTextTemplate;
    177        }
    178
    179        /**
    180         * returns the resolution of the print target in DPI
    181         *
    182         * @return the resolution of the print target in DPI
    183         */
    184        public int getTargetResolution() {
    185            return targetResolution;
    186        }
    187
    188    }