1 package org.lucane.applications.jmail.base; 2 3 22 23 import org.lucane.applications.jmail.Account; 24 25 26 public class Profile 27 { 28 29 private String profileName; 30 31 private String profilePassword; 32 private String unhashedProfilePassword; 33 34 35 private String email; 36 37 private String replyTo; 38 39 40 private String type; 41 42 43 private String incoming; 44 45 46 private int incomingPort; 47 48 private boolean useSSL; 49 50 51 private String outgoing; 52 53 54 private int outgoingPort; 55 56 57 private String login; 58 59 60 private String password; 61 62 private String decryptedMailPassword; 63 64 private String signature; 65 66 private int refreshInterval = 200000; 67 68 public Profile(Account a) 69 { 70 this("", "", a.address, a.address, a.type, a.inHost, a.inPort, false, a.outHost, 71 a.outPort, a.login, "", ""); 72 this.setDecryptedMailPassword(a.password); 73 this.refreshInterval = a.refreshInterval*60*1000; } 75 76 89 protected Profile(String profileName, String profilePassword, String email, String replyTo, 90 String type, String incoming, int incomingPort, boolean useSSL, String outgoing, 91 int outgoingPort, String login, String password, String signature) 92 { 93 this.profileName = profileName; 94 this.profilePassword = profilePassword; 95 this.email = email; 96 this.replyTo = replyTo; 97 this.type = type; 98 this.incoming = incoming; 99 this.incomingPort = incomingPort; 100 this.useSSL = useSSL; 101 this.outgoing = outgoing; 102 this.outgoingPort = outgoingPort; 103 this.login = login; 104 this.password = password; 105 this.signature = signature; 106 this.refreshInterval = 200000; 107 } 108 109 110 113 protected final String getProfileName() 114 { 115 return(profileName); 116 } 117 118 protected final String getProfilePassword() 119 { 120 return(profilePassword); 121 } 122 123 protected final void setProfilePassword(String profilePassword) 124 { 125 this.profilePassword = profilePassword; 126 } 127 128 protected final String getUnhashedProfilePassword() 129 { 130 return(unhashedProfilePassword); 131 } 132 133 protected final void setUnhashedProfilePassword(String unhashedProfilePassword) 134 { 135 this.unhashedProfilePassword = unhashedProfilePassword; 136 } 137 138 141 protected final String getEmail() 142 { 143 return(email); 144 } 145 146 149 protected final void setEmail(String email) 150 { 151 this.email = email; 152 } 153 154 protected final String getReplyTo() 155 { 156 return(replyTo); 157 } 158 159 protected final void setReplyTo(String replyTo) 160 { 161 this.replyTo = replyTo; 162 } 163 164 167 protected final String getType() 168 { 169 return(type); 170 } 171 172 175 protected final void setType(String type) 176 { 177 this.type = type; 178 } 179 180 183 protected final String getIncoming() 184 { 185 return(incoming); 186 } 187 188 191 protected final void setIncoming(String incoming) 192 { 193 this.incoming = incoming; 194 } 195 196 199 protected final int getIncomingPort() 200 { 201 return(incomingPort); 202 } 203 204 207 protected final void setIncomingPort(int incomingPort) 208 { 209 this.incomingPort = incomingPort; 210 } 211 212 protected final boolean getUseSSL() 213 { 214 return(useSSL); 215 } 216 217 protected final void setUseSSL(boolean useSSL) 218 { 219 this.useSSL = useSSL; 220 } 221 222 225 protected final String getOutgoing() 226 { 227 return(outgoing); 228 } 229 230 233 protected final void setOutgoing(String outgoing) 234 { 235 this.outgoing = outgoing; 236 } 237 238 241 protected final int getOutgoingPort() 242 { 243 return(outgoingPort); 244 } 245 246 249 protected final void setOutgoingPort(int outgoingPort) 250 { 251 this.outgoingPort = outgoingPort; 252 } 253 254 257 protected final String getLogin() 258 { 259 return(login); 260 } 261 262 265 protected final void setLogin(String login) 266 { 267 this.login = login; 268 } 269 270 273 protected final String getPassword() 274 { 275 return(password); 276 } 277 278 281 protected final void setPassword(String password) 282 { 283 this.password = password; 284 } 285 286 protected final String getDecryptedMailPassword() 287 { 288 return(decryptedMailPassword); 289 } 290 291 protected final void setDecryptedMailPassword(String decryptedMailPassword) 292 { 293 this.decryptedMailPassword = decryptedMailPassword; 294 } 295 296 protected final String getSignature() 297 { 298 return(signature); 299 } 300 301 protected final void setSignature(String signature) 302 { 303 this.signature = signature; 304 } 305 306 public int getRefreshInterval() 307 { 308 return refreshInterval; 309 } 310 } 311 | Popular Tags |