Package org.alfresco.email.server
Class EmailServiceImpl
java.lang.Object
org.alfresco.email.server.EmailServiceImpl
- All Implemented Interfaces:
EmailService
Concrete email service implementation. This is responsible for routing the emails into the server.
- Since:
- 2.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidimportMessage(EmailDelivery delivery, EmailMessage message) Processes an email message.voidimportMessage(EmailDelivery delivery, NodeRef nodeRef, EmailMessage message) Process an email message.voidinit()voidsetAttributeService(AttributeService attributeService) voidsetAuthorityService(AuthorityService authorityService) voidsetDictionaryService(DictionaryService dictionaryService) voidsetEmailContributorsAuthority(String emailContributorsAuthority) voidsetEmailInboundEnabled(boolean mailInboundEnabled) voidsetEmailMessageHandlerMap(Map<String, EmailMessageHandler> emailMessageHandlerMap) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeService(NodeService nodeService) voidsetRetryingTransactionHelper(RetryingTransactionHelper retryingTransactionHelper) voidsetSearchService(SearchService searchService) voidsetUnknownUser(String unknownUser)
-
Constructor Details
-
EmailServiceImpl
public EmailServiceImpl()
-
-
Method Details
-
init
public void init() -
setNamespaceService
- Parameters:
namespaceService- the service to resolve namespace prefixes
-
setNodeService
- Parameters:
nodeService- Alfresco Node Service
-
setSearchService
- Parameters:
searchService- Alfresco Search Service
-
setRetryingTransactionHelper
- Parameters:
retryingTransactionHelper- Alfresco RetryingTransactionHelper
-
setAuthorityService
- Parameters:
authorityService- Alfresco authority service
-
getEmailMessageHandlerMap
- Returns:
- Map of message handlers
-
setEmailMessageHandlerMap
- Parameters:
emailMessageHandlerMap- Map of message handlers
-
setUnknownUser
- Parameters:
unknownUser- Login of user that should be set as unknown.
-
setEmailInboundEnabled
public void setEmailInboundEnabled(boolean mailInboundEnabled) -
importMessage
Processes an email message. The message's content is intended for a node found by examining the email's target address.- Specified by:
importMessagein interfaceEmailService- Parameters:
delivery- instructions - who gets the message and who is it frommessage- the email message
-
importMessage
Process an email message. The message's content is intended for a specific node.- Specified by:
importMessagein interfaceEmailService- Parameters:
delivery- instructions - who gets the message and who is it fromnodeRef- the node to import the message tomessage- the email message
-
setEmailContributorsAuthority
-
getEmailContributorsAuthority
-
setDictionaryService
-
getDictionaryService
-
setAttributeService
-
getAttributeService
-