Package ca.carleton.gcrc.mail

Examples of ca.carleton.gcrc.mail.MailRecipient


    for(UserDocument user : users){
      String display = user.getDisplayName();
      Collection<String> emails = user.getEmails();
      for(String email : emails){
        if( null == display ) {
          recipients.add( new MailRecipient(email) );
        } else {
          recipients.add( new MailRecipient(email,display) );
        }
      }
    }
   
    // Check if anything to do
View Full Code Here


    for(UserDocument user : users){
      String display = user.getDisplayName();
      Collection<String> emails = user.getEmails();
      for(String email : emails){
        if( null == display ) {
          recipients.add( new MailRecipient(email) );
        } else {
          recipients.add( new MailRecipient(email,display) );
        }
      }
    }
   
    // Check if anything to do
View Full Code Here

    }
   
    // Convert e-mail addresses into recipient
    List<MailRecipient> recipients = new ArrayList<MailRecipient>(emails.size());
    for(String email : emails){
      MailRecipient recipient = null;
      if( null != userName ){
        recipient = new MailRecipient(email, userName);
      } else {
        recipient = new MailRecipient(email);
      }
      recipients.add(recipient);
    }
   
    // Send notification
View Full Code Here

          sendUploadMailNotification = Boolean.parseBoolean( mailProperties.getProperty(propName) );
          logger.info("sendUploadMailNotification: "+sendUploadMailNotification);
         
        } else if( "upload.sender".equals(propName) ) {
          String value = mailProperties.getProperty(propName);
          MailRecipient r = MailRecipient.parseString(value);
          fromAddress = r;
         
        } else if( "upload.submission.url".equals(propName) ) {
          submissionPageLink = mailProperties.getProperty(propName);
          logger.info("Submission Page URL: "+submissionPageLink);
View Full Code Here

    for(UserDocument user : users){
      String display = user.getDisplayName();
      Collection<String> emails = user.getEmails();
      for(String email : emails){
        if( null == display ) {
          recipients.add( new MailRecipient(email) );
        } else {
          recipients.add( new MailRecipient(email,display) );
        }
      }
    }
   
    // Check if anything to do
View Full Code Here

      throw new Exception("User creation URL is not provided");
    }
   
    // Get list of recipients
    List<MailRecipient> recipients = new Vector<MailRecipient>();
    recipients.add( new MailRecipient(emailAddress) );
   
    logger.info("Sending user creation notification to "+recipients);
   
    // Compute link
    String link = createUserUrl + "?token=" + token;
View Full Code Here

    }
   
    // Convert e-mail addresses into recipient
    List<MailRecipient> recipients = new ArrayList<MailRecipient>(emails.size());
    for(String email : emails){
      MailRecipient recipient = null;
      if( null != userName ){
        recipient = new MailRecipient(email, userName);
      } else {
        recipient = new MailRecipient(email);
      }
      recipients.add(recipient);
    }
   
    // Send notification
View Full Code Here

          sendUploadMailNotification = Boolean.parseBoolean( mailProperties.getProperty(propName) );
          logger.info("sendUploadMailNotification: "+sendUploadMailNotification);
         
        } else if( "upload.sender".equals(propName) ) {
          String value = mailProperties.getProperty(propName);
          MailRecipient r = MailRecipient.parseString(value);
          fromAddress = r;
        }
      } catch(Exception e) {
        throw new Exception("Problem while parsing key: "+propName, e);
      }
View Full Code Here

    for(UserDocument user : users){
      String display = user.getDisplayName();
      Collection<String> emails = user.getEmails();
      for(String email : emails){
        if( null == display ) {
          recipients.add( new MailRecipient(email) );
        } else {
          recipients.add( new MailRecipient(email,display) );
        }
      }
    }
   
    // Check if anything to do
View Full Code Here

    for(UserDocument user : users){
      String display = user.getDisplayName();
      Collection<String> emails = user.getEmails();
      for(String email : emails){
        if( null == display ) {
          recipients.add( new MailRecipient(email) );
        } else {
          recipients.add( new MailRecipient(email,display) );
        }
      }
    }
   
    // Check if anything to do
View Full Code Here

TOP

Related Classes of ca.carleton.gcrc.mail.MailRecipient

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.