Package org.olat.modules.co

Examples of org.olat.modules.co.ContactFormController


    ContactMessage cmsg = new ContactMessage(ureq.getIdentity());
    ContactList contactList = new ContactList(mailToName);
    contactList.addAllIdentites(identities);
    cmsg.addEmailTo(contactList);
    if (contactCtr != null) contactCtr.dispose();
    contactCtr = new ContactFormController(ureq, getWindowControl(), false, true, false, false, cmsg);
    contactCtr.addControllerListener(this);
    sendMessageVC.put("contactForm", contactCtr.getInitialComponent());
    setMainContent(sendMessageVC);
  }
View Full Code Here


    }
    String resourceUrl = JumpInManager.getJumpInUri(this.getWindowControl().getBusinessControl());
    cmsg.setSubject( businessGroupTranslator.translate("businessgroup.contact.subject", new String[]{ this.currentGroup.getName()} ) );
    cmsg.setBodyText( businessGroupTranslator.translate("businessgroup.contact.bodytext", new String[]{ this.currentGroup.getName(), resourceUrl} ) );
    CollaborationTools collabTools = CollaborationToolsFactory.getInstance().getOrCreateCollaborationTools(this.currentGroup);
    ContactFormController cofocntrllr = collabTools.createContactFormController(ureq, getWindowControl(), cmsg);
    return cofocntrllr;
  }
View Full Code Here

    cmsg.setSubject( translate("businessgroup.contact.subject", businessGroup.getName() ) );
    String resourceUrl = JumpInManager.getJumpInUri(this.getWindowControl().getBusinessControl());
    cmsg.setBodyText( getTranslator().translate("businessgroup.contact.bodytext", new String[]{ businessGroup.getName(), resourceUrl} ) );
   
    CollaborationTools collabTools = CollaborationToolsFactory.getInstance().getOrCreateCollaborationTools(businessGroup);
    ContactFormController cofocntrllr = collabTools.createContactFormController(ureq, getWindowControl(), cmsg);
    return cofocntrllr;
  }
View Full Code Here

          ContactList contacts = new ContactList(translate("mailto.userlist"));
          contacts.addAllIdentites(selectedIdentities);
          cmsg.addEmailTo(contacts);

          // create contact form controller with ContactMessage
          contactCtr = new ContactFormController(ureq, getWindowControl(), false, true, false, false, cmsg);
          listenTo(contactCtr);

          mailVC.put("mailform", contactCtr.getInitialComponent());
          panel.setContent(mailVC);
        }
View Full Code Here

        ContactList cl = contactLists.pop();
        cmsg.addEmailTo(cl);
      }
      cmsg.setBodyText(mBody);
      cmsg.setSubject(mSubject);
      coFoCtr = new ContactFormController(ureq, getWindowControl(), true,false,false,false, cmsg);
      listenTo(coFoCtr);//dispose as this controller is disposed
      myContent.put("myCoForm", coFoCtr.getInitialComponent());
      putInitialPanel(myContent);
    } else { // no email adresses at all
      String message = translate("error.msg.send.no.rcps");
View Full Code Here

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

      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)) {
//      weblogController = new WeblogMainController(ureq, getWindowControl(), chosenIdentity);
//      listenTo(weblogController);
View Full Code Here

    } 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);
    notificationCmc.activate();
View Full Code Here

       
        //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);
        cmc = new CloseableModalController(getWindowControl(), "close", cfc.getInitialComponent(), true, translate("contact.caretaker"));
        listenTo(cmc);
View Full Code Here

   * @param ureq
   * @param wControl
   * @return a contact form controller
   */
  public ContactFormController createContactFormController(UserRequest ureq, WindowControl wControl, ContactMessage cmsg) {
    ContactFormController cfc = new ContactFormController(ureq, wControl, true, true, false, false, cmsg);
    return cfc;
  }
View Full Code Here

TOP

Related Classes of org.olat.modules.co.ContactFormController

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.