Package org.olat.user

Examples of org.olat.user.DisplayPortraitController


      replyMsgLayout.setLabel("label.replytomsg", new String[] { replyMessage.getTitle() });
      Identity identity = replyMessage.getCreator();
      replyMsgLayout.contextPut("identity", identity);
      replyMsgLayout.contextPut("messageBody", replyMessage.getBody());
      replyMsgLayout.contextPut("message", replyMessage);
      portraitCtr = new DisplayPortraitController(ureq, getWindowControl(), identity, true, true);
      replyMsgLayout.put("portrait", portraitCtr.getInitialComponent());
    }

  }
View Full Code Here


    if(!isThreadtop) {
      isThreadClosed = Status.getStatus(m.getThreadtop().getStatusCode()).isClosed();
    }
    map.put("isThreadClosed", isThreadClosed);
    // add portrait to map for later disposal and key for rendering in velocity
    DisplayPortraitController portrait = new DisplayPortraitController(ureq, getWindowControl(), m.getCreator(), true, true);
    // add also to velocity
    map.put("portrait", portrait);
    String portraitComponentVCName = m.getKey().toString();
    map.put("portraitComponentVCName", portraitComponentVCName);
    vcContainer.put(portraitComponentVCName, portrait.getInitialComponent());
    allList.add(map);
   
    LinkFactory.createCustomLink("open_in_thread_"+msgCount, "open_in_thread_"+msgCount, "msg.open_in_thread", Link.BUTTON_SMALL, vcThreadView, this);
  }
View Full Code Here

    if(!isThreadtop) {
      isThreadClosed = Status.getStatus(m.getThreadtop().getStatusCode()).isClosed();
    }
    map.put("isThreadClosed", isThreadClosed);
    // add portrait to map for later disposal and key for rendering in velocity
    DisplayPortraitController portrait = new DisplayPortraitController(ureq, getWindowControl(), m.getCreator(), true, true);
    // add also to velocity
    map.put("portrait", portrait);
    String portraitComponentVCName = m.getKey().toString();
    map.put("portraitComponentVCName", portraitComponentVCName);
    vcContainer.put(portraitComponentVCName, portrait.getInitialComponent());
    allList.add(map);
    /*
     * those Link objects are used! see event method and the instanceof Link part!
     * but reference won't be used!
     */
 
View Full Code Here

    myContent.contextPut("foundUserName", identity.getName());
    myContent.contextPut("foundFirstName", identity.getUser().getProperty(UserConstants.FIRSTNAME, loc));
    myContent.contextPut("foundLastName", identity.getUser().getProperty(UserConstants.LASTNAME, loc));
    myContent.contextPut("foundEmail", identity.getUser().getProperty(UserConstants.EMAIL, loc));
    removeAsListenerAndDispose(portraitCtr);
    portraitCtr = new DisplayPortraitController(ureq, getWindowControl(), identity, true, true);
    myContent.put("portrait", portraitCtr.getInitialComponent());
    removeAsListenerAndDispose(userShortDescrCtr);
    userShortDescrCtr = new UserShortDescription(ureq, getWindowControl(), identity);
    myContent.put("userShortDescription", userShortDescrCtr.getInitialComponent());
  }
View Full Code Here

TOP

Related Classes of org.olat.user.DisplayPortraitController

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.