org.crsh.mail
Class MailPlugin

java.lang.Object
  extended by org.crsh.plugin.CRaSHPlugin<MailPlugin>
      extended by org.crsh.mail.MailPlugin

public class MailPlugin
extends CRaSHPlugin<MailPlugin>

The mail plugin integrates JavaMail for sending commands.

Author:
Julien Viet

Field Summary
static PropertyDescriptor<Boolean> DEBUG
          .
static PropertyDescriptor<String> SMTP_FROM
          .
static PropertyDescriptor<String> SMTP_HOST
          .
static PropertyDescriptor<String> SMTP_PASSWORD
          .
static PropertyDescriptor<Integer> SMTP_PORT
          .
static PropertyDescriptor<SmtpSecure> SMTP_SECURE
          .
static PropertyDescriptor<String> SMTP_USERNAME
          .
 
Fields inherited from class org.crsh.plugin.CRaSHPlugin
CONSTRUCTED, FAILED, INITIALIZED, INITIALIZING, log
 
Constructor Summary
MailPlugin()
           
 
Method Summary
protected  Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
           
 MailPlugin getImplementation()
           
 void init()
           
 Future<Boolean> send(Iterable<String> recipients, String subject, Object body, String type, DataSource... attachments)
           
 Future<Boolean> send(Iterable<String> recipients, String subject, String body, DataSource... attachments)
           
 
Methods inherited from class org.crsh.plugin.CRaSHPlugin
destroy, getConfigurationCapabilities, getContext, getStatus, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SMTP_HOST

public static PropertyDescriptor<String> SMTP_HOST
.


SMTP_PORT

public static PropertyDescriptor<Integer> SMTP_PORT
.


SMTP_SECURE

public static PropertyDescriptor<SmtpSecure> SMTP_SECURE
.


SMTP_USERNAME

public static PropertyDescriptor<String> SMTP_USERNAME
.


SMTP_PASSWORD

public static PropertyDescriptor<String> SMTP_PASSWORD
.


SMTP_FROM

public static PropertyDescriptor<String> SMTP_FROM
.


DEBUG

public static PropertyDescriptor<Boolean> DEBUG
.

Constructor Detail

MailPlugin

public MailPlugin()
Method Detail

createConfigurationCapabilities

protected Iterable<PropertyDescriptor<?>> createConfigurationCapabilities()
Overrides:
createConfigurationCapabilities in class CRaSHPlugin<MailPlugin>

getImplementation

public MailPlugin getImplementation()
Specified by:
getImplementation in class CRaSHPlugin<MailPlugin>

init

public void init()
Overrides:
init in class CRaSHPlugin<MailPlugin>

send

public Future<Boolean> send(Iterable<String> recipients,
                            String subject,
                            String body,
                            DataSource... attachments)
                     throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

send

public Future<Boolean> send(Iterable<String> recipients,
                            String subject,
                            Object body,
                            String type,
                            DataSource... attachments)
                     throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException


Copyright © 2015 eXo Platform SAS. All Rights Reserved.