Package org.olat.admin.user

Examples of org.olat.admin.user.UserSearchController


      double avg = dur / cnt;
      double avgmilis = avg / 1000000;
      getWindowControl().setInfo("acquiring "+cnt+" locks for syncing (using db's \"select for update\") took "+inmilis+" ms, avg per messages was "+avg+" ns = "+avgmilis+" ms");
    } else if (source == releaseAllLocksFor) {
      // let a user search pop up
      usc = new UserSearchController(ureq, getWindowControl(), true);
      listenTo(usc);
      getWindowControl().pushAsModalDialog(usc.getInitialComponent());
    } else if ((source == nodeInfoVc) && (event.getCommand().equals("switchToNode"))) {
      String nodeIdStr = ureq.getHttpReq().getParameter("nodeId");
      if (nodeIdStr.length()==1) {
View Full Code Here


    } else if (uobject.equals(MENU_NOTE)) {
      titleStr = translate("menu.note");
      return new NoteListController(ureq, getWindowControl());
    } else if (uobject.equals(MENU_OTHERUSERS)) {
      titleStr = translate("menu.otherusers");
      return new UserSearchController(ureq, getWindowControl(), false);
    }
     
    return null;
  }
View Full Code Here

  }

  @Override
  public void event(UserRequest ureq, Component source, Event event) {
    if (source == open) {
      UserSearchController userSearch = new UserSearchController(ureq, getWindowControl(), true);
      dialog = new FloatingResizableDialogController(ureq, getWindowControl(), userSearch.getInitialComponent(), "Your title", 350, 350, 400, 200, null, "", true, false);
      dialog.addControllerListener(this);
      panelVc.put("panel", dialog.getInitialComponent());
      panel.setContent(panelVc);
    } else if (source == open2) {
      dialog = new FloatingResizableDialogController(ureq, getWindowControl(), localContent, "Your title", 350, 350, 400, 200, createVelocityContainer("localContent2"), "", true, false);
View Full Code Here

   */
  private void buildStep2(UserRequest ureq) {
    step2Vc = new VelocityContainer("informations", VELOCITY_ROOT + "/step2_wizard_add_owners.html", translator, this);
    step2Vc.contextPut("subtitle", translator.translate("wizard.step2." + CMD_SEARCH_OWNERS));
   
    userSearchCtr = new UserSearchController(ureq, getWindowControl(), false, true, false, UserSearchController.ACTION_KEY_CHOOSE_FINISH);
    userSearchCtr.addControllerListener(this);
   
    // back button
    backButton = LinkFactory.createButton("btn.back", step2Vc, this);
   
View Full Code Here

   *      org.olat.core.gui.control.Event)
   */
  public void event(UserRequest ureq, Component source, Event event) {
    if (source == addUserButton) {
      if (!mayModifyMembers) throw new AssertException("not allowed to add a member!");
      usc = new UserSearchController(ureq, getWindowControl(), true, true, false);     
      this.listenTo(usc);
      Component usersearchview = usc.getInitialComponent();
      cmc = new CloseableModalController(getWindowControl(), translate("close"), usersearchview, true, translate("add.searchuser"));
      cmc.activate();
    } else if (source == addUsersButton) {
View Full Code Here

          getWindowControl().setWarning(translate("participants.message.empty"));
        }
      }
    } else if(source == formManageParticipants && event == DENManageParticipantsForm.ADD_PARTICIPANTS) {
      //open user search controller to manually add users in date
      userSearchCntrl = new UserSearchController(ureq, getWindowControl(), true, true, true);
      userSearchCntrl.addControllerListener(this);
      userSearchCMC = new CloseableModalController(getWindowControl(), "close", userSearchCntrl.getInitialComponent());
      userSearchCMC.activate();
    } else if(source == userSearchCntrl) {
      if(event == Event.CANCELLED_EVENT) {
View Full Code Here

  }
 
  @Override
  protected void  formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
    if (source == userChooser) {
      usc = new UserSearchController(ureq, getWindowControl(), false);
      listenTo(usc);

      cmc = new CloseableModalController(
          getWindowControl(),
          translate("close"),
View Full Code Here

      dialogC = activateOkCancelDialog(ureq, null, translate("question"), dialogC);
     
    } else if (source == searchButton){
      // the user clicked the search button.
      // Create a UserSearchController and display it in a modal dialogue box
      searchC = new UserSearchController(ureq, getWindowControl(), true);
      listenTo(searchC);
     
      //show it in the deprecated manner for now: TODO
      cmc = new CloseableModalController(
          getWindowControl(),
View Full Code Here

    mainVC = createVelocityContainer("guidemo-links");
    buttonXSmall = LinkFactory.createButtonXSmall("button.xsmall", mainVC, this);
    // to test correctness of ajax mode with invisble components
    pFirstInvisible = new Panel("firstinvisble");
    // for demo only
    UserSearchController usc = new UserSearchController(ureq, getWindowControl(), false);
    pFirstInvisible.setContent(usc.getInitialComponent());
    pFirstInvisible.setVisible(false);
    mainVC.put("ajaxtest", pFirstInvisible);
   
    buttonSmall = LinkFactory.createButtonSmall("button.small", mainVC, this);
    button = LinkFactory.createButton("button", mainVC, this);
View Full Code Here

TOP

Related Classes of org.olat.admin.user.UserSearchController

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.