001 //$HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/portal/owswatch/configs/GeneralConfig.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.portal.owswatch.configs; 038 039 import java.io.Serializable; 040 import java.util.Map; 041 042 /** 043 * GeneralConfiguration Element of the owswatchConfiguration.xml 044 * 045 * @author <a href="mailto:elmasry@lat-lon.de">Moataz Elmasry</a> 046 * @author last edited by: $Author: jmays $ 047 * 048 * @version $Revision: 20271 $, $Date: 2009-10-21 13:07:15 +0200 (Mi, 21 Okt 2009) $ 049 */ 050 public class GeneralConfig implements Serializable { 051 052 /** 053 * 054 */ 055 private static final long serialVersionUID = -4300517867661849988L; 056 057 private int globalRefreshRate; 058 059 private Map<String, User> users = null; 060 061 private String mailServer = null; 062 063 private String mailFrom = null; 064 065 private String protFolderPath = null; 066 067 private String serviceInstancesPath = null; 068 069 private String serverAddress = null; 070 071 /** 072 * @param globalRefreshRate 073 * @param users 074 * @param mailFrom 075 * @param mailServer 076 * @param protFolderPath 077 * @param serviceInstancesPath 078 * @param serverAddress 079 * 080 */ 081 public GeneralConfig( int globalRefreshRate, Map<String, User> users, String mailFrom, String mailServer, 082 String protFolderPath, String serviceInstancesPath, String serverAddress ) { 083 084 this.globalRefreshRate = globalRefreshRate; 085 this.users = users; 086 this.mailFrom = mailFrom; 087 this.mailServer = mailServer; 088 this.protFolderPath = protFolderPath; 089 this.serviceInstancesPath = serviceInstancesPath; 090 this.serverAddress = serverAddress; 091 } 092 093 /** 094 * @return GlobalRefreshRate 095 */ 096 public int getGlobalRefreshRate() { 097 return globalRefreshRate; 098 } 099 100 /** 101 * @param globalRefreshRate 102 */ 103 public void setGlobalRefreshRate( int globalRefreshRate ) { 104 this.globalRefreshRate = globalRefreshRate; 105 } 106 107 /** 108 * @return The email sender 109 */ 110 public String getMailFrom() { 111 return mailFrom; 112 } 113 114 /** 115 * @param mailFrom 116 * The email sender 117 */ 118 public void setMailFrom( String mailFrom ) { 119 this.mailFrom = mailFrom; 120 } 121 122 /** 123 * @return MailServer 124 */ 125 public String getMailServer() { 126 return mailServer; 127 } 128 129 /** 130 * @param mailServer 131 */ 132 public void setMailServer( String mailServer ) { 133 this.mailServer = mailServer; 134 } 135 136 /** 137 * @return Path to the protocol folder relativ to WEB-INF/conf/owswatch 138 */ 139 public String getProtFolderPath() { 140 return protFolderPath; 141 } 142 143 /** 144 * @param protFolderPath 145 * Path to the protocol folder relativ to WEB-INF/conf/owswatch 146 */ 147 public void setProtFolder( String protFolderPath ) { 148 this.protFolderPath = protFolderPath; 149 } 150 151 /** 152 * @return www Address of owsWatch 153 */ 154 public String getServerAddress() { 155 return serverAddress; 156 } 157 158 /** 159 * @param serverAddress 160 * www Address of owsWatch 161 */ 162 public void setServerAddress( String serverAddress ) { 163 this.serverAddress = serverAddress; 164 } 165 166 /** 167 * @return path to serviceInstances xml relativ to WEB-INF/conf/owswatch 168 */ 169 public String getServiceInstancesPath() { 170 return serviceInstancesPath; 171 } 172 173 /** 174 * @param serviceInstancesPath 175 * path to serviceInstances xml relativ to WEB-INF/conf/owswatch 176 */ 177 public void setServiceInstancesPath( String serviceInstancesPath ) { 178 this.serviceInstancesPath = serviceInstancesPath; 179 } 180 181 /** 182 * @return Users 183 */ 184 public Map<String, User> getUsers() { 185 return users; 186 } 187 188 /** 189 * @param users 190 * Users 191 */ 192 public void setUsers( Map<String, User> users ) { 193 this.users = users; 194 } 195 }