com.irisel.oms.mailer
Class MailManager

java.lang.Object
  extended by com.irisel.oms.mailer.MailManager

public class MailManager
extends java.lang.Object

The MailManager class encapsulates the behaviors to send documents to users. It relies on JEE server managed Mail service. It relies also in the database, since the documents templates are taken from there.

Author:
Administrador

Constructor Summary
MailManager()
           
 
Method Summary
static MailManager getInstance()
           
 void sendDocumentJavaMail(java.lang.String email, java.lang.String documentName, java.lang.String lang, java.util.Map values)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailManager

public MailManager()
            throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

sendDocumentJavaMail

public void sendDocumentJavaMail(java.lang.String email,
                                 java.lang.String documentName,
                                 java.lang.String lang,
                                 java.util.Map values)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getInstance

public static MailManager getInstance()
                               throws java.lang.Exception
Throws:
java.lang.Exception