|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jurismarches.vradi.services.managers.MailingManager
public class MailingManager
Mailing manager. Handle:
| Field Summary | |
|---|---|
protected org.nuiton.util.ApplicationConfig |
config
|
protected static String |
SSL_FACTORY
|
protected org.nuiton.wikitty.WikittyProxy |
wikittyProxy
|
| Constructor Summary | |
|---|---|
MailingManager(org.nuiton.util.ApplicationConfig config,
org.nuiton.wikitty.WikittyProxy wikittyProxy)
|
|
| Method Summary | |
|---|---|
File |
getGeneratedPdfFile(Form form)
Return generated pdf file path containing form wikitty id and form version. |
protected String |
getHeaderValueInContent(String headerName,
String content)
Find a header definition in mail content. |
protected static Sending |
getSendingByMessageID(String messageID,
org.nuiton.wikitty.WikittyProxy proxy)
Find first sending entity with given messageID. |
protected String |
getStreamContent(InputStream inputStream)
Convert an input stream to String. |
String |
postMail(String recipient,
String subject,
String message,
List<Form> forms,
boolean receptionProof)
Sends an email to the specified recipient with the specified subject and the specified message and the specified forms PDF. |
void |
receiveMails()
Receives the emails and check if some are error emails or reception proofs and treat them in consequence. |
protected void |
setValidEmailForUser(Sending sending)
Set User.FQ_FIELD_USER_VALIDEMAIL attribute for User associated with sending. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String SSL_FACTORY
protected org.nuiton.util.ApplicationConfig config
protected org.nuiton.wikitty.WikittyProxy wikittyProxy
| Constructor Detail |
|---|
public MailingManager(org.nuiton.util.ApplicationConfig config,
org.nuiton.wikitty.WikittyProxy wikittyProxy)
| Method Detail |
|---|
public String postMail(String recipient,
String subject,
String message,
List<Form> forms,
boolean receptionProof)
throws VradiException
recipient - the email address of the recipientsubject - mail subjectmessage - mail contentforms - the list of forms to add to the mailreceptionProof - if true, ask for a reception proof
VradiException
public void receiveMails()
throws VradiException
VradiExceptionprotected void setValidEmailForUser(Sending sending)
User.FQ_FIELD_USER_VALIDEMAIL attribute for User associated with sending.
sending -
protected String getStreamContent(InputStream inputStream)
throws IOException
inputStream -
IOException
protected String getHeaderValueInContent(String headerName,
String content)
Original-Message-ID: <1833582695.1.1272991628810.JavaMail.chatellier@genux> Diagnostic-Code: smtp; 550 5.1.1: Recipient address rejected: User unknown in local recipient table Message-ID: <804992706.5.1272991629788.JavaMail.chatellier@genux>
headerName - content -
protected static Sending getSendingByMessageID(String messageID,
org.nuiton.wikitty.WikittyProxy proxy)
messageID - message id to find sendingproxy - wikitty proxy
Sending or null if none foundpublic File getGeneratedPdfFile(Form form)
form - form
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||