Package org.olat.modules.webFeed

Examples of org.olat.modules.webFeed.FeedSecurityCallback


  public MainLayoutController getLaunchController(OLATResourceable res, String initialViewIdentifier, UserRequest ureq,
      WindowControl wControl) {
    RepositoryEntry repoEntry = RepositoryManager.getInstance().lookupRepositoryEntry(res, false);
    boolean isAdmin = ureq.getUserSession().getRoles().isOLATAdmin();
    boolean isOwner = RepositoryManager.getInstance().isOwnerOfRepositoryEntry(ureq.getIdentity(), repoEntry)
    FeedSecurityCallback callback = new FeedResourceSecurityCallback(isAdmin, isOwner);
    Controller blogCtr = BlogUIFactory.getInstance(ureq.getLocale()).createMainController(res, ureq, wControl, callback);
    LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, wControl, null, null, blogCtr.getInitialComponent(), null);
    layoutCtr.addDisposableChildController(blogCtr);
    return layoutCtr;
  }
View Full Code Here


  public MainLayoutController getLaunchController(OLATResourceable res, String initialViewIdentifier, UserRequest ureq,
      WindowControl wControl) {
    RepositoryEntry repoEntry = RepositoryManager.getInstance().lookupRepositoryEntry(res, false);
    boolean isAdmin = ureq.getUserSession().getRoles().isOLATAdmin();
    boolean isOwner = RepositoryManager.getInstance().isOwnerOfRepositoryEntry(ureq.getIdentity(), repoEntry)
    FeedSecurityCallback callback = new FeedResourceSecurityCallback(isAdmin, isOwner);
    Controller podcastCtr = PodcastUIFactory.getInstance(ureq.getLocale()).createMainController(res, ureq, wControl, callback);
    LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, wControl, null, null, podcastCtr.getInitialComponent(), null);
    layoutCtr.addDisposableChildController(podcastCtr);
    return layoutCtr;
  }
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 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

      RepositoryEntry re = node.getReferencedRepositoryEntry();
      if (re == null) {
        // The repository entry has been deleted meanwhile.
        this.showError("error.repoentrymissing");
      } else {
        FeedSecurityCallback callback = new FeedPreviewSecurityCallback();
        feedController = uiFactory.createMainController(re.getOlatResource(), ureq, getWindowControl(), callback, course
            .getResourceableId(), node.getIdent());
        cmcFeedCtr = new CloseableModalController(getWindowControl(), translate("command.close"), feedController.getInitialComponent());
        this.listenTo(cmcFeedCtr);
        // cmcFeedCtr.insertHeaderCss();
View Full Code Here

TOP

Related Classes of org.olat.modules.webFeed.FeedSecurityCallback

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.