|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.sistematica.isharedoc.service.mail.MessageboxServiceImpl
@Service(value="messageboxService") public class MessageboxServiceImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface it.sistematica.isharedoc.service.mail.MessageboxService |
|---|
MessageboxService.PecAttachmentsSizeLimitExceededException, MessageboxService.PecRecipientsLimitExceededException |
| Field Summary | |
|---|---|
(package private) it.neverworks.util.Configuration |
configuration
|
(package private) DocumentManager |
documentManager
|
(package private) it.neverworks.data.EntityManager |
entities
|
(package private) InstanceSecurityService |
instanceSecurityService
|
(package private) InstanceService |
instanceService
|
(package private) IsharedocSystemService |
isharedocSystemService
|
(package private) it.neverworks.template.TemplateEngine |
mailTemplateEngine
|
(package private) NotificationService |
notificationService
|
(package private) OrganizationService |
organizationService
|
(package private) PartitionService |
partitionService
|
(package private) PecService |
pecService
|
(package private) WorkProcessManager |
processManager
|
(package private) org.hibernate.SessionFactory |
sessionFactory
|
(package private) org.springframework.transaction.PlatformTransactionManager |
transactionManager
|
(package private) it.neverworks.application.service.UserInfo |
userInfo
|
| Fields inherited from interface it.sistematica.isharedoc.service.mail.MessageboxService |
|---|
ACCETTAZIONE, AGGIORNAMENTO_CONFERMA, ANNULLAMENTO_PROTOCOLLAZIONE, ANOMALIA, AVVENUTA_CONSEGNA, CONFERMA_RICEZIONE, ERRORE_CONSEGNA, ISHAREDOC_ERROR_WEBMAIL_FOLDER, ISHAREDOC_PROCESSED_WEBMAIL_FOLDER, ITEM_INSTANCE_PREFIX, MAIL_EML, MISSING_XML, NON_ACCETTAZIONE, NOTIFICA_ECCEZIONE, PEC_EML, POSTA_CERTIFICATA, PREAVVISO_ERRORE_CONSEGNA, PROCESS_INSTANCE_PREFIX, SEGNATURA, SEPARATOR_PREFIX, X_RICEVUTA, X_Riferimento_Message_ID, X_TRASPORTO, XML_MULTIPLI |
| Constructor Summary | |
|---|---|
MessageboxServiceImpl()
|
|
| 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 |
processMailboxRulesCurrentPartition(Partition partition)
|
void |
processPendingMessagesAllPartitions()
Process pending messages all partitions. |
void |
processPendingMessagesCurrentPartition(Partition partition)
|
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 |
setMailConnectionTimeout(int mailConnectionTimeout)
|
void |
setMailIOTimeout(int mailIOTimeout)
|
void |
setReplyMessage(MessageInstance replyMessage,
MessageInstance repliedMessage)
Sets the reply message. |
void |
validateDefaults(MessageBox mbox)
Validate defaults. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
it.neverworks.application.service.UserInfo userInfo
it.neverworks.data.EntityManager entities
org.hibernate.SessionFactory sessionFactory
org.springframework.transaction.PlatformTransactionManager transactionManager
it.neverworks.util.Configuration configuration
NotificationService notificationService
PartitionService partitionService
DocumentManager documentManager
PecService pecService
InstanceService instanceService
InstanceSecurityService instanceSecurityService
OrganizationService organizationService
it.neverworks.template.TemplateEngine mailTemplateEngine
IsharedocSystemService isharedocSystemService
WorkProcessManager processManager
| Constructor Detail |
|---|
public MessageboxServiceImpl()
| Method Detail |
|---|
public void setMailConnectionTimeout(int mailConnectionTimeout)
public void setMailIOTimeout(int mailIOTimeout)
@Transactional public void save(MessageBox mbox)
MessageboxService
save in interface MessageboxServicembox - the mbox@Transactional public void validateDefaults(MessageBox mbox)
MessageboxService
validateDefaults in interface MessageboxServicembox - the mboxpublic void repair()
MessageboxService
repair in interface MessageboxServicepublic void repair(MessageBox mbox)
MessageboxService
repair in interface MessageboxServicembox - the mboxpublic void repairDirectoryMessages()
MessageboxService
repairDirectoryMessages in interface MessageboxServicepublic void repairDirectoryMessages(MessageBox mbox)
MessageboxService
repairDirectoryMessages in interface MessageboxServicembox - the mbox@Transactional public void rebuildSpecialFoldersPermissions(MessageBox mbox)
MessageboxService
rebuildSpecialFoldersPermissions in interface MessageboxServicembox - the mbox
public java.util.List<MessageBox> getMessageBoxes(boolean filterAccessibleMe,
boolean filterShowInAccounts)
MessageboxService
getMessageBoxes in interface MessageboxServicefilterAccessibleMe - the filter accessible mefilterShowInAccounts - the filter show in accounts
public java.util.List<MessageBox> getMessageBoxesCreateMessage(Storyboard storyboard)
MessageboxService
getMessageBoxesCreateMessage in interface MessageboxServicestoryboard - the storyboard
public java.util.List<MessageBox> getMessageBoxesCreateMessage()
MessageboxService
getMessageBoxesCreateMessage in interface MessageboxService@Transactional public java.util.List<MessageInstance.MessageType> getMessageTypeCreateMessage(MessageBox mbox)
MessageboxService
getMessageTypeCreateMessage in interface MessageboxServicembox - the mbox
@Transactional public java.util.List<Organization> getMyOrganizationsOnMessageBox(MessageBox mbox)
MessageboxService
getMyOrganizationsOnMessageBox in interface MessageboxServicembox - the mbox
@Transactional public MessageBox findMessageBoxById(java.lang.Long id)
MessageboxService
findMessageBoxById in interface MessageboxServiceid - the id
@Transactional
public void moveMessage(MessageInstance message,
MessageBox mbox)
MessageboxService
moveMessage in interface MessageboxServicemessage - the messagembox - the mbox
@Transactional
public void moveMessages(MessageBox fromMbox,
MessageBox toMbox)
MessageboxService
moveMessages in interface MessageboxServicefromMbox - the from mboxtoMbox - the to mbox
@Transactional
public void setReplyMessage(MessageInstance replyMessage,
MessageInstance repliedMessage)
MessageboxService
setReplyMessage in interface MessageboxServicereplyMessage - the reply messagerepliedMessage - the replied message
@Transactional
public void associateServiceInstance(MessageInstance message,
MessageServiceInstance messageService)
MessageboxService
associateServiceInstance in interface MessageboxServicemessage - the messagemessageService - the message service@Transactional public File getInstanceAttachmentFolderMonth(MessageInstance instance)
MessageboxService
getInstanceAttachmentFolderMonth in interface MessageboxServiceinstance - the instance
@Transactional public File getInstanceAttachmentFolder(MessageInstance instance)
MessageboxService
getInstanceAttachmentFolder in interface MessageboxServiceinstance - the instance
@Transactional
public void sendMailConfermaRicezione(MessageInstance messageInstance,
java.lang.String protocolNumber,
java.util.Date protocolDate)
throws java.lang.Exception
MessageboxService
sendMailConfermaRicezione in interface MessageboxServicemessageInstance - the message instanceprotocolNumber - the protocol numberprotocolDate - the protocol date
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception
@Transactional
public void scheduleSendMail(MessageInstance messageInstance,
java.util.Date scheduleDate)
MessageboxService
scheduleSendMail in interface MessageboxServicemessageInstance - the message instancescheduleDate - the schedule date
public void sendMail(MessageInstance messageInstance)
throws java.lang.Exception
MessageboxService
sendMail in interface MessageboxServicemessageInstance - the message instance
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception
@Transactional
public void sendMail(MessageInstance messageInstance,
ContactInstance contactInstance)
throws java.lang.Exception
MessageboxService
sendMail in interface MessageboxServicemessageInstance - the message instancecontactInstance - the contact instance
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception
public void saveMessage(javax.mail.Message message,
java.lang.Long messageBoxId)
MessageboxService
saveMessage in interface MessageboxServicemessage - the messagemessageBoxId - the message box id
public void MIME2MessageInstance(javax.mail.Message message,
MessageInstance instance,
boolean getOriginalMessage,
java.util.Map<java.lang.String,java.lang.Object> variables)
throws java.lang.Exception
MessageboxService
MIME2MessageInstance in interface MessageboxServicemessage - the messageinstance - the instancegetOriginalMessage - the get original messagevariables - the variables
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception
public void setDeliveryInfo(MessageInstance messageInstance,
it.neverworks.mail.helper.MessageHelper message)
throws java.lang.Exception
MessageboxService
setDeliveryInfo in interface MessageboxServicemessageInstance - the message instancemessage - the message
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception
public void sendMailNotificaEccezione(MessageInstance messageInstance,
java.lang.String motivo)
throws java.lang.Exception
MessageboxService
sendMailNotificaEccezione in interface MessageboxServicemessageInstance - the message instancemotivo - the motivo
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception
public void sendMailAnnullamento(MessageInstance messageInstance,
java.lang.String motivo,
java.lang.String provvedimento)
throws java.lang.Exception
MessageboxService
sendMailAnnullamento in interface MessageboxServicemessageInstance - the message instancemotivo - the motivoprovvedimento - the provvedimento
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception@Transactional public void saveAndApplyRules(MessageInstance messageInstance)
MessageboxService
saveAndApplyRules in interface MessageboxServicemessageInstance - the message instance@Transactional public void archive()
MessageboxService
archive in interface MessageboxService
@Transactional
public void archive(java.util.Date fromDate,
java.util.Date toDate)
MessageboxService
archive in interface MessageboxServicefromDate - the from datetoDate - the to date
@Transactional
public void archive(MessageBox messageBox,
java.util.Date fromDate,
java.util.Date toDate)
MessageboxService
archive in interface MessageboxServicemessageBox - the message boxfromDate - the from datetoDate - the to date@Transactional public void archiveInstance(ItemInstance instance)
MessageboxService
archiveInstance in interface MessageboxServiceinstance - the instance
@Transactional(propagation=REQUIRES_NEW)
public void loopPendingMessages(java.lang.Long partitionId,
java.lang.Long messageBoxId)
throws javax.mail.MessagingException,
java.lang.Exception
MessageboxService
loopPendingMessages in interface MessageboxServicepartitionId - the partition idmessageBoxId - the message box id
javax.mail.MessagingException - the messaging exception
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception
@Transactional
public void processPendingMessagesAllPartitions()
throws javax.mail.MessagingException,
java.lang.Exception
MessageboxService
processPendingMessagesAllPartitions in interface MessageboxServicejavax.mail.MessagingException - the messaging exception
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception
@Transactional
public void processMailboxRulesAllPartitions()
throws javax.mail.MessagingException,
java.lang.Exception
MessageboxService
processMailboxRulesAllPartitions in interface MessageboxServicejavax.mail.MessagingException - the messaging exception
MessageboxService.PecRecipientsLimitExceededException - the exception
java.lang.Exception
@Transactional(propagation=REQUIRES_NEW)
public void processPendingMessagesCurrentPartition(Partition partition)
throws javax.mail.MessagingException,
java.lang.Exception
javax.mail.MessagingException
java.lang.Exception
@Transactional(propagation=REQUIRES_NEW)
public void processMailboxRulesCurrentPartition(Partition partition)
throws javax.mail.MessagingException,
java.lang.Exception
javax.mail.MessagingException
java.lang.Exceptionpublic void moveAllRecipientsToCcn(MessageInstance messageInstance)
MessageboxService
moveAllRecipientsToCcn in interface MessageboxServicemessageInstance - the message instancepublic void checkPECSendLimits(MessageInstance messageInstance)
MessageboxService
checkPECSendLimits in interface MessageboxServicemessageInstance - the message instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||