public class RSS extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
RSS(javax.jcr.Node node) |
| Modifier and Type | Method and Description |
|---|---|
com.rometools.rome.feed.synd.SyndFeed |
addEntry(com.rometools.rome.feed.synd.SyndEntry newEntry)
Adds an entry to the feed
|
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
|
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 |
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.rometools.rome.feed.synd.SyndFeed |
read()
Read a SyndFeed from the
|
com.rometools.rome.feed.synd.SyndFeed |
removeEntry(String uri)
Remove an item for the feed
|
void |
saveFeed(com.rometools.rome.feed.synd.SyndFeed feed,
String rssNodeType) |
void |
setContent(InputStream is) |
void |
setFileName(String fileName) |
void |
setItemNode(javax.jcr.Node itemNode) |
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
public String getFileName()
public void setFileName(String fileName)
public InputStream getContent()
public void setContent(InputStream is)
public com.rometools.rome.feed.synd.SyndFeed read()
public com.rometools.rome.feed.synd.SyndFeed removeEntry(String uri)
uri - public com.rometools.rome.feed.synd.SyndFeed addEntry(com.rometools.rome.feed.synd.SyndEntry newEntry)
newEntry - public void saveFeed(com.rometools.rome.feed.synd.SyndFeed feed,
String rssNodeType)
public boolean feedExists()
public static com.rometools.rome.feed.synd.SyndFeed createNewFeed(String title, Date pubDate)
rss_2.0public 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)
uri - uri of itemtitle - title of itemlink - link to this itemlistContent - the content of itemdescription - the description for this itempublic javax.jcr.Node getItemNode()
public void setItemNode(javax.jcr.Node itemNode)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.