Examples of addEmailTo()


Examples of org.olat.core.util.mail.ContactMessage.addEmailTo()

            if (!keyIsSelected) {
              ownerList.remove(identity);
            }
          }
          ownerCntctLst.addAllIdentites(ownerList);
          cmsg.addEmailTo(ownerCntctLst);
        }
      }
    }
    if (sendToChooserForm != null) {
      if  (sendToChooserForm.participantChecked().equals(BusinessGroupSendToChooserForm.NLS_RADIO_ALL)) {
View Full Code Here

Examples of org.olat.core.util.mail.ContactMessage.addEmailTo()

    if (sendToChooserForm != null) {
      if  (sendToChooserForm.participantChecked().equals(BusinessGroupSendToChooserForm.NLS_RADIO_ALL)) {
        SecurityGroup participants = this.currentGroup.getPartipiciantGroup();
        List<Identity> participantsList = scrtMngr.getIdentitiesOfSecurityGroup(participants);
        partipCntctLst.addAllIdentites(participantsList);
        cmsg.addEmailTo(partipCntctLst);
      } else {
        if (sendToChooserForm.participantChecked().equals(BusinessGroupSendToChooserForm.NLS_RADIO_CHOOSE)) {
          SecurityGroup participants = this.currentGroup.getPartipiciantGroup();
          List<Identity> participantsList = scrtMngr.getIdentitiesOfSecurityGroup(participants);
          for (Identity identity : new ArrayList<Identity>(participantsList)) {
View Full Code Here

Examples of org.olat.core.util.mail.ContactMessage.addEmailTo()

            if (!keyIsSelected) {
              participantsList.remove(identity);
            }
          }
          partipCntctLst.addAllIdentites(participantsList);
          cmsg.addEmailTo(partipCntctLst);
        }
      }
     
    }
    if (sendToChooserForm != null && getIsGMAdminOwner(ureq) && this.currentGroup.getWaitingListEnabled().booleanValue()) {
View Full Code Here

Examples of org.olat.core.util.mail.ContactMessage.addEmailTo()

    if (sendToChooserForm != null && getIsGMAdminOwner(ureq) && this.currentGroup.getWaitingListEnabled().booleanValue()) {
      if (sendToChooserForm.waitingListChecked().equals(BusinessGroupSendToChooserForm.NLS_RADIO_ALL)) {
        SecurityGroup waitingList = this.currentGroup.getWaitingGroup();
        List<Identity> waitingListIdentities = scrtMngr.getIdentitiesOfSecurityGroup(waitingList);
        waitingListContactList.addAllIdentites(waitingListIdentities);
        cmsg.addEmailTo(waitingListContactList);
      } else {
        if (sendToChooserForm.waitingListChecked().equals(BusinessGroupSendToChooserForm.NLS_RADIO_CHOOSE)) {
          SecurityGroup waitingList = this.currentGroup.getWaitingGroup();
          List<Identity> waitingListIdentities = scrtMngr.getIdentitiesOfSecurityGroup(waitingList);
          for (Identity identity : new ArrayList<Identity>(waitingListIdentities)) {
View Full Code Here

Examples of org.olat.core.util.mail.ContactMessage.addEmailTo()

            if (!keyIsSelected) {
              waitingListIdentities.remove(identity);
            }
          }
          waitingListContactList.addAllIdentites(waitingListIdentities);
          cmsg.addEmailTo(waitingListContactList);
        }
      }
    }
    String resourceUrl = JumpInManager.getJumpInUri(this.getWindowControl().getBusinessControl());
    cmsg.setSubject( businessGroupTranslator.translate("businessgroup.contact.subject", new String[]{ this.currentGroup.getName()} ) );
View Full Code Here

Examples of org.olat.core.util.mail.ContactMessage.addEmailTo()

      contactList = new ContactList(participants.get(0).getUser().getProperty(UserConstants.EMAIL, ureq.getLocale()));
    } else {
      contactList = new ContactList(trans.translate("participants.message.to"));
    }
    contactList.addAllIdentites(participants);
    cmsg.addEmailTo(contactList);
    ContactFormController contactCtr = new ContactFormController(ureq, wControl, false, false, false, false, cmsg);
    contactCtr.addControllerListener(listener);
    sendMessageVC.contextPut("title", trans.translate("participants.message"));
    sendMessageVC.put("contactForm", contactCtr.getInitialComponent());
   
View Full Code Here

Examples of org.olat.core.util.mail.ContactMessage.addEmailTo()

    } else if (menuCommand.equals(CMD_CONTACT)) {
      ContactMessage cmsg = new ContactMessage(ureq.getIdentity());
      ContactList emailList = new ContactList(firstLastName);
      emailList.add(identity);
      cmsg.addEmailTo(emailList);
      removeAsListenerAndDispose(contactFormController);
      contactFormController = new ContactFormController(ureq, getWindowControl(), true,true,false,false,cmsg);
      listenTo(contactFormController);
      myContent.put("userinfo", contactFormController.getInitialComponent());
    } else if (menuCommand.equals(CMD_WEBLOG)) {
View Full Code Here

Examples of org.olat.core.util.mail.ContactMessage.addEmailTo()

      contactList = new ContactList(participants.get(0).getName());
    } else {
      contactList = new ContactList(translate("participants.message.to"));
    }
    contactList.addAllIdentites(participants);
    cmsg.addEmailTo(contactList);
    contactCtr = new ContactFormController(ureq, getWindowControl(), false, false, false, false, cmsg);
    contactCtr.addControllerListener(this);
    sendMessageVC.contextPut("title", translate("participants.message"));
    sendMessageVC.put("contactForm", contactCtr.getInitialComponent());
    notificationCmc = new CloseableModalController(getWindowControl(), "close", sendMessageVC);
View Full Code Here

Examples of org.olat.core.util.mail.ContactMessage.addEmailTo()

          caretaker.add((Identity) tmpIdent.get(i));
        }
       
        //create e-mail Message
        ContactMessage cmsg = new ContactMessage(ureq.getIdentity());
        cmsg.addEmailTo(caretaker);
        removeAsListenerAndDispose(cfc);
        cfc = new ContactFormController(ureq, getWindowControl(), false, true, false, false, cmsg);
        listenTo(cfc);
        // open form in dialog
        removeAsListenerAndDispose(cmc);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.