Package org.olat.user

Examples of org.olat.user.UserInfoMainController


        if (te.getActionId().equals(CMD_SHOW)) {
          showMessages(ureq, selectedInfo);
        } else if (te.getActionId().equals(CMD_HOMEPAGE)) {
          ControllerCreator ctrlCreator = new ControllerCreator() {
            public Controller createController(UserRequest lureq, WindowControl lwControl) {
              return new UserInfoMainController(lureq, lwControl, selectedInfo.getIdentity());
            }
          };
          // wrap the content controller into a full header layout
          ControllerCreator layoutCtrlr = BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, ctrlCreator);
          // open in new browser window
View Full Code Here


        DTab dt = dts.getDTab(ores);
        if (dt == null) {
          // does not yet exist -> create and add
          dt = dts.createDTab(ores, chosenIdentity.getName());
          if (dt == null) return;
          UserInfoMainController uimc = new UserInfoMainController(ureq, dt.getWindowControl(), chosenIdentity);
          dt.setController(uimc);
          dts.addDTab(dt);
        }
        dts.activate(ureq, dt, null);
      }
View Full Code Here

      }
    }
  }
 
  private void openVisitingCard(UserRequest ureq) {
    UserInfoMainController uimc = new UserInfoMainController(ureq, getWindowControl(), selectedIdentity);
    CloseableModalController cmcUserInfo = new CloseableModalController(getWindowControl(), translate("cl.close"), uimc.getInitialComponent());
    cmcUserInfo.activate();
  }
View Full Code Here

          // get identitiy and open new visiting card controller in new window
          int rowid = te.getRowId();
          final Identity identity = tdm.getIdentityAt(rowid);
          ControllerCreator userInfoMainControllerCreator = new ControllerCreator() {
            public Controller createController(UserRequest lureq, WindowControl lwControl) {
              return new UserInfoMainController(lureq, lwControl, identity);
            }
          };
          // wrap the content controller into a full header layout
          ControllerCreator layoutCtrlr = BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, userInfoMainControllerCreator);
          // open in new browser window
View Full Code Here

          // get identitiy and open new visiting card controller in new window
          int rowid = te.getRowId();
          final Identity identity = identitiesTableModel.getIdentityAt(rowid);
          ControllerCreator userInfoMainControllerCreator = new ControllerCreator() {
            public Controller createController(UserRequest lureq, WindowControl lwControl) {
              return new UserInfoMainController(lureq, lwControl, identity);
            }         
          };
          //wrap the content controller into a full header layout
          ControllerCreator layoutCtrlr = BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, userInfoMainControllerCreator);
          //open in new browser window
View Full Code Here

 
  /**
   * Return the UserInfoMainController packed in a JumpInResult
   */
  public JumpInResult createJumpInResult(UserRequest ureq, WindowControl wControl) {
    Controller homePageController =  new UserInfoMainController(ureq, wControl, identity);
    return new JumpInResult(homePageController, null);
  }
View Full Code Here

      if (source instanceof Link) {
        Link projectLeaderLink = (Link)source;
        final Identity identity = (Identity)projectLeaderLink.getUserObject();
        ControllerCreator ctrlCreator = new ControllerCreator() {
          public Controller createController(UserRequest lureq, WindowControl lwControl) {
            return new UserInfoMainController(lureq, lwControl, identity);
          }
        };
        // wrap the content controller into a full header layout
        ControllerCreator layoutCtrlr = BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(ureq, ctrlCreator);
        // open in new browser window
View Full Code Here

      this.showInfo("show.info.no.project.leader");
    } else if (projectAt.getProjectLeaders().size() > 0) {
      // Open visiting card in new popup
      ControllerCreator ctrlCreator = new ControllerCreator() {
        public Controller createController(UserRequest lureq, WindowControl lwControl) {
          return new UserInfoMainController(lureq, lwControl, projectAt.getProjectLeaders().get(0));
        }
      };
      // wrap the content controller into a full header layout
      ControllerCreator layoutCtrlr = BaseFullWebappPopupLayoutFactory.createAuthMinimalPopupLayout(urequest, ctrlCreator);
      this.openInNewBrowserWindow(urequest, layoutCtrlr);
View Full Code Here

          DTab dt = dts.getDTab(ores);
          if (dt == null) {
            // does not yet exist -> create and add
            dt = dts.createDTab(ores, chosenIdentity.getName());
            if (dt == null) return;
            UserInfoMainController uimc = new UserInfoMainController(ureq, dt.getWindowControl(), chosenIdentity);
            dt.setController(uimc);
            dts.addDTab(dt);
          }
          dts.activate(ureq, dt, null);
        }
View Full Code Here

TOP

Related Classes of org.olat.user.UserInfoMainController

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.