Class EmailUserNotifier

  • All Implemented Interfaces:
    UserNotifier, org.springframework.beans.factory.InitializingBean

    public class EmailUserNotifier
    extends AbstractUserNotifier
    implements org.springframework.beans.factory.InitializingBean
    Notifies the given user by sending activity feed information to their registered email address.
    Since:
    4.0
    • Constructor Detail

      • EmailUserNotifier

        public EmailUserNotifier()
    • Method Detail

      • setAuthenticationContext

        public void setAuthenticationContext​(AuthenticationContext authenticationContext)
      • setActionService

        public void setActionService​(ActionService actionService)
      • setEmailHelper

        public void setEmailHelper​(EmailHelper emailHelper)
      • getLogger

        public static org.apache.commons.logging.Log getLogger()
      • setLogger

        public static void setLogger​(org.apache.commons.logging.Log logger)
      • getExcludedEmailSuffixes

        public java.util.List<java.lang.String> getExcludedEmailSuffixes()
      • setExcludedEmailSuffixes

        public void setExcludedEmailSuffixes​(java.util.List<java.lang.String> excludedEmailSuffixes)
      • checkProperties

        protected void checkProperties()
        Perform basic checks to ensure that the necessary dependencies were injected.
        Overrides:
        checkProperties in class AbstractUserNotifier
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • skipUser

        protected boolean skipUser​(org.alfresco.service.cmr.repository.NodeRef personNodeRef)
        Specified by:
        skipUser in class AbstractUserNotifier
      • getFeedId

        protected java.lang.Long getFeedId​(org.alfresco.service.cmr.repository.NodeRef personNodeRef)
        Specified by:
        getFeedId in class AbstractUserNotifier
      • notifyUser

        protected void notifyUser​(org.alfresco.service.cmr.repository.NodeRef personNodeRef,
                                  java.lang.String subjectText,
                                  java.lang.Object[] subjectParams,
                                  java.util.Map<java.lang.String,​java.lang.Object> model,
                                  java.lang.String templateNodeRef)
        Specified by:
        notifyUser in class AbstractUserNotifier