Class EmailActionConfig
java.lang.Object
com.inductiveautomation.ignition.common.util.AbstractChangeable
com.inductiveautomation.reporting.common.resource.distribution.AbstractReportActionConfig
com.inductiveautomation.reporting.common.resource.distribution.EmailActionConfig
- All Implemented Interfaces:
Changeable
,Serializable
Filename: EmailActionConfig.java
Created on Feb 09, 2015
Author: Kathy Applebaum
Copyright Inductive Automation 2015
Project: Reporting
- See Also:
-
Field Summary
Fields inherited from class com.inductiveautomation.reporting.common.resource.distribution.AbstractReportActionConfig
DEFAULT_FILE_NAME, DEFAULT_FOLDER_PATH, EMAIL_ID, FTP_ID, PRINT_ID, RUNSCRIPT_ID, SAVE_ID
Fields inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeable
changeEvent, listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
getName()
Returns a List of the replyTo Addresses.Returns a List of the user roles used in the replyTo field of an email notification.Returns the user source that will be used for the replyTo field on email notifications.int
boolean
void
setAttachmentName
(String attachmentName) void
setBccAddresses
(List<String> bccAddresses) void
void
setCcAddresses
(List<String> ccAddresses) void
setFormat
(ReportFormat format) void
setFromAddress
(String fromAddress) void
setReplyToAddresses
(List<String> replyToAddress) Sets the replyTo Address List to the supplied List.void
setReplyToUserRoles
(List<String> userRoles) Sets the replyToAddress List to the supplied List.void
setReplyToUserSource
(String userSource) Sets the user source that will be used for the replyTo field on email notifications.void
setRetryCount
(int retryCount) void
setSmtpServerName
(String smtpServerName) void
setSubject
(String subject) void
setToAddresses
(List<String> toAddresses) void
setUserRoles
(List<String> userRoles) void
setUserSource
(String userSource) void
setUseUserRoles
(boolean useUserRoles) Methods inherited from class com.inductiveautomation.reporting.common.resource.distribution.AbstractReportActionConfig
getAvailableFormats
Methods inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeable
addChangeListener, fireStateChanged, getChangeListeners, removeChangeListener
-
Constructor Details
-
EmailActionConfig
public EmailActionConfig()
-
-
Method Details
-
getDistributionTypeId
- Specified by:
getDistributionTypeId
in classAbstractReportActionConfig
- Returns:
- The string that uniquely identifies this config. Be sure the string is defined as public static final in AbstractReportActionConfig
-
getName
- Specified by:
getName
in classAbstractReportActionConfig
- Returns:
- Name of the config
-
getFormat
-
setFormat
-
getSmtpServerName
-
setSmtpServerName
-
getToAddresses
-
setToAddresses
-
getCcAddresses
-
setCcAddresses
-
getBccAddresses
-
setBccAddresses
-
getFromAddress
-
setFromAddress
-
getReplyToAddresses
Returns a List of the replyTo Addresses.- Returns:
- A List of the replyTo Addresses. If the list is never set, an empty list will be returned
-
setReplyToAddresses
Sets the replyTo Address List to the supplied List.- Parameters:
replyToAddress
- a List of replyTo Email addresses. If null, no changes will be made
-
getSubject
-
setSubject
-
getBody
-
setBody
-
getAttachmentName
-
setAttachmentName
-
getRetryCount
public int getRetryCount() -
setRetryCount
public void setRetryCount(int retryCount) -
isUseUserRoles
public boolean isUseUserRoles() -
setUseUserRoles
public void setUseUserRoles(boolean useUserRoles) -
getUserSource
-
setUserSource
-
getUserRoles
-
setUserRoles
-
getReplyToUserSource
Returns the user source that will be used for the replyTo field on email notifications.- Returns:
- the user source used for replyTo email notifications. If never set, an empty string will be returned
-
setReplyToUserSource
Sets the user source that will be used for the replyTo field on email notifications.- Parameters:
userSource
- The user source to use for replyTo addresses. If null, user source will not be modified
-
getReplyToUserRoles
Returns a List of the user roles used in the replyTo field of an email notification.- Returns:
- A List of the user roles used for replyTo Addresses. If the list is never set, an empty list will be returned
-
setReplyToUserRoles
Sets the replyToAddress List to the supplied List.- Parameters:
userRoles
- a List of replyTo Email addresses. If null, no changes will be made
-