Package de.xima.fc.mail.models
Class SystemMailServerData
- java.lang.Object
-
- de.xima.fc.mail.models.SystemMailServerData
-
- All Implemented Interfaces:
IMailServerData
,Serializable
public class SystemMailServerData extends Object implements IMailServerData
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SystemMailServerData()
Creates a new mail server data wrapper for the system mail server.SystemMailServerData(MandantMailData mailData)
Creates a new mail server data wrapper for the system mail server, used within the context of the given client scope.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getAuthAttributes()
EMailAuthenticationType
getAuthenticationType()
String
getAuthName()
String
getAuthPassword()
EMailEncryption
getEncrytpionType()
String
getHost()
EMailServerScope
getMailServerScope()
int
getPort()
String
getSenderAddress()
String
getSenderName()
boolean
isAllowCustomSenderAddress()
boolean
isAllowUtf8()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.interfaces.mail.IMailServerData
getAuthenticator, isSupportsCustomSenderName, isSupportsMixedBodyTypes
-
-
-
-
Constructor Detail
-
SystemMailServerData
public SystemMailServerData()
Creates a new mail server data wrapper for the system mail server. When sending mails from within the context of aclient
, useSystemMailServerData(MandantMailData)
.
-
SystemMailServerData
public SystemMailServerData(MandantMailData mailData)
Creates a new mail server data wrapper for the system mail server, used within the context of the given client scope.- Parameters:
mailData
- Client mail data, if available, when the mail is sent within the context of a client, such as from workflow actions. May benull
otherwise.
-
-
Method Detail
-
getMailServerScope
public EMailServerScope getMailServerScope()
- Specified by:
getMailServerScope
in interfaceIMailServerData
-
getHost
public String getHost()
- Specified by:
getHost
in interfaceIMailServerData
-
getPort
public int getPort()
- Specified by:
getPort
in interfaceIMailServerData
-
getSenderAddress
public String getSenderAddress()
- Specified by:
getSenderAddress
in interfaceIMailServerData
- Returns:
- Configured sender address of the mail server.
-
getSenderName
public String getSenderName()
- Specified by:
getSenderName
in interfaceIMailServerData
- Returns:
- Configured sender name of the mail server.
-
getAuthName
public String getAuthName()
- Specified by:
getAuthName
in interfaceIMailServerData
-
getAuthPassword
public String getAuthPassword()
- Specified by:
getAuthPassword
in interfaceIMailServerData
-
getAuthenticationType
public EMailAuthenticationType getAuthenticationType()
- Specified by:
getAuthenticationType
in interfaceIMailServerData
-
getEncrytpionType
public EMailEncryption getEncrytpionType()
- Specified by:
getEncrytpionType
in interfaceIMailServerData
-
isAllowCustomSenderAddress
public boolean isAllowCustomSenderAddress()
- Specified by:
isAllowCustomSenderAddress
in interfaceIMailServerData
- Returns:
- Whether this mail server allows a custom sender address. If not, the
IMailServerData.getSenderAddress()
must be used.
-
isAllowUtf8
public boolean isAllowUtf8()
- Specified by:
isAllowUtf8
in interfaceIMailServerData
-
getAuthAttributes
public Map<String,String> getAuthAttributes()
- Specified by:
getAuthAttributes
in interfaceIMailServerData
-
-