public class MailSettings extends Object implements Serializable
| Constructor and Description |
|---|
MailSettings()
Initializes an instance of this class.
|
MailSettings(boolean serviceEnabled,
String uri,
String from,
String to,
String notificationLevel)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFrom()
Returns the from.
|
String |
getNotificationLevel()
Returns the notificationLevel.
|
int |
getNotificationSeverity()
Returns the notification severity.
|
Map<String,String> |
getOptions() |
String |
getPassword() |
int |
getPort() |
String |
getSmtpHost() |
String |
getTo()
Returns the to.
|
String |
getUri()
Returns the mail server connection URI.
|
String |
getUser() |
boolean |
isConfigurationValid()
Returns the configugationValid.
|
boolean |
isServiceActivated()
Returns the serviceEnabled.
|
boolean |
isWorkflowNotificationsDisabled()
Returns the value of the flag for workflow tasks e-mail notifications.
|
void |
setConfigurationValid(boolean configugationValid)
Sets the value of configugationValid.
|
void |
setFrom(String from)
Sets the value of from.
|
void |
setNotificationLevel(String notificationLevel)
Sets the value of notificationLevel.
|
void |
setServiceActivated(boolean serviceActivated)
Sets the value of serviceActivated.
|
void |
setTo(String to)
Sets the value of to.
|
void |
setUri(String uri)
Sets the value of uri.
|
void |
setWorkflowNotificationsDisabled(boolean workflowNotificationsDisabled)
Updates the flag for disabling e-mail notifications for workflow tasks.
|
String |
toString() |
public MailSettings()
public MailSettings(boolean serviceEnabled,
String uri,
String from,
String to,
String notificationLevel)
serviceEnabled - is service enableduri - the mail server connection URIfrom - sender addressto - recipient addressnotificationLevel - event notification levelpublic String getFrom()
public String getNotificationLevel()
public int getNotificationSeverity()
public String getTo()
public String getUri()
public boolean isConfigurationValid()
public boolean isServiceActivated()
public void setConfigurationValid(boolean configugationValid)
configugationValid - the configugationValid to setpublic void setFrom(String from)
from - the from to setpublic void setNotificationLevel(String notificationLevel)
notificationLevel - the notificationLevel to setpublic void setServiceActivated(boolean serviceActivated)
serviceActivated - is the service activatedpublic void setTo(String to)
to - the to to setpublic void setUri(String uri)
uri - the connection URI to setpublic String getUser()
public String getPassword()
public int getPort()
public String getSmtpHost()
public boolean isWorkflowNotificationsDisabled()
true if the e-mail notifications for workflow tasks are globally enabled; false if they are
disabled globallypublic void setWorkflowNotificationsDisabled(boolean workflowNotificationsDisabled)
workflowNotificationsDisabled - true to disable workflow task notifications; false to enable itCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.