Package org.olat.basesecurity.events

Examples of org.olat.basesecurity.events.SingleIdentityChosenEvent


   * @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest, org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)
   */
  public void event(UserRequest ureq, Controller source, Event event) {
    if (source == contentCtr ) {
      if (event instanceof SingleIdentityChosenEvent) {
        SingleIdentityChosenEvent userChoosenEvent = (SingleIdentityChosenEvent) event;
        Identity identity = userChoosenEvent.getChosenIdentity();
        // cleanup old userAdminCtr controller
        removeAsListenerAndDispose(userAdminCtr);
        userAdminCtr = new UserAdminController(ureq, getWindowControl(), identity);
        listenTo(userAdminCtr);
        // activate a special pane in the tabbed pane when set
View Full Code Here


  }

  @Override
  protected void event(UserRequest ureq, Controller source, Event event) {
    if(source == usc && event.getCommand().equals("IdentityFound")){
      SingleIdentityChosenEvent uce = (SingleIdentityChosenEvent) event;
      identity = uce.getChosenIdentity();
      userName.setValue(identity.getName());
      cmc.deactivate();
    }
  }
View Full Code Here

    } else if (source == searchC) {
      // it is the UserSearchController talking to us
      if (event instanceof SingleIdentityChosenEvent) {
        // some user was chosen
        // (UserSearchController's javadoc shows when which event is fired)
        SingleIdentityChosenEvent uce = (SingleIdentityChosenEvent) event;

        // prepare the homepage configuration for this user
        Identity identity = uce.getChosenIdentity();
        HomePageConfig homePageConfig = HomePageConfigManagerImpl.getInstance().loadConfigFor(
            identity.getName()
        );

        // create the controller with this configuration
View Full Code Here

TOP

Related Classes of org.olat.basesecurity.events.SingleIdentityChosenEvent

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.