Class EmailServiceImpl

  • All Implemented Interfaces:
    EmailService

    public class EmailServiceImpl
    extends java.lang.Object
    implements EmailService
    Concrete email service implementation. This is responsible for routing the emails into the server.
    Since:
    2.2
    • Constructor Detail

      • EmailServiceImpl

        public EmailServiceImpl()
    • Method Detail

      • init

        public void init()
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
        Parameters:
        namespaceService - the service to resolve namespace prefixes
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Parameters:
        nodeService - Alfresco Node Service
      • setSearchService

        public void setSearchService​(org.alfresco.service.cmr.search.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 java.util.Map<java.lang.String,​EmailMessageHandler> getEmailMessageHandlerMap()
        Returns:
        Map of message handlers
      • setEmailMessageHandlerMap

        public void setEmailMessageHandlerMap​(java.util.Map<java.lang.String,​EmailMessageHandler> emailMessageHandlerMap)
        Parameters:
        emailMessageHandlerMap - Map of message handlers
      • setUnknownUser

        public void setUnknownUser​(java.lang.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:
        importMessage in interface EmailService
        Parameters:
        delivery - instructions - who gets the message and who is it from
        message - the email message
      • importMessage

        public void importMessage​(EmailDelivery delivery,
                                  org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                  EmailMessage message)
        Process an email message. The message's content is intended for a specific node.
        Specified by:
        importMessage in interface EmailService
        Parameters:
        delivery - instructions - who gets the message and who is it from
        nodeRef - the node to import the message to
        message - the email message
      • setEmailContributorsAuthority

        public void setEmailContributorsAuthority​(java.lang.String emailContributorsAuthority)
      • getEmailContributorsAuthority

        public java.lang.String getEmailContributorsAuthority()
      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
      • getDictionaryService

        public org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
      • setAttributeService

        public void setAttributeService​(AttributeService attributeService)