it.sistematica.isharedoc.service.mail
Interface MessageboxService

All Known Implementing Classes:
MessageboxServiceImpl

public interface MessageboxService

The Interface MessageboxService.


Nested Class Summary
static class MessageboxService.PecAttachmentsSizeLimitExceededException
          The Class PecAttachmentsSizeLimitExceededException.
static class MessageboxService.PecRecipientsLimitExceededException
          The Class PecRecipientsLimitExceededException.
 
Field Summary
static java.lang.String ACCETTAZIONE
          The Constant ACCETTAZIONE.
static java.lang.String AGGIORNAMENTO_CONFERMA
          The Constant AGGIORNAMENTO_CONFERMA.
static java.lang.String ANNULLAMENTO_PROTOCOLLAZIONE
          The Constant ANNULLAMENTO_PROTOCOLLAZIONE.
static java.lang.String ANOMALIA
          The Constant ANOMALIA.
static java.lang.String AVVENUTA_CONSEGNA
          The Constant AVVENUTA_CONSEGNA.
static java.lang.String CONFERMA_RICEZIONE
          The Constant CONFERMA_RICEZIONE.
static java.lang.String ERRORE_CONSEGNA
          The Constant ERRORE_CONSEGNA.
static java.lang.String ISHAREDOC_ERROR_WEBMAIL_FOLDER
          The Constant ISHAREDOC_ERROR_WEBMAIL_FOLDER.
static java.lang.String ISHAREDOC_PROCESSED_WEBMAIL_FOLDER
          The Constant ISHAREDOC_PROCESSED_WEBMAIL_FOLDER.
static java.lang.String ITEM_INSTANCE_PREFIX
          The Constant ITEM_INSTANCE_PREFIX.
static java.lang.String MAIL_EML
          The Constant MAIL_EML.
static java.lang.String MISSING_XML
          The Constant MISSING_XML.
static java.lang.String NON_ACCETTAZIONE
          The Constant NON_ACCETTAZIONE.
static java.lang.String NOTIFICA_ECCEZIONE
          The Constant NOTIFICA_ECCEZIONE.
static java.lang.String PEC_EML
          The Constant PEC_EML.
static java.lang.String POSTA_CERTIFICATA
          The Constant POSTA_CERTIFICATA.
static java.lang.String PREAVVISO_ERRORE_CONSEGNA
          The Constant PREAVVISO_ERRORE_CONSEGNA.
static java.lang.String PROCESS_INSTANCE_PREFIX
          The Constant PROCESS_INSTANCE_PREFIX.
static java.lang.String SEGNATURA
          The Constant SEGNATURA.
static char SEPARATOR_PREFIX
          The Constant SEPARATOR_PREFIX.
static java.lang.String X_RICEVUTA
          The Constant X_RICEVUTA.
static java.lang.String X_Riferimento_Message_ID
          The Constant X_Riferimento_Message_ID.
static java.lang.String X_TRASPORTO
          The Constant X_TRASPORTO.
static java.lang.String XML_MULTIPLI
          The Constant XML_MULTIPLI.
 
