001/* 002 * Copyright 2010 Anyware Services 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.ametys.odf.person; 017 018import org.ametys.plugins.repository.metadata.RichText; 019 020/** 021 * Class representing a {@link ContactData} 022 * Information such as address, telephone, fax, email, URL etc. related to a given contact. 023 * 024 */ 025public class ContactData 026{ 027 /** visit Hours property : Information on when the contact is available. */ 028 public static final String VISIT_HOUR = "visitHour"; 029 /** Street property : The actual street address */ 030 public static final String ADDRESS = "address"; 031 /** Additional adress property : Extra address space. Any non-street components of the address e.g., suite number, etc */ 032 public static final String ADDITIONAL_ADDRESS = "additionalAddress"; 033 /** Zip code property. */ 034 public static final String ZIP_CODE = "zipCode"; 035 /** TOWN property. */ 036 public static final String TOWN = "town"; 037 /** PHONE property. */ 038 public static final String PHONE = "phone"; 039 /** FAX property. */ 040 public static final String FAX = "fax"; 041 /** MAIL property. */ 042 public static final String MAIL = "mail"; 043 /** WebLinkLabel property. */ 044 public static final String WEB_LINK_LABEL = "webLinkLabel"; 045 /** WebLinkUrl property. */ 046 public static final String WEB_LINK_URL = "webLinkUrl"; 047 048 private RichText _visitHour; 049 private String _address; 050 private String _additionalAddress; 051 private String _zipCode; 052 private String _town; 053 private String _phone; 054 private String _fax; 055 private String _mail; 056 private String _webLinkLabel; 057 private String _webLinkUrl; 058 059 /** 060 * Default constructor 061 */ 062 public ContactData() 063 { 064 // nothing 065 } 066 067 /** 068 * Set the visit hours 069 * @return the visitHour 070 */ 071 public RichText getVisitHour() 072 { 073 return _visitHour; 074 } 075 076 /** 077 * Get the visit hours 078 * @param visitHour the visitHour to set 079 */ 080 public void setVisitHour(RichText visitHour) 081 { 082 _visitHour = visitHour; 083 } 084 085 /** 086 * Set the adress 087 * @return the address 088 */ 089 public String getAddress() 090 { 091 return _address; 092 } 093 094 /** 095 * Get the adress 096 * @param address the address to set 097 */ 098 public void setAddress(String address) 099 { 100 _address = address; 101 } 102 103 /** 104 * Set additional adress informations 105 * @param additionalAddress the additionalAddress to set 106 */ 107 public void setAdditionalAddress(String additionalAddress) 108 { 109 _additionalAddress = additionalAddress; 110 } 111 112 /** 113 * Get additional adress informations 114 * @return the additionalAddress 115 */ 116 public String getAdditionalAddress() 117 { 118 return _additionalAddress; 119 } 120 121 /** 122 * Set the zip code 123 * @return the zipCode 124 */ 125 public String getZipCode() 126 { 127 return _zipCode; 128 } 129 130 /** 131 * Get the zipcode 132 * @param zipCode the zipCode to set 133 */ 134 public void setZipCode(String zipCode) 135 { 136 _zipCode = zipCode; 137 } 138 139 /** 140 * Get the town 141 * @return the town 142 */ 143 public String getTown() 144 { 145 return _town; 146 } 147 148 /** 149 * Set the town 150 * @param town the town to set 151 */ 152 public void setTown(String town) 153 { 154 _town = town; 155 } 156 157 /** 158 * Get the phone number 159 * @return the phone 160 */ 161 public String getPhone() 162 { 163 return _phone; 164 } 165 166 /** 167 * Set the phone number 168 * @param phone the phone to set 169 */ 170 public void setPhone(String phone) 171 { 172 _phone = phone; 173 } 174 175 /** 176 * Get the fax number 177 * @return the fax 178 */ 179 public String getFax() 180 { 181 return _fax; 182 } 183 184 /** 185 * Set the fax number 186 * @param fax the fax to set 187 */ 188 public void setFax(String fax) 189 { 190 _fax = fax; 191 } 192 193 /** 194 * Get the email adress 195 * @return the mail 196 */ 197 public String getMail() 198 { 199 return _mail; 200 } 201 202 /** 203 * Set the email address 204 * @param mail the mail to set 205 */ 206 public void setMail(String mail) 207 { 208 _mail = mail; 209 } 210 211 /** 212 * Get the web link title 213 * @return the webLinkLabel 214 */ 215 public String getWebLinkLabel() 216 { 217 return _webLinkLabel; 218 } 219 220 /** 221 * Set the weblink title 222 * @param webLinkLabel the webLinkLabel to set 223 */ 224 public void setWebLinkLabel(String webLinkLabel) 225 { 226 _webLinkLabel = webLinkLabel; 227 } 228 229 /** 230 * Get the weblink url 231 * @return the webLinkUrl 232 */ 233 public String getWebLinkUrl() 234 { 235 return _webLinkUrl; 236 } 237 238 /** 239 * Set the weblink url 240 * @param webLinkUrl the webLinkUrl to set 241 */ 242 public void setWebLinkUrl(String webLinkUrl) 243 { 244 _webLinkUrl = webLinkUrl; 245 } 246 247 248 249 250}