Package org.olat.core.commons.creator

Examples of org.olat.core.commons.creator.UserAvatarDisplayControllerCreator


    User user = userComment.getCreator().getUser();
    TextComponent creator = TextFactory.createTextComponentFromI18nKey("creator", null, null, null, true, userCommentDisplayVC);
    creator.setText(translate("comments.comment.creator", new String[]{user.getProperty(UserConstants.FIRSTNAME, null), user.getProperty(UserConstants.LASTNAME, null)}));
    // Portrait
    if (CoreSpringFactory.containsBean(UserAvatarDisplayControllerCreator.class.getName())) {
      UserAvatarDisplayControllerCreator avatarControllerCreator = (UserAvatarDisplayControllerCreator) CoreSpringFactory.getBean(UserAvatarDisplayControllerCreator.class);
      Controller avatarCtr = avatarControllerCreator.createController(ureq, getWindowControl(), userComment.getCreator(), false, true);
      listenTo(avatarCtr);
      this.userCommentDisplayVC.put("avatarCtr", avatarCtr.getInitialComponent());
    }
    // Delete link
    if(securityCallback.canDeleteComment(userComment)) {
View Full Code Here

TOP

Related Classes of org.olat.core.commons.creator.UserAvatarDisplayControllerCreator

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.