Package ca.carleton.gcrc.couch.utils

Examples of ca.carleton.gcrc.couch.utils.CouchDbTemplateMailMessageGenerator


        mail.setMailProperties(props);
       
        // Mail templates
        {
          MailMessageGenerator template = new UploadNotificationGenerator();
          CouchDbTemplateMailMessageGenerator couchdbTemplate = new CouchDbTemplateMailMessageGenerator(
            documentDatabase,
            "org.nunaliit.email_template.upload",
            template
            );
          mail.setUploadNotificationGenerator(couchdbTemplate);
        }
        {
          MailMessageGenerator template = new DailyVetterNotificationGenerator();
          CouchDbTemplateMailMessageGenerator couchdbTemplate = new CouchDbTemplateMailMessageGenerator(
            documentDatabase,
            "org.nunaliit.email_template.daily_vetter",
            template
            );
          mail.setDailyVetterNotificationGenerator(couchdbTemplate);
        }

        submissionNotifier = new SubmissionMailNotifierImpl(
          atlasProperties.getAtlasName()
          ,mailDelivery
          ,couchDd.getDatabase()
          );
        submissionNotifier.parseMailProperties(props);
       
        // Mail templates
        {
          MailMessageGenerator template = new SubmissionApprovalGenerator();
          CouchDbTemplateMailMessageGenerator couchdbTemplate = new CouchDbTemplateMailMessageGenerator(
            documentDatabase,
            "org.nunaliit.email_template.submission_approval",
            template
            );
          submissionNotifier.setApprovalGenerator(couchdbTemplate);
        }
        {
          MailMessageGenerator template = new SubmissionRejectionGenerator();
          CouchDbTemplateMailMessageGenerator couchdbTemplate = new CouchDbTemplateMailMessageGenerator(
            documentDatabase,
            "org.nunaliit.email_template.submission_rejection",
            template
            );
          submissionNotifier.setRejectionGenerator(couchdbTemplate);
View Full Code Here


        mail.setMailProperties(props);
       
        // Mail templates
        {
          MailMessageGenerator template = new UploadNotificationGenerator();
          CouchDbTemplateMailMessageGenerator couchdbTemplate = new CouchDbTemplateMailMessageGenerator(
            documentDatabase,
            "org.nunaliit.email_template.upload",
            template
            );
          mail.setUploadNotificationGenerator(couchdbTemplate);
        }
        {
          MailMessageGenerator template = new DailyVetterNotificationGenerator();
          CouchDbTemplateMailMessageGenerator couchdbTemplate = new CouchDbTemplateMailMessageGenerator(
            documentDatabase,
            "org.nunaliit.email_template.daily_vetter",
            template
            );
          mail.setDailyVetterNotificationGenerator(couchdbTemplate);
        }

        submissionNotifier = new SubmissionMailNotifierImpl(
          atlasProperties.getAtlasName()
          ,mailDelivery
          ,couchDd.getDatabase()
          );
        submissionNotifier.parseMailProperties(props);
       
        // Mail templates
        {
          MailMessageGenerator template = new SubmissionApprovalGenerator();
          CouchDbTemplateMailMessageGenerator couchdbTemplate = new CouchDbTemplateMailMessageGenerator(
            documentDatabase,
            "org.nunaliit.email_template.submission_approval",
            template
            );
          submissionNotifier.setApprovalGenerator(couchdbTemplate);
        }
        {
          MailMessageGenerator template = new SubmissionRejectionGenerator();
          CouchDbTemplateMailMessageGenerator couchdbTemplate = new CouchDbTemplateMailMessageGenerator(
            documentDatabase,
            "org.nunaliit.email_template.submission_rejection",
            template
            );
          submissionNotifier.setRejectionGenerator(couchdbTemplate);
View Full Code Here

      }
     
      // Load e-mail templates
      {
        MailMessageGenerator template = new UserCreationGenerator();
        CouchDbTemplateMailMessageGenerator couchTemplate = new CouchDbTemplateMailMessageGenerator(
            documentDb,
            "org.nunaliit.email_template.user_creation",
            template
            );
        userMailNotification.setUserCreationGenerator(couchTemplate);
      }
      {
        MailMessageGenerator template = new PasswordRecoveryGenerator();
        CouchDbTemplateMailMessageGenerator couchTemplate = new CouchDbTemplateMailMessageGenerator(
            documentDb,
            "org.nunaliit.email_template.password_recovery",
            template
            );
        userMailNotification.setPasswordRecoveryGenerator(couchTemplate);
      }
      {
        MailMessageGenerator template = new PasswordReminderGenerator();
        CouchDbTemplateMailMessageGenerator couchTemplate = new CouchDbTemplateMailMessageGenerator(
            documentDb,
            "org.nunaliit.email_template.password_reminder",
            template
            );
        userMailNotification.setPasswordReminderGenerator(couchTemplate);
View Full Code Here

TOP

Related Classes of ca.carleton.gcrc.couch.utils.CouchDbTemplateMailMessageGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.