|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.forum.rss.RSS
public class RSS
Created by The eXo Platform SARL Author : Ha Mai ha.mai@exoplatform.com Jan 12, 2009, 5:55:37 PM
| Field Summary | |
|---|---|
protected static String |
CONTENT_PROPERTY
|
static String |
DEFAULT_FEED_LINK
|
static String |
PLAIN_TEXT
|
protected static String |
RSS_2_0
|
protected static String |
RSS_NODE_NAME
|
| Constructor Summary | |
|---|---|
RSS(javax.jcr.Node node)
|
|
| Method Summary | |
|---|---|
com.sun.syndication.feed.synd.SyndFeed |
addEntry(com.sun.syndication.feed.synd.SyndEntry newEntry)
Adds an entry to the feed |
static com.sun.syndication.feed.synd.SyndEntry |
createNewEntry(String uri,
String title,
String link,
List<String> listContent,
com.sun.syndication.feed.synd.SyndContent description,
Date pubDate,
String author)
Create new entry |
static com.sun.syndication.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 |
boolean |
feedExists()
|
InputStream |
getContent()
|
String |
getFileName()
|
javax.jcr.Node |
getItemNode()
|
static String |
getRSSLink(String appType,
String portalName,
String objectId)
|
static String |
getUserRSSLink(String apptype,
String userId)
|
com.sun.syndication.feed.synd.SyndFeed |
read()
Read a SyndFeed from the |
com.sun.syndication.feed.synd.SyndFeed |
removeEntry(String uri)
Remove an item for the feed |
void |
saveFeed(com.sun.syndication.feed.synd.SyndFeed feed,
String rssNodeType)
|
void |
setContent(InputStream is)
|
void |
setFileName(String fileName)
|
void |
setItemNode(javax.jcr.Node itemNode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String CONTENT_PROPERTY
protected static final String RSS_NODE_NAME
protected static final String RSS_2_0
public static final String PLAIN_TEXT
public static final String DEFAULT_FEED_LINK
| Constructor Detail |
|---|
public RSS(javax.jcr.Node node)
| Method Detail |
|---|
public static String getRSSLink(String appType,
String portalName,
String objectId)
public static String getUserRSSLink(String apptype,
String userId)
public String getFileName()
public void setFileName(String fileName)
public InputStream getContent()
public void setContent(InputStream is)
public com.sun.syndication.feed.synd.SyndFeed read()
Exceptionpublic com.sun.syndication.feed.synd.SyndFeed removeEntry(String uri)
uri -
Exceptionpublic com.sun.syndication.feed.synd.SyndFeed addEntry(com.sun.syndication.feed.synd.SyndEntry newEntry)
newEntry -
public void saveFeed(com.sun.syndication.feed.synd.SyndFeed feed,
String rssNodeType)
public boolean feedExists()
public static com.sun.syndication.feed.synd.SyndFeed createNewFeed(String title,
Date pubDate)
rss_2.0
public static com.sun.syndication.feed.synd.SyndEntry createNewEntry(String uri,
String title,
String link,
List<String> listContent,
com.sun.syndication.feed.synd.SyndContent description,
Date pubDate,
String author)
uri - uri of itemtitle - title of itemlink - link to this itemlistContent - the content of itemdescription - the description for this item
public javax.jcr.Node getItemNode()
public void setItemNode(javax.jcr.Node itemNode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||