Class EmailServices


  • public class EmailServices
    extends java.lang.Object
    Email Services
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String module  
      static java.lang.String resource  
    • Constructor Summary

      Constructors 
      Constructor Description
      EmailServices()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void sendFailureNotification​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context, javax.mail.internet.MimeMessage message, java.util.List<com.sun.mail.smtp.SMTPAddressFailedException> failures)  
      static java.util.Map<java.lang.String,​java.lang.Object> sendMail​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Basic JavaMail Service
      static java.util.Map<java.lang.String,​java.lang.Object> sendMailFromScreen​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> rServiceContext)
      JavaMail Service that gets body content from a Screen Widget defined in the product store record and if available as attachment also.
      static java.util.Map<java.lang.String,​java.lang.Object> sendMailFromUrl​(DispatchContext ctx, java.util.Map<java.lang.String,​? extends java.lang.Object> rcontext)
      JavaMail Service that gets body content from a URL
      static java.util.Map<java.lang.String,​java.lang.Object> sendMailHiddenInLogFromScreen​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> rServiceContext)
      JavaMail Service same than sendMailFromScreen but with hidden result in log.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • EmailServices

        public EmailServices()
    • Method Detail

      • sendMail

        public static java.util.Map<java.lang.String,​java.lang.Object> sendMail​(DispatchContext ctx,
                                                                                      java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Basic JavaMail Service
        Parameters:
        ctx - The DispatchContext that this service is operating in
        context - Map containing the input parameters
        Returns:
        Map with the result of the service, the output parameters
      • sendMailFromUrl

        public static java.util.Map<java.lang.String,​java.lang.Object> sendMailFromUrl​(DispatchContext ctx,
                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> rcontext)
        JavaMail Service that gets body content from a URL
        Parameters:
        ctx - The DispatchContext that this service is operating in
        rcontext - Map containing the input parameters
        Returns:
        Map with the result of the service, the output parameters
      • sendMailFromScreen

        public static java.util.Map<java.lang.String,​java.lang.Object> sendMailFromScreen​(DispatchContext dctx,
                                                                                                java.util.Map<java.lang.String,​? extends java.lang.Object> rServiceContext)
        JavaMail Service that gets body content from a Screen Widget defined in the product store record and if available as attachment also.
        Parameters:
        dctx - The DispatchContext that this service is operating in
        rServiceContext - Map containing the input parameters
        Returns:
        Map with the result of the service, the output parameters
      • sendMailHiddenInLogFromScreen

        public static java.util.Map<java.lang.String,​java.lang.Object> sendMailHiddenInLogFromScreen​(DispatchContext dctx,
                                                                                                           java.util.Map<java.lang.String,​? extends java.lang.Object> rServiceContext)
        JavaMail Service same than sendMailFromScreen but with hidden result in log. To prevent having not encoded passwords shown in log
        Parameters:
        dctx - The DispatchContext that this service is operating in
        rServiceContext - Map containing the input parameters
        Returns:
        Map with the result of the service, the output parameters
      • sendFailureNotification

        public static void sendFailureNotification​(DispatchContext dctx,
                                                   java.util.Map<java.lang.String,​? extends java.lang.Object> context,
                                                   javax.mail.internet.MimeMessage message,
                                                   java.util.List<com.sun.mail.smtp.SMTPAddressFailedException> failures)