Method Summary
 void archive()
          Archive.
 void archive(java.util.Date fromDate, java.util.Date toDate)
          Archive.
 void archive(MessageBox messageBox, java.util.Date fromDate, java.util.Date toDate)
          Archive.
 void archiveInstance(ItemInstance instance)
          Archive instance.
 void associateServiceInstance(MessageInstance message, MessageServiceInstance messageService)
          Associate service instance.
 void checkPECSendLimits(MessageInstance messageInstance)
          Check pec send limits.
 MessageBox findMessageBoxById(java.lang.Long id)
          Find message box by id.
 File getInstanceAttachmentFolder(MessageInstance instance)
          Gets the instance attachment folder.
 File getInstanceAttachmentFolderMonth(MessageInstance instance)
          Gets the instance attachment folder month.
 java.util.List<MessageBox> getMessageBoxes(boolean filterAccessibleMe, boolean filterShowInAccounts)
          Gets the message boxes.
 java.util.List<MessageBox> getMessageBoxesCreateMessage()
          Gets the message boxes create message.
 java.util.List<MessageBox> getMessageBoxesCreateMessage(Storyboard storyboard)
          Gets the message boxes create message.
 java.util.List<MessageInstance.MessageType> getMessageTypeCreateMessage(MessageBox mbox)
          Gets the message type create message.
 java.util.List<Organization> getMyOrganizationsOnMessageBox(MessageBox mbox)
          Gets the my organizations on message box.
 void loopPendingMessages(java.lang.Long partitionId, java.lang.Long messageBoxId)
          Loop pending messages.
 void MIME2MessageInstance(javax.mail.Message message, MessageInstance instance, boolean getOriginalMessage, java.util.Map<java.lang.String,java.lang.Object> variables)
          MIM e2 message instance.
 void moveAllRecipientsToCcn(MessageInstance messageInstance)
          Move all recipients to ccn.
 void moveMessage(MessageInstance message, MessageBox mbox)
          Move message.
 void moveMessages(MessageBox fromMbox, MessageBox toMbox)
          Move messages.
 void processMailboxRulesAllPartitions()
          Process mailbox rules all partitions.
 void processPendingMessagesAllPartitions()
          Process pending messages all partitions.
 void rebuildSpecialFoldersPermissions(MessageBox mbox)
          Rebuild special folders permissions.
 void repair()
          Repair.
 void repair(MessageBox mbox)
          Repair.
 void repairDirectoryMessages()
          Repair directory messages.
 void repairDirectoryMessages(MessageBox mbox)
          Repair directory messages.
 void save(MessageBox mbox)
          Save.
 void saveAndApplyRules(MessageInstance messageInstance)
          Save and apply rules.
 void saveMessage(javax.mail.Message message, java.lang.Long messageBoxId)
          Save message.
 void scheduleSendMail(MessageInstance messageInstance, java.util.Date scheduleDate)
          Schedule send mail.
 void sendMail(MessageInstance messageInstance)
          Send mail.
 void sendMail(MessageInstance messageInstance, ContactInstance contactInstance)
          Send mail.
 void sendMailAnnullamento(MessageInstance messageInstance, java.lang.String motivo, java.lang.String provvedimento)
          Send mail annullamento.
 void sendMailConfermaRicezione(MessageInstance messageInstance, java.lang.String protocolNumber, java.util.Date protocolDate)
          Send mail conferma ricezione.
 void sendMailNotificaEccezione(MessageInstance messageInstance, java.lang.String motivo)
          Send mail notifica eccezione.
 void setDeliveryInfo(MessageInstance messageInstance, it.neverworks.mail.helper.MessageHelper message)
          Sets the delivery info.
 void setReplyMessage(MessageInstance replyMessage, MessageInstance repliedMessage)
          Sets the reply message.
 void validateDefaults(MessageBox mbox)
          Validate defaults.
 

Field Detail

MAIL_EML

static final java.lang.String MAIL_EML
The Constant MAIL_EML.

See Also:
Constant Field Values

PEC_EML

static final java.lang.String PEC_EML
The Constant PEC_EML.

See Also:
Constant Field Values

ISHAREDOC_PROCESSED_WEBMAIL_FOLDER

static final java.lang.String ISHAREDOC_PROCESSED_WEBMAIL_FOLDER
The Constant ISHAREDOC_PROCESSED_WEBMAIL_FOLDER. Nome cartella webmail per spostare i messaggi che sono stati scaricati correttamente

See Also:
Constant Field Values

ISHAREDOC_ERROR_WEBMAIL_FOLDER

static final java.lang.String ISHAREDOC_ERROR_WEBMAIL_FOLDER
The Constant ISHAREDOC_ERROR_WEBMAIL_FOLDER. Nome cartella webmail per spostare i messaggi che danno errore durante lo scarico

See Also:
Constant Field Values

X_Riferimento_Message_ID

static final java.lang.String X_Riferimento_Message_ID
The Constant X_Riferimento_Message_ID. Costanti per generare l'X-Riferimento-Message-ID

See Also:
Constant Field Values

ITEM_INSTANCE_PREFIX

static final java.lang.String ITEM_INSTANCE_PREFIX
The Constant ITEM_INSTANCE_PREFIX.

See Also:
Constant Field Values

PROCESS_INSTANCE_PREFIX

static final java.lang.String PROCESS_INSTANCE_PREFIX
The Constant PROCESS_INSTANCE_PREFIX.

See Also:
Constant Field Values

SEPARATOR_PREFIX

static final char SEPARATOR_PREFIX
The Constant SEPARATOR_PREFIX.

See Also:
Constant Field Values

X_TRASPORTO

static final java.lang.String X_TRASPORTO
The Constant X_TRASPORTO.

See Also:
Constant Field Values

POSTA_CERTIFICATA

static final java.lang.String POSTA_CERTIFICATA
The Constant POSTA_CERTIFICATA.

See Also:
Constant Field Values

ANOMALIA

static final java.lang.String ANOMALIA
The Constant ANOMALIA.

See Also:
Constant Field Values

X_RICEVUTA

static final java.lang.String X_RICEVUTA
The Constant X_RICEVUTA.

See Also:
Constant Field Values

ACCETTAZIONE

static final java.lang.String ACCETTAZIONE
The Constant ACCETTAZIONE.

See Also:
Constant Field Values

NON_ACCETTAZIONE

static final java.lang.String NON_ACCETTAZIONE
The Constant NON_ACCETTAZIONE.

See Also:
Constant Field Values

PREAVVISO_ERRORE_CONSEGNA

