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_IDFields 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.intbooleanvoidsetAttachmentName(String attachmentName) voidsetBccAddresses(List<String> bccAddresses) voidvoidsetCcAddresses(List<String> ccAddresses) voidsetFormat(ReportFormat format) voidsetFromAddress(String fromAddress) voidsetReplyToAddresses(List<String> replyToAddress) Sets the replyTo Address List to the supplied List.voidsetReplyToUserRoles(List<String> userRoles) Sets the replyToAddress List to the supplied List.voidsetReplyToUserSource(String userSource) Sets the user source that will be used for the replyTo field on email notifications.voidsetRetryCount(int retryCount) voidsetSmtpServerName(String smtpServerName) voidsetSubject(String subject) voidsetToAddresses(List<String> toAddresses) voidsetUserRoles(List<String> userRoles) voidsetUserSource(String userSource) voidsetUseUserRoles(boolean useUserRoles) Methods inherited from class com.inductiveautomation.reporting.common.resource.distribution.AbstractReportActionConfig
getAvailableFormatsMethods inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeable
addChangeListener, fireStateChanged, getChangeListeners, removeChangeListener
-
Constructor Details
-
EmailActionConfig
public EmailActionConfig()
-
-
Method Details
-
getDistributionTypeId
- Specified by:
getDistributionTypeIdin classAbstractReportActionConfig- Returns:
- The string that uniquely identifies this config. Be sure the string is defined as public static final in AbstractReportActionConfig
-
getName
- Specified by:
getNamein 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
-