public abstract class AbstractMailAccount extends Object implements MailAccount, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected boolean |
enabled |
protected String |
hostname |
protected int |
id |
protected String |
name |
protected String |
password |
protected int |
port |
protected boolean |
secure |
protected boolean |
status |
protected String |
username |
DEFAULT_FOLDER, IMAP_PROTOCOL, POP_PROTOCOL, SECURE_IMAP_PROTOCOL, SECURE_POP_PROTOCOL| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMailAccount() |
protected |
AbstractMailAccount(int id,
String name,
String description,
String hostname,
String username,
String password,
int port,
boolean secure) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Prevent this account from retrieving mail in the future
|
void |
enable()
Set this account to be retrieving mail.
|
String |
getDescription() |
String |
getHostname() |
int |
getId() |
String |
getName() |
String |
getPassword() |
int |
getPort() |
boolean |
getStatus()
Returns the status of this mail account the last time an attempt was made to connect to it.
|
String |
getUsername() |
boolean |
isDisabled()
Should this account be used to retrieve mail?
|
boolean |
isEnabled()
Should this account be used to retrieve mail?
|
boolean |
isSecure() |
String |
lockName()
A lock identifier for ensuring Confluence only connects once to a given user/host/port combination.
|
void |
setDescription(String description) |
void |
setEnabled(boolean b) |
void |
setHostname(String hostname) |
void |
setId(int id) |
void |
setName(String name) |
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setSecure(boolean secure) |
void |
setStatus(boolean status) |
void |
setUsername(String username) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFolderName, getProtocolprotected int id
protected String name
protected String description
protected String hostname
protected String username
protected String password
protected int port
protected boolean secure
protected boolean status
protected boolean enabled
public int getId()
getId in interface MailAccountpublic void setId(int id)
setId in interface MailAccountpublic String getName()
getName in interface MailAccountpublic void setName(String name)
setName in interface MailAccountpublic String getDescription()
getDescription in interface MailAccountpublic void setDescription(String description)
setDescription in interface MailAccountpublic String getHostname()
getHostname in interface MailAccountpublic void setHostname(String hostname)
setHostname in interface MailAccountpublic String getUsername()
getUsername in interface MailAccountpublic void setUsername(String username)
setUsername in interface MailAccountpublic String getPassword()
getPassword in interface MailAccountpublic void setPassword(String password)
setPassword in interface MailAccountpublic int getPort()
getPort in interface MailAccountpublic void setPort(int port)
setPort in interface MailAccountpublic boolean isSecure()
isSecure in interface MailAccountpublic void setSecure(boolean secure)
setSecure in interface MailAccountpublic boolean getStatus()
MailAccountgetStatus in interface MailAccountpublic void setStatus(boolean status)
setStatus in interface MailAccountpublic void enable()
MailAccountenable in interface MailAccountpublic void disable()
MailAccountdisable in interface MailAccountpublic boolean isEnabled()
MailAccountisEnabled in interface MailAccountpublic void setEnabled(boolean b)
setEnabled in interface MailAccountpublic boolean isDisabled()
MailAccountisDisabled in interface MailAccountpublic String lockName()
lockName in interface MailAccountCopyright © 2003–2015 Atlassian. All rights reserved.