Package org.olat.course.nodes.feed

Examples of org.olat.course.nodes.feed.FeedNodeSecurityCallback


    // getIdent();
    Long courseId = userCourseEnv.getCourseEnvironment().getCourseResourceableId();
    String nodeId = this.getIdent();
    boolean isAdmin = ureq.getUserSession().getRoles().isOLATAdmin();
    boolean isGuest = ureq.getUserSession().getRoles().isGuestOnly();
    FeedSecurityCallback callback = new FeedNodeSecurityCallback(ne, isAdmin, isGuest);
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrap(this));
    FeedMainController podcastCtr = PodcastUIFactory.getInstance(ureq.getLocale()).createMainController(entry.getOlatResource(), ureq, control,
        callback, courseId, nodeId);
    podcastCtr.activate(ureq, nodecmd);
    Controller wrapperCtrl = TitledWrapperHelper.getWrapper(ureq, control, podcastCtr, this, "o_podcast_icon");
View Full Code Here


      RepositoryEntry entry = getReferencedRepositoryEntry();
      Long courseId = userCourseEnv.getCourseEnvironment().getCourseResourceableId();
      String nodeId = this.getIdent();
      boolean isAdmin = ureq.getUserSession().getRoles().isOLATAdmin();
      boolean isGuest = ureq.getUserSession().getRoles().isGuestOnly();
      FeedSecurityCallback callback = new FeedNodeSecurityCallback(ne, isAdmin, isGuest);
      FeedUIFactory uiFactory = PodcastUIFactory.getInstance(ureq.getLocale());
      Controller peekViewController = new FeedPeekviewController(entry.getOlatResource(), ureq, wControl, callback, courseId, nodeId, uiFactory, 2, "o_podcast_peekview");
      return peekViewController;
    } else {
      // use standard peekview
View Full Code Here

    // getIdent();
    Long courseId = userCourseEnv.getCourseEnvironment().getCourseResourceableId();
    String nodeId = this.getIdent();
    boolean isAdmin = ureq.getUserSession().getRoles().isOLATAdmin();
    boolean isGuest = ureq.getUserSession().getRoles().isGuestOnly();
    FeedSecurityCallback callback = new FeedNodeSecurityCallback(ne, isAdmin, isGuest);
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrap(this));
    FeedMainController blogCtr = BlogUIFactory.getInstance(ureq.getLocale()).createMainController(entry.getOlatResource(), ureq, wControl, callback,
        courseId, nodeId);
    blogCtr.activate(ureq, nodecmd);
    Controller wrapperCtrl = TitledWrapperHelper.getWrapper(ureq, wControl, blogCtr, this, "o_blog_icon");
View Full Code Here

      RepositoryEntry entry = getReferencedRepositoryEntry();
      Long courseId = userCourseEnv.getCourseEnvironment().getCourseResourceableId();
      String nodeId = this.getIdent();
      boolean isAdmin = ureq.getUserSession().getRoles().isOLATAdmin();
      boolean isGuest = ureq.getUserSession().getRoles().isGuestOnly();
      FeedSecurityCallback callback = new FeedNodeSecurityCallback(ne, isAdmin, isGuest);
      FeedUIFactory uiFactory = BlogUIFactory.getInstance(ureq.getLocale());
      Controller peekViewController = new FeedPeekviewController(entry.getOlatResource(), ureq, wControl, callback, courseId, nodeId, uiFactory, 2, "o_blog_peekview");
      return peekViewController;
    } else {
      // use standard peekview
View Full Code Here

TOP

Related Classes of org.olat.course.nodes.feed.FeedNodeSecurityCallback

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.