Examples of addUserObject()


Examples of org.olat.core.commons.services.commentAndRating.impl.ui.UserCommentsAndRatingsController.addUserObject()

  private void createCommentsAndRatingsLink(UserRequest ureq, Feed feed, Item item) {
    CommentAndRatingService commentAndRatingService = (CommentAndRatingService) ServiceFactory.getServiceOrNull(CommentAndRatingService.class);
    if (commentAndRatingService != null) {       
      commentAndRatingService.init(getIdentity(), feed, item.getGuid(), callback.mayEditMetadata(), ureq.getUserSession().getRoles().isGuestOnly());
      UserCommentsAndRatingsController commentsAndRatingCtr = commentAndRatingService.createUserCommentsAndRatingControllerMinimized(ureq, getWindowControl());
      commentsAndRatingCtr.addUserObject(item);
      listenTo(commentsAndRatingCtr);
      String guid = item.getGuid();
      vcItems.put("commentsAndRating." + guid, commentsAndRatingCtr.getInitialComponent());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.