Examples of addAllIdentites()


Examples of org.olat.core.util.mail.ContactList.addAllIdentites()

    }
    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);
View Full Code Here

Examples of org.olat.core.util.mail.ContactList.addAllIdentites()

            }
            if (!keyIsSelected) {
              waitingListIdentities.remove(identity);
            }
          }
          waitingListContactList.addAllIdentites(waitingListIdentities);
          cmsg.addEmailTo(waitingListContactList);
        }
      }
    }
    String resourceUrl = JumpInManager.getJumpInUri(this.getWindowControl().getBusinessControl());
View Full Code Here

Examples of org.olat.core.util.mail.ContactList.addAllIdentites()

    if(participants.size() == 1) {
      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.ContactList.addAllIdentites()

    if(participants.size() == 1) {
      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());
View Full Code Here

Examples of org.olat.core.util.mail.ContactList.addAllIdentites()

    RepositoryEntry myEntry = rm.lookupRepositoryEntry(qtiPackage.getRepresentingResourceable(), false);
    SecurityGroup qtiPkgOwners = myEntry.getOwnerGroup();

    // add qti resource owners as group
    ContactList cl = new ContactList("qtiPkgOwners");
    cl.addAllIdentites(ManagerFactory.getManager().getIdentitiesOfSecurityGroup(qtiPkgOwners));
    changeEmail.addEmailTo(cl);

    StringBuilder result = new StringBuilder();
    result.append(translate("qti.restricted.leading"));
    for (Iterator iter = referencees.iterator(); iter.hasNext();) {
View Full Code Here

Examples of org.olat.core.util.mail.ContactList.addAllIdentites()

        SecurityGroup owners = entry.getOwnerGroup();
        List stakeHoldersIds = ManagerFactory.getManager().getIdentitiesOfSecurityGroup(owners);

        // add stakeholders as group
        cl = new ContactList(courseTitle);
        cl.addAllIdentites(stakeHoldersIds);
        changeEmail.addEmailTo(cl);

        StringBuilder stakeHolders = new StringBuilder();
        User user = ((Identity) stakeHoldersIds.get(0)).getUser();
        Locale loc = ureq.getLocale();
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.