Class RSS

java.lang.Object
org.exoplatform.forum.rss.RSS

public class RSS extends Object
  • Field Details

    • CONTENT_PROPERTY

      protected static final String CONTENT_PROPERTY
    • RSS_NODE_NAME

      protected static final String RSS_NODE_NAME
    • RSS_2_0

      protected static final String RSS_2_0
    • PLAIN_TEXT

      public static final String PLAIN_TEXT
  • Constructor Details

    • RSS

      public RSS(javax.jcr.Node node)
  • Method Details

    • getRSSLink

      public static String getRSSLink(String appType, String portalName, String objectId)
    • getUserRSSLink

      public static String getUserRSSLink(String apptype, String userId)
    • getFileName

      public String getFileName()
    • setFileName

      public void setFileName(String fileName)
    • getContent

      public InputStream getContent()
    • setContent

      public void setContent(InputStream is)
    • read

      public com.rometools.rome.feed.synd.SyndFeed read()
      Read a SyndFeed from the
      Returns:
    • removeEntry

      public com.rometools.rome.feed.synd.SyndFeed removeEntry(String uri)
      Remove an item for the feed
      Parameters:
      uri -
      Returns:
    • addEntry

      public com.rometools.rome.feed.synd.SyndFeed addEntry(com.rometools.rome.feed.synd.SyndEntry newEntry)
      Adds an entry to the feed
      Parameters:
      newEntry -
      Returns:
    • saveFeed

      public void saveFeed(com.rometools.rome.feed.synd.SyndFeed feed, String rssNodeType)
    • feedExists

      public boolean feedExists()
    • createNewFeed

      public static com.rometools.rome.feed.synd.SyndFeed createNewFeed(String title, Date pubDate)
      Create a new feed with some default content: link is the link to eXo web site and feed type is rss_2.0
      Returns:
    • createNewEntry

      public static com.rometools.rome.feed.synd.SyndEntry createNewEntry(String uri, String title, String link, List<String> listContent, com.rometools.rome.feed.synd.SyndContent description, Date pubDate, String author)
      Create new entry
      Parameters:
      uri - uri of item
      title - title of item
      link - link to this item
      listContent - the content of item
      description - the description for this item
      Returns:
      SyndEntry
    • getItemNode

      public javax.jcr.Node getItemNode()
    • setItemNode

      public void setItemNode(javax.jcr.Node itemNode)