it.sistematica.isharedoc.service.mail
Interface PecService

All Known Implementing Classes:
PecServiceImpl

public interface PecService

The Interface PecService.


Method Summary
 java.lang.String generateAnnullamentoXml(MessageInstance messageInstance, java.lang.String motivo, java.lang.String provvedimento)
          Generate annullamento xml.
 java.lang.String generateConfermaXml(MessageInstance messageInstance, java.lang.String protocolNumber, java.util.Date protocolDate)
          Generate conferma xml.
 java.lang.String generateNotificaEccezioneXml(MessageInstance messageInstance, java.lang.String motivo)
          Generate notifica eccezione xml.
 java.lang.String generateSegnaturaXml(MessageInstance messageInstance)
          Generate segnatura xml.
 java.lang.String generateSegnaturaXml(MessageInstance messageInstance, java.util.List<ContactInstance> contactInstances)
          Generate segnatura xml.
 java.util.Map<java.lang.String,java.lang.Object> getVariablesMapFromAnnullamento(java.io.InputStream annullamentoXml, MessageBox.InteroperabilityType interoperabilityType)
          Gets the variables map from annullamento.
 java.util.Map<java.lang.String,java.lang.Object> getVariablesMapFromConfermaRicezione(java.io.InputStream confermaXml, MessageBox.InteroperabilityType interoperabilityType)
          Gets the variables map from conferma ricezione.
 java.util.Map<java.lang.String,java.lang.Object> getVariablesMapFromNotificaEccezione(java.io.InputStream annullamentoXml, MessageBox.InteroperabilityType interoperabilityType)
          Gets the variables map from notifica eccezione.
 java.util.Map<java.lang.String,java.lang.Object> getVariablesMapFromSegnatura(java.io.InputStream segnaturaXml, MessageBox.InteroperabilityType interoperabilityType)
          Gets the variables map from segnatura.
 MessageServiceInstance.XmlAutomationType getXmlAutomationType(java.lang.String xmlFileName)
          Gets the xml automation type.
 java.lang.String getXmlType(java.util.Collection<java.io.File> attachments)
          Gets the xml type.
 java.lang.String getXmlType(it.neverworks.mail.helper.MessageHelper messageHelper)
          Gets the xml type.
 java.lang.String getXmlType(java.util.Vector<java.lang.String> attachments)
          Gets the xml type.
 

Method Detail

generateSegnaturaXml

java.lang.String generateSegnaturaXml(MessageInstance messageInstance)
                                      throws java.lang.Exception
Generate segnatura xml.

Parameters:
messageInstance - the message instance
Returns:
the string
Throws:
java.lang.Exception - the exception

generateSegnaturaXml

java.lang.String generateSegnaturaXml(MessageInstance messageInstance,
                                      java.util.List<ContactInstance> contactInstances)
                                      throws java.lang.Exception
Generate segnatura xml.

Parameters:
messageInstance - the message instance
contactInstances - the contact instances
Returns:
the string
Throws:
java.lang.Exception - the exception

generateConfermaXml

java.lang.String generateConfermaXml(MessageInstance messageInstance,
                                     java.lang.String protocolNumber,
                                     java.util.Date protocolDate)
                                     throws java.lang.Exception
Generate conferma xml.

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

generateNotificaEccezioneXml

java.lang.String generateNotificaEccezioneXml(MessageInstance messageInstance,
                                              java.lang.String motivo)
                                              throws java.lang.Exception
Generate notifica eccezione xml.

Parameters:
messageInstance - the message instance
motivo - the motivo
Returns:
the string
Throws:
java.lang.Exception - the exception

generateAnnullamentoXml

java.lang.String generateAnnullamentoXml(MessageInstance messageInstance,
                                         java.lang.String motivo,
                                         java.lang.String provvedimento)
                                         throws java.lang.Exception
Generate annullamento xml.

Parameters:
messageInstance - the message instance
motivo - the motivo
provvedimento - the provvedimento
Returns:
the string
Throws:
java.lang.Exception - the exception

getVariablesMapFromSegnatura

java.util.Map<java.lang.String,java.lang.Object> getVariablesMapFromSegnatura(java.io.InputStream segnaturaXml,
                                                                              MessageBox.InteroperabilityType interoperabilityType)
                                                                              throws java.lang.Exception
Gets the variables map from segnatura.

Parameters:
segnaturaXml - the segnatura xml
interoperabilityType - the interoperability type
Returns:
the variables map from segnatura
Throws:
java.lang.Exception - the exception

getVariablesMapFromConfermaRicezione

java.util.Map<java.lang.String,java.lang.Object> getVariablesMapFromConfermaRicezione(java.io.InputStream confermaXml,
                                                                                      MessageBox.InteroperabilityType interoperabilityType)
                                                                                      throws java.lang.Exception
Gets the variables map from conferma ricezione.

Parameters:
confermaXml - the conferma xml
interoperabilityType - the interoperability type
Returns:
the variables map from conferma ricezione
Throws:
java.lang.Exception - the exception

getVariablesMapFromAnnullamento

java.util.Map<java.lang.String,java.lang.Object> getVariablesMapFromAnnullamento(java.io.InputStream annullamentoXml,
                                                                                 MessageBox.InteroperabilityType interoperabilityType)
                                                                                 throws java.lang.Exception
Gets the variables map from annullamento.

Parameters:
annullamentoXml - the annullamento xml
interoperabilityType - the interoperability type
Returns:
the variables map from annullamento
Throws:
java.lang.Exception - the exception

getVariablesMapFromNotificaEccezione

java.util.Map<java.lang.String,java.lang.Object> getVariablesMapFromNotificaEccezione(java.io.InputStream annullamentoXml,
                                                                                      MessageBox.InteroperabilityType interoperabilityType)
                                                                                      throws java.lang.Exception
Gets the variables map from notifica eccezione.

Parameters:
annullamentoXml - the annullamento xml
interoperabilityType - the interoperability type
Returns:
the variables map from notifica eccezione
Throws:
java.lang.Exception - the exception

getXmlType

java.lang.String getXmlType(it.neverworks.mail.helper.MessageHelper messageHelper)
                            throws java.lang.Exception
Gets the xml type.

Parameters:
messageHelper - the message helper
Returns:
the xml type
Throws:
java.lang.Exception - the exception

getXmlType

java.lang.String getXmlType(java.util.Collection<java.io.File> attachments)
                            throws java.lang.Exception
Gets the xml type.

Parameters:
attachments - the attachments
Returns:
the xml type
Throws:
java.lang.Exception - the exception

getXmlType

java.lang.String getXmlType(java.util.Vector<java.lang.String> attachments)
                            throws java.lang.Exception
Gets the xml type.

Parameters:
attachments - the attachments
Returns:
the xml type
Throws:
java.lang.Exception - the exception

getXmlAutomationType

MessageServiceInstance.XmlAutomationType getXmlAutomationType(java.lang.String xmlFileName)
Gets the xml automation type.

Parameters:
xmlFileName - the xml file name
Returns:
the xml automation type