Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.altara.mars.plugin.mailnotify
Class MailNotifyPlugin  view MailNotifyPlugin download MailNotifyPlugin.java

java.lang.Object
  extended byorg.altara.mars.plugin.mailnotify.MailNotifyPlugin
All Implemented Interfaces:
org.altara.mars.engine.NotificationListener, org.altara.mars.plugin.Plugin

public class MailNotifyPlugin
extends java.lang.Object
implements org.altara.mars.plugin.Plugin, org.altara.mars.engine.NotificationListener


Nested Class Summary
private  class MailNotifyPlugin.MailNotifyEditor
           
 
Field Summary
private  SimpleSmtpClient client
           
private static java.text.DateFormat df
           
private  boolean enabled
           
private  java.lang.String fromAddress
           
private  java.lang.String mailAddress
           
private  java.net.InetAddress mailServer
           
private  boolean notifyBackUp
           
 
Constructor Summary
MailNotifyPlugin()
           
 
Method Summary
 org.jdom.Element getConfig()
           
 java.lang.String getDisplayName()
           
 org.altara.mars.swingui.Editor getEditor()
           
 java.lang.String getElementName()
           
private static java.lang.String getFirstAddress(java.lang.String addressList)
           
 void notifyStatusChanged(org.altara.mars.engine.StatusChangeEvent sce)
           
private  void sendMessage(org.altara.mars.engine.StatusChangeEvent sce, java.lang.String subjdesc)
           
 void setConfig(org.jdom.Element in)
           
private  void setServer(java.net.InetAddress mailServer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

df

private static final java.text.DateFormat df

mailServer

private java.net.InetAddress mailServer

mailAddress

private java.lang.String mailAddress

fromAddress

private java.lang.String fromAddress

enabled

private boolean enabled

notifyBackUp

private boolean notifyBackUp

client

private SimpleSmtpClient client
Constructor Detail

MailNotifyPlugin

public MailNotifyPlugin()
Method Detail

getFirstAddress

private static java.lang.String getFirstAddress(java.lang.String addressList)

getElementName

public java.lang.String getElementName()
Specified by:
getElementName in interface org.altara.mars.plugin.Plugin

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface org.altara.mars.plugin.Plugin

notifyStatusChanged

public void notifyStatusChanged(org.altara.mars.engine.StatusChangeEvent sce)
Specified by:
notifyStatusChanged in interface org.altara.mars.engine.NotificationListener

sendMessage

private void sendMessage(org.altara.mars.engine.StatusChangeEvent sce,
                         java.lang.String subjdesc)

setServer

private void setServer(java.net.InetAddress mailServer)

getConfig

public org.jdom.Element getConfig()
Specified by:
getConfig in interface org.altara.mars.plugin.Plugin

setConfig

public void setConfig(org.jdom.Element in)
               throws java.net.UnknownHostException,
                      org.altara.mars.InvalidDocumentException
Specified by:
setConfig in interface org.altara.mars.plugin.Plugin

getEditor

public org.altara.mars.swingui.Editor getEditor()
Specified by:
getEditor in interface org.altara.mars.plugin.Plugin