static final java.lang.String PREAVVISO_ERRORE_CONSEGNA
The Constant PREAVVISO_ERRORE_CONSEGNA.

See Also:
Constant Field Values

ERRORE_CONSEGNA

static final java.lang.String ERRORE_CONSEGNA
The Constant ERRORE_CONSEGNA.

See Also:
Constant Field Values

AVVENUTA_CONSEGNA

static final java.lang.String AVVENUTA_CONSEGNA
The Constant AVVENUTA_CONSEGNA.

See Also:
Constant Field Values

SEGNATURA

static final java.lang.String SEGNATURA
The Constant SEGNATURA.

See Also:
Constant Field Values

CONFERMA_RICEZIONE

static final java.lang.String CONFERMA_RICEZIONE
The Constant CONFERMA_RICEZIONE.

See Also:
Constant Field Values

NOTIFICA_ECCEZIONE

static final java.lang.String NOTIFICA_ECCEZIONE
The Constant NOTIFICA_ECCEZIONE.

See Also:
Constant Field Values

AGGIORNAMENTO_CONFERMA

static final java.lang.String AGGIORNAMENTO_CONFERMA
The Constant AGGIORNAMENTO_CONFERMA.

See Also:
Constant Field Values

ANNULLAMENTO_PROTOCOLLAZIONE

static final java.lang.String ANNULLAMENTO_PROTOCOLLAZIONE
The Constant ANNULLAMENTO_PROTOCOLLAZIONE.

See Also:
Constant Field Values

XML_MULTIPLI

static final java.lang.String XML_MULTIPLI
The Constant XML_MULTIPLI.

See Also:
Constant Field Values

MISSING_XML

static final java.lang.String MISSING_XML
The Constant MISSING_XML.

See Also:
Constant Field Values
Method Detail

save

void save(MessageBox mbox)
Save.

Parameters:
mbox - the mbox

validateDefaults

void validateDefaults(MessageBox mbox)
Validate defaults.

Parameters:
mbox - the mbox

repair

void repair()
Repair.


repair

void repair(MessageBox mbox)
Repair.

Parameters:
mbox - the mbox

repairDirectoryMessages

void repairDirectoryMessages()
Repair directory messages.


repairDirectoryMessages

void repairDirectoryMessages(MessageBox mbox)
Repair directory messages.

Parameters:
mbox - the mbox

rebuildSpecialFoldersPermissions

void rebuildSpecialFoldersPermissions(MessageBox mbox)
Rebuild special folders permissions.

Parameters:
mbox - the mbox

getMessageBoxes

java.util.List<MessageBox> getMessageBoxes(boolean filterAccessibleMe,
                                           boolean filterShowInAccounts)
Gets the message boxes.

Parameters:
filterAccessibleMe - the filter accessible me
filterShowInAccounts - the filter show in accounts
Returns:
the message boxes

getMessageBoxesCreateMessage

java.util.List<MessageBox> getMessageBoxesCreateMessage()
Gets the message boxes create message.

Returns:
the message boxes create message

getMessageBoxesCreateMessage

java.util.List<MessageBox> getMessageBoxesCreateMessage(Storyboard storyboard)
Gets the message boxes create message.

Parameters:
storyboard - the storyboard
Returns:
the message boxes create message

getMessageTypeCreateMessage

java.util.List<MessageInstance.MessageType> getMessageTypeCreateMessage(MessageBox mbox)
Gets the message type create message.

Parameters:
mbox - the mbox
Returns:
the message type create message

getMyOrganizationsOnMessageBox

java.util.List<Organization> getMyOrganizationsOnMessageBox(MessageBox mbox)
Gets the my organizations on message box.

Parameters:
mbox - the mbox
Returns:
the my organizations on message box

findMessageBoxById

MessageBox findMessageBoxById(java.lang.Long id)
Find message box by id.

Parameters:
id - the id
Returns:
the message box

moveMessage

void moveMessage(MessageInstance message,
                 MessageBox mbox)
Move message.

Parameters:
message - the message
mbox - the mbox

moveMessages

void moveMessages(MessageBox fromMbox,
                  MessageBox toMbox)
Move messages.

Parameters:
fromMbox - the from mbox
toMbox - the to mbox

setReplyMessage

void setReplyMessage(MessageInstance replyMessage,
                     MessageInstance repliedMessage)
Sets the reply message.

Parameters:
replyMessage - the reply message
repliedMessage - the replied message

associateServiceInstance

void associateServiceInstance(MessageInstance message,
                              MessageServiceInstance messageService)
Associate service instance.

Parameters:
message - the message
messageService - the message service

getInstanceAttachmentFolderMonth

File getInstanceAttachmentFolderMonth(MessageInstance instance)
Gets the instance attachment folder month.

Parameters:
instance - the instance
Returns:
the instance attachment folder month

