Package org.olat.modules.webFeed

Examples of org.olat.modules.webFeed.FeedViewHelper


    super(ureq, wControl);
    this.uiFactory = uiFactory;
    this.callback = callback;
    setTranslator(uiFactory.getTranslator());
    feed = feedManager.readFeed(ores);
    helper = new FeedViewHelper(feed, getIdentity(), uiFactory.getTranslator(), courseId, nodeId, callback);
    CoordinatorManager.getCoordinator().getEventBus().registerFor(this, ureq.getIdentity(), feed);
    display(ureq, wControl);   
    // do logging
    ThreadLocalUserActivityLogger.log(FeedLoggingAction.FEED_READ, getClass(), LoggingResourceable.wrap(feed));
  }
View Full Code Here


    Feed feed = feedManager.readFeed(olatResource);

    VelocityContainer peekviewVC = createVelocityContainer("peekview");
    peekviewVC.contextPut("wrapperCssClass", wrapperCssClass != null ? wrapperCssClass : "");
    // add gui helper
    FeedViewHelper helper = new FeedViewHelper(feed, getIdentity(), getTranslator(), courseId, nodeId, callback);
    peekviewVC.contextPut("helper", helper);
    // add items, only as many as configured
    List<Item> allItems = helper.getItems(callback);
    List<Item> items = new ArrayList<Item>();
    for (int i = 0; i < allItems.size(); i++) {
      if (items.size() == itemsToDisplay) {
        break;
      }
View Full Code Here

TOP

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

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.