public class Emailer extends SimpleManipulator
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
UPDATE_DISPLAYED_VALUE, VALUE_INPUT
customTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebase
autoSuspend, AUTOSUSPEND_DEFAULT, AUTOSUSPEND_NEVER, AUTOSUSPEND_NO_LISTENERS, AUTOSUSPEND_NO_LISTENERS_AND_NO_SOURCES, colorHi, colorHiHi, colorLo, colorLoLo, colorNormal, connectors, consoleLogger, currentColor, currentValue, debugLevel, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo
Constructor and Description |
---|
Emailer()
Generic constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDateFormatter()
This is the date formatter used (by java.text.SimpleDataFormatter) to
display the date (if setDate is true).
|
java.lang.String |
getFrom()
Gets the address to send we sent from.
|
java.lang.String |
getHost()
This is the SMTP Host name.
|
java.lang.String |
getMessage()
This is a string thats added to each email message.
|
java.lang.String |
getPassword() |
int |
getPort()
Returns the SMTP port;
|
boolean |
getSendDate()
This is if we should send the date.
|
boolean |
getSendProperties()
This is if we should send the values properties.
|
boolean |
getSendTag()
This is if we should send the tag name.
|
boolean |
getSendValue()
This is if we should send the values.
|
int |
getStaticLocationFor(java.lang.String name)
This is used for StaticMethodListener interface.
|
java.lang.String |
getSubject()
This is the subject line to send.
|
java.lang.String |
getTo()
This is the address to send to.
|
java.lang.String |
getUserName() |
boolean |
isEnabled() |
boolean |
isMailAsAttachment() |
boolean |
isStarttls() |
void |
messageString(java.lang.String msg)
Logs informational/debug messages.
|
void |
setDateFormatter(java.lang.String newValue)
This is the date formatter used (by java.text.SimpleDataFormatter) to
display the date (if setDate is true).
|
void |
setEnabled(boolean enabled) |
void |
setFrom(java.lang.String newValue)
This is the address to send we sent from.
|
void |
setHost(java.lang.String newValue)
This is the SMTP Host name.
|
void |
setMailAsAttachment(boolean mailAsAttachment) |
void |
setMessage(java.lang.String newValue)
This is a string thats added to each email message.
|
void |
setPassword(java.lang.String password) |
void |
setPort(int port)
Sets the port for the SMTP server.
|
void |
setSendDate(boolean newValue)
This is if we should send the date.
|
void |
setSendProperties(boolean newValue)
This is if we should send the values properties.
|
void |
setSendTag(boolean newValue)
This is if we should send the tag name.
|
void |
setSendValue(boolean newValue)
This is if we should send the values.
|
void |
setStarttls(boolean starttls) |
void |
setSubject(java.lang.String newValue)
This is the subject line to send.
|
void |
setTo(java.lang.String newValue)
This is the address to send to.
|
void |
setUserName(java.lang.String userName) |
void |
valueChanged(int loc,
ValueChangedEvent e)
This is used for StaticMethodListener interface.
|
void |
valueInput(ValueChangedEvent e)
This is where all events come in.
|
getDefaultQualityForLocation
getInPortNames, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString
addConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, clientResponse, destroy, determineSuspendedStatus, getClassLicenseManager, getContainer, getCustomTimer, getDataSource, getDataSources, getDisplayName, getExportCriteria, getName, getOutPortNames, getPullFromServers, getPushData, getPushName, getPushToServers, getServerListData, getTimebase, getTrace, isActive, isScreenLocal, refreshCurrentValue, removeConnector, removeDataSource, removePropertyChangeListener, removeValueChangedListener, removeVetoableChangeListener, requestSyncWrite, setAutoSuspend, setClassLicenseManager, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setName, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTimebase, setTrace, setValueObject, start, stop, tick, VIBEvent
addVIBEventListener, checkScript, executeInScriptInternal, executeScript, executeScriptInternal, executeScriptInternal, getAutoSuspend, getBooleanValue, getBoolValue, getColorHi, getColorHiHi, getColorLo, getColorLoLo, getColorNormal, getConnectors, getConsoleLogger, getCurrentColor, getDataSourceName, getDoubleValue, getFloatValue, getGWTLogger, getIncomingValueObject, getInScript, getIntValue, getLongValue, getParent, getPopupLogger, getScript, getSendColors, getSources, getStringValue, getSyncWriteTimeout, getTimedPopupLogger, getTraceLogger, getValueHi, getValueHiHi, getValueLo, getValueLoLo, getValueObject, init, isHardSuspended, isRunning, isSendOnlyChangedValuesDefault, isSuspended, logException, logGWT, logGWT, logMessage, logTrace, n2sortConnectors, popupMessage, post, removeConnector, removeVIBEventListener, replaceConnectors, scriptExtensionSubstition, setColorHi, setColorHiHi, setColorLo, setColorLoLo, setColorNormal, setConsoleLogger, setGWTLogger, setHardSuspended, setInScript, setParent, setPopupLogger, setScript, setSendColors, setSendOnlyChangedValuesDefault, setSyncWriteTimeout, setTimedPopupLogger, setTraceLogger, setValueHi, setValueHiHi, setValueLo, setValueLoLo, updateColor, updateListeners, updateListeners, updateListeners, whoAmI
public static final java.lang.String cvsRev
public java.lang.String getDateFormatter()
setDateFormatter
,
setSendDate
public java.lang.String getFrom()
setFrom
public java.lang.String getHost()
setHost
public java.lang.String getMessage()
setMessage
public java.lang.String getPassword()
public int getPort()
public boolean getSendDate()
setSendDate
public boolean getSendProperties()
getSendProperties
public boolean getSendTag()
setSendTag
public boolean getSendValue()
setSendProperties
public int getStaticLocationFor(java.lang.String name) throws BadParameterException
getStaticLocationFor
in class Manipulator
BadParameterException
public java.lang.String getSubject()
setSubject
public java.lang.String getTo()
setTo
public java.lang.String getUserName()
public boolean isEnabled()
public boolean isMailAsAttachment()
public boolean isStarttls()
public void messageString(java.lang.String msg)
public void setDateFormatter(java.lang.String newValue)
getDateFormatter
,
setSendDate
public void setEnabled(boolean enabled)
enabled
- the enabled to setpublic void setFrom(java.lang.String newValue)
getFrom
public void setHost(java.lang.String newValue)
getHost
public void setMailAsAttachment(boolean mailAsAttachment)
mailAsAttachment
- the mailAsAttachment to setpublic void setMessage(java.lang.String newValue)
getMessage
public void setPassword(java.lang.String password)
password
- the password to setpublic void setPort(int port)
port
- the SMTP portpublic void setSendDate(boolean newValue)
getSendDate
public void setSendProperties(boolean newValue)
getSendProperties
public void setSendTag(boolean newValue)
getSendTag
public void setSendValue(boolean newValue)
getSendProperties
public void setStarttls(boolean starttls)
starttls
- the starttls to setpublic void setSubject(java.lang.String newValue)
getSubject
public void setTo(java.lang.String newValue)
getTo
public void setUserName(java.lang.String userName)
userName
- the userName to setpublic void valueChanged(int loc, ValueChangedEvent e) throws VIBUpdateFailedException, BadParameterException
valueChanged
in class Manipulator
VIBUpdateFailedException
BadParameterException
public void valueInput(ValueChangedEvent e) throws VIBUpdateFailedException
valueInput
in class Manipulator
e
- The ValueChangedEvent that the bean or data source has sent.VIBUpdateFailedException
sendMessage
,
shouldWeEmail
Copyright © 1999-2021 ErgoTech Systems, Inc. All Rights Reserved.