1 25 26 package org.snipsnap.semanticweb.rss; 27 28 import org.snipsnap.snip.Blog; 29 import org.snipsnap.snip.SnipSpaceFactory; 30 import org.snipsnap.snip.Snip; 31 import org.snipsnap.snip.SnipSpace; 32 import org.snipsnap.app.Application; 33 import org.snipsnap.feeder.Feeder; 34 35 import java.util.List ; 36 37 45 46 public class RecentlySnipChangedFeeder implements Feeder { 47 private SnipSpace space; 48 49 public RecentlySnipChangedFeeder() { 50 space = SnipSpaceFactory.getInstance(); 51 } 52 53 public String getName() { 54 return "recentlychanged"; 55 } 56 57 public List getFeed() { 58 List changed = space.getChanged(10); 59 return changed; 60 }; 61 62 public Snip getContextSnip() { 63 String startName = Application.get().getConfiguration().getStartSnip(); 64 return space.load(startName); 65 } 66 } 67 | Popular Tags |