Package org.alfresco.email.server
Class EmailServiceImpl
- java.lang.Object
-
- org.alfresco.email.server.EmailServiceImpl
-
- All Implemented Interfaces:
EmailService
public class EmailServiceImpl extends Object implements EmailService
Concrete email service implementation. This is responsible for routing the emails into the server.- Since:
- 2.2
-
-
Constructor Summary
Constructors Constructor Description EmailServiceImpl()
-
Method Summary
-
-
-
Method Detail
-
init
public void init()
-
setNamespaceService
public void setNamespaceService(NamespaceService namespaceService)
- Parameters:
namespaceService- the service to resolve namespace prefixes
-
setNodeService
public void setNodeService(NodeService nodeService)
- Parameters:
nodeService- Alfresco Node Service
-
setSearchService
public void setSearchService(SearchService searchService)
- Parameters:
searchService- Alfresco Search Service
-
setRetryingTransactionHelper
public void setRetryingTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
- Parameters:
retryingTransactionHelper- Alfresco RetryingTransactionHelper
-
setAuthorityService
public void setAuthorityService(AuthorityService authorityService)
- Parameters:
authorityService- Alfresco authority service
-
getEmailMessageHandlerMap
public Map<String,EmailMessageHandler> getEmailMessageHandlerMap()
- Returns:
- Map of message handlers
-
setEmailMessageHandlerMap
public void setEmailMessageHandlerMap(Map<String,EmailMessageHandler> emailMessageHandlerMap)
- Parameters:
emailMessageHandlerMap- Map of message handlers
-
setUnknownUser
public void setUnknownUser(String unknownUser)
- Parameters:
unknownUser- Login of user that should be set as unknown.
-
setEmailInboundEnabled
public void setEmailInboundEnabled(boolean mailInboundEnabled)
-
importMessage
public void importMessage(EmailDelivery delivery, EmailMessage message)
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
public void importMessage(EmailDelivery delivery, NodeRef nodeRef, EmailMessage message)
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
public void setEmailContributorsAuthority(String emailContributorsAuthority)
-
getEmailContributorsAuthority
public String getEmailContributorsAuthority()
-
setDictionaryService
public void setDictionaryService(DictionaryService dictionaryService)
-
getDictionaryService
public DictionaryService getDictionaryService()
-
setAttributeService
public void setAttributeService(AttributeService attributeService)
-
getAttributeService
public AttributeService getAttributeService()
-
-