@DisallowConcurrentExecution public class MailFilterJob extends AbstractFaxToMailJob
| Modifier and Type | Field and Description |
|---|---|
protected FaxToMailApplicationContext |
applicationContext |
protected ClientService |
clientService |
protected FaxToMailConfiguration |
config |
protected ConfigurationService |
configurationService |
protected DecoratorService |
decoratorService |
protected EmailService |
emailService |
protected MailFolderService |
mailFolderService |
APPLICATION_CONTEXT| Constructor and Description |
|---|
MailFilterJob() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkEmails(EmailAccount account)
Checks the emails of the account
|
protected void |
checkEmailsOfFolder(EmailAccount emailAccount,
javax.mail.Folder folder)
Check the emails of teh folder, create the emails in the database and delete the email in the folder.
|
protected void |
close(javax.mail.Folder folder) |
protected void |
deleteMail(javax.mail.Message message)
Supprime le mail sur le serveur (si nécéssaire).
|
void |
execute(org.quartz.JobExecutionContext jobExecutionContext) |
getApplicationContextprotected FaxToMailApplicationContext applicationContext
protected FaxToMailConfiguration config
protected ConfigurationService configurationService
protected EmailService emailService
protected MailFolderService mailFolderService
protected ClientService clientService
protected DecoratorService decoratorService
public void execute(org.quartz.JobExecutionContext jobExecutionContext)
throws org.quartz.JobExecutionException
org.quartz.JobExecutionExceptionpublic void checkEmails(EmailAccount account)
account - protected void close(javax.mail.Folder folder)
protected void checkEmailsOfFolder(EmailAccount emailAccount, javax.mail.Folder folder)
emailAccount - email account currently checkedfolder - the folder to checkprotected void deleteMail(javax.mail.Message message)
throws javax.mail.MessagingException
message - message to deletejavax.mail.MessagingExceptionCopyright © 2014–2016 CodeLutin. All rights reserved.