getInstanceAttachmentFolder

File getInstanceAttachmentFolder(MessageInstance instance)
Gets the instance attachment folder.

Parameters:
instance - the instance
Returns:
the instance attachment folder

scheduleSendMail

void scheduleSendMail(MessageInstance messageInstance,
                      java.util.Date scheduleDate)
Schedule send mail.

Parameters:
messageInstance - the message instance
scheduleDate - the schedule date

sendMail

void sendMail(MessageInstance messageInstance)
              throws java.lang.Exception
Send mail.

Parameters:
messageInstance - the message instance
Throws:
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception

sendMail

void sendMail(MessageInstance messageInstance,
              ContactInstance contactInstance)
              throws java.lang.Exception
Send mail.

Parameters:
messageInstance - the message instance
contactInstance - the contact instance
Throws:
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception

sendMailConfermaRicezione

void sendMailConfermaRicezione(MessageInstance messageInstance,
                               java.lang.String protocolNumber,
                               java.util.Date protocolDate)
                               throws java.lang.Exception
Send mail conferma ricezione.

Parameters:
messageInstance - the message instance
protocolNumber - the protocol number
protocolDate - the protocol date
Throws:
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception

sendMailNotificaEccezione

void sendMailNotificaEccezione(MessageInstance messageInstance,
                               java.lang.String motivo)
                               throws java.lang.Exception
Send mail notifica eccezione.

Parameters:
messageInstance - the message instance
motivo - the motivo
Throws:
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception

sendMailAnnullamento

void sendMailAnnullamento(MessageInstance messageInstance,
                          java.lang.String motivo,
                          java.lang.String provvedimento)
                          throws java.lang.Exception
Send mail annullamento.

Parameters:
messageInstance - the message instance
motivo - the motivo
provvedimento - the provvedimento
Throws:
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception

saveMessage

void saveMessage(javax.mail.Message message,
                 java.lang.Long messageBoxId)
                 throws javax.mail.MessagingException,
                        java.lang.Exception,
                        java.io.IOException
Save message.

Parameters:
message - the message
messageBoxId - the message box id
Throws:
javax.mail.MessagingException - the messaging exception
MessageboxService.PecRecipientsLimitExceededException - the exception
java.io.IOException - Signals that an I/O exception has occurred.
java.lang.Exception

saveAndApplyRules

void saveAndApplyRules(MessageInstance messageInstance)
Save and apply rules.

Parameters:
messageInstance - the message instance

archive

void archive()
Archive.


archive

void archive(java.util.Date fromDate,
             java.util.Date toDate)
Archive.

Parameters:
fromDate - the from date
toDate - the to date

archive

void archive(MessageBox messageBox,
             java.util.Date fromDate,
             java.util.Date toDate)
Archive.

Parameters:
messageBox - the message box
fromDate - the from date
toDate - the to date

archiveInstance

void archiveInstance(ItemInstance instance)
Archive instance.

Parameters:
instance - the instance

loopPendingMessages

void loopPendingMessages(java.lang.Long partitionId,
                         java.lang.Long messageBoxId)
                         throws javax.mail.MessagingException,
                                java.lang.Exception
Loop pending messages.

Parameters:
partitionId - the partition id
messageBoxId - the message box id
Throws:
javax.mail.MessagingException - the messaging exception
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception

processPendingMessagesAllPartitions

void processPendingMessagesAllPartitions()
                                         throws javax.mail.MessagingException,
                                                java.lang.Exception
Process pending messages all partitions.

Throws:
javax.mail.MessagingException - the messaging exception
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception

processMailboxRulesAllPartitions

void processMailboxRulesAllPartitions()
                                      throws javax.mail.MessagingException,
                                             java.lang.Exception
Process mailbox rules all partitions.

Throws:
javax.mail.MessagingException - the messaging exception
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception

MIME2MessageInstance

void MIME2MessageInstance(javax.mail.Message message,
                          MessageInstance instance,
                          boolean getOriginalMessage,
                          java.util.Map<java.lang.String,java.lang.Object> variables)
                          throws java.lang.Exception
MIM e2 message instance.

Parameters:
message - the message
instance - the instance
getOriginalMessage - the get original message
variables - the variables
Throws:
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception

setDeliveryInfo

void setDeliveryInfo(MessageInstance messageInstance,
                     it.neverworks.mail.helper.MessageHelper message)
                     throws java.lang.Exception
Sets the delivery info.

Parameters:
messageInstance - the message instance
message - the message
Throws:
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception

checkPECSendLimits

void checkPECSendLimits(MessageInstance messageInstance)
Check pec send limits.

Parameters:
messageInstance - the message instance

moveAllRecipientsToCcn

void moveAllRecipientsToCcn(MessageInstance messageInstance)
Move all recipients to ccn.

Parameters:
messageInstance - the message instance