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

Quick Search    Search Deep

com.dghda.kent.actions
Class EmailAction  view EmailAction download EmailAction.java

java.lang.Object
  extended bycom.dghda.module.BaseModule
      extended bycom.dghda.kent.BaseKentModule
          extended bycom.dghda.kent.actions.EmailAction
All Implemented Interfaces:
com.dghda.kent.KentModule, com.dghda.module.Module, com.dghda.kent.ReportAction

public class EmailAction
extends com.dghda.kent.BaseKentModule
implements com.dghda.kent.ReportAction


Nested Class Summary
private static class EmailAction.BufferedDataSource
           
 
Nested classes inherited from class com.dghda.kent.ReportAction
com.dghda.kent.ReportAction.ActionResult
 
Nested classes inherited from class com.dghda.module.Module
com.dghda.module.Module.ModuleVersion
 
Field Summary
static java.lang.String FORMAT_ID
           
static java.lang.String RECIPIENTS
           
static java.lang.String REPORT_ID
           
 
Fields inherited from class com.dghda.kent.BaseKentModule
 
Fields inherited from class com.dghda.module.BaseModule
 
Fields inherited from interface com.dghda.kent.KentModule
ACTION_ID, AUTHENTICATED_USER
 
Constructor Summary
EmailAction(com.dghda.kent.ReportEngine engine)
           
 
Method Summary
protected  javax.mail.internet.MimeMessage constructMessage(java.lang.String title, java.lang.String addresses)
          Create an email message to the given address with the given subject.
 java.lang.String getConfigurationOptions(java.util.Properties config)
          Return the email delivery parameters.
 com.dghda.kent.ReportAction.ActionResult performAction(java.lang.String template, java.lang.String data, java.util.Properties config)
          Sends the given report to the specified email address(es).
 
Methods inherited from class com.dghda.kent.BaseKentModule
getReportEngine
 
Methods inherited from class com.dghda.module.BaseModule
getDescription, getID, getName, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.dghda.module.Module
getDescription, getID, getName, getVersion
 

Field Detail

REPORT_ID

public static final java.lang.String REPORT_ID
See Also:
Constant Field Values

FORMAT_ID

public static final java.lang.String FORMAT_ID
See Also:
Constant Field Values

RECIPIENTS

public static final java.lang.String RECIPIENTS
See Also:
Constant Field Values
Constructor Detail

EmailAction

public EmailAction(com.dghda.kent.ReportEngine engine)
Method Detail

getConfigurationOptions

public java.lang.String getConfigurationOptions(java.util.Properties config)
Return the email delivery parameters. These include the destination(s) to send the email, and the format to send the report in.

Specified by:
getConfigurationOptions in interface com.dghda.kent.KentModule

performAction

public com.dghda.kent.ReportAction.ActionResult performAction(java.lang.String template,
                                                              java.lang.String data,
                                                              java.util.Properties config)
Sends the given report to the specified email address(es).

Specified by:
performAction in interface com.dghda.kent.ReportAction

constructMessage

protected javax.mail.internet.MimeMessage constructMessage(java.lang.String title,
                                                           java.lang.String addresses)
                                                    throws javax.mail.MessagingException
Create an email message to the given address with the given subject.