Package org.olat.modules.webFeed.models

Examples of org.olat.modules.webFeed.models.Item


    feedManager.updateFeedMetadata(feed);

    // Add an episode
    // A feed can only be edited when it is an internal feed (meaning that
    // it is made within OLAT). Obviously, external feeds cannot be changed.
    Item item = new Item();
    item.setTitle("My Test Item");
    feed = feedManager.updateFeedMode(Boolean.FALSE, feed);
    feedManager.addItem(item, null, feed);
  }
View Full Code Here


  /**
   * Test method add
   */
  public void testAdd() {
    Item newEpisode = new Item();
    newEpisode.setGuid(CodeHelper.getGlobalForeverUniqueID());
    newEpisode.setTitle("This is my new Item");
    // Count episodes before
    int initialCount = feed.getItems().size();
    feedManager.addItem(newEpisode, null, feed);
    // re-read feed and count episodes
    feed = feedManager.readFeed(feed);
View Full Code Here

  /**
   * Test method remove
   */
  public void testRemove() {
    Item item = feed.getItems().get(0);
    // Count episodes before
    int initialCount = feed.getItems().size();
    feedManager.remove(item, feed);
    // re-read feed and count episodes after adding a new one
    feed = feedManager.readFeed(feed);
View Full Code Here

TOP

Related Classes of org.olat.modules.webFeed.models.Item

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.