Package com.xpn.xwiki.plugin.feed
Class FeedPluginApi
- java.lang.Object
-
- com.xpn.xwiki.api.Api
-
- com.xpn.xwiki.plugin.PluginApi<FeedPlugin>
-
- com.xpn.xwiki.plugin.feed.FeedPluginApi
-
public class FeedPluginApi extends PluginApi<FeedPlugin>
-
-
Field Summary
Fields Modifier and Type Field Description static String
FEED_PLUGIN_EXCEPTION
-
Constructor Summary
Constructors Constructor Description FeedPluginApi(FeedPlugin plugin, XWikiContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Collection<String>
getActiveUpdateThreads()
com.sun.syndication.feed.synd.SyndFeed
getArticleFeed(String query, int count, int start)
Creates a new feed from the result of an HQL query, using the default strategy for converting articles in feed entries.com.sun.syndication.feed.synd.SyndFeed
getArticleFeed(String query, int count, int start, Map<String,Object> metadata)
Creates a new feed from the result of an HQL query, using the default strategy for converting articles in feed entries, filling in the feed meta data.com.sun.syndication.feed.synd.SyndFeed
getArticleFeed(List<Object> list)
Creates a new feed from a list of articles, using the default strategy for converting articles in feed entries.com.sun.syndication.feed.synd.SyndFeed
getArticleFeed(List<Object> list, Map<String,Object> metadata)
Creates a new feed from a list of articles, using the default strategy for converting articles in feed entries, filling in the feed meta data.String
getArticleFeedOutput(String query, int count, int start, Map<String,Object> metadata, String type)
String
getArticleFeedOutput(List<Object> list, Map<String,Object> metadata, String type)
com.sun.syndication.feed.synd.SyndFeed
getBlogFeed(String query, int count, int start)
Instantiates the default article feed.com.sun.syndication.feed.synd.SyndFeed
getBlogFeed(String query, int count, int start, String blogPostClassName, Map<String,Object> metadata)
Instantiates the default article feed.com.sun.syndication.feed.synd.SyndFeed
getBlogFeed(String query, int count, int start, Map<String,Object> metadata)
Instantiates the default article feed.com.sun.syndication.feed.synd.SyndFeed
getBlogFeed(List<Object> list)
Instantiates the default article feed.com.sun.syndication.feed.synd.SyndFeed
getBlogFeed(List<Object> list, Map<String,Object> metadata)
Instantiates the default article feed.String
getBlogFeedOutput(String query, int count, int start, String blogPostClassName, Map<String,Object> metadata, String type)
String
getBlogFeedOutput(String query, int count, int start, Map<String,Object> metadata, String type)
String
getBlogFeedOutput(List<Object> list, Map<String,Object> metadata, String type)
com.sun.syndication.feed.synd.SyndImage
getDefaultFeedImage()
Creates a new instance of the default feed image.com.sun.syndication.feed.synd.SyndFeed
getDocumentFeed(String query, int count, int start, Map<String,Object> params)
Creates a new feed from the result of an HQL query, using the default strategy for converting documents in feed entries.com.sun.syndication.feed.synd.SyndFeed
getDocumentFeed(String query, int count, int start, Map<String,Object> params, Map<String,Object> metadata)
Creates a new feed from the result of an HQL query, using the default strategy for converting documents in feed entries, filling in the feed meta data.com.sun.syndication.feed.synd.SyndFeed
getDocumentFeed(List<Object> list, Map<String,Object> params)
Creates a new feed from a list of documents, using the default strategy for converting documents in feed entries.com.sun.syndication.feed.synd.SyndFeed
getDocumentFeed(List<Object> list, Map<String,Object> params, Map<String,Object> metadata)
Creates a new feed from a list of documents, using the default strategy for converting documents in feed entries, filling in the feed meta data.String
getDocumentFeedOutput(String query, int count, int start, Map<String,Object> params, Map<String,Object> metadata, String type)
String
getDocumentFeedOutput(List<Object> list, Map<String,Object> params, Map<String,Object> metadata, String type)
com.sun.syndication.feed.synd.SyndFeed
getFeed()
Creates an empty feedcom.sun.syndication.feed.synd.SyndFeed
getFeed(String sfeed)
com.sun.syndication.feed.synd.SyndFeed
getFeed(String sfeed, boolean force)
com.sun.syndication.feed.synd.SyndFeed
getFeed(String sfeed, boolean ignoreInvalidFeeds, boolean force)
com.sun.syndication.feed.synd.SyndFeed
getFeed(String query, int count, int start, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams)
Creates a new feed from the result of an HQL query and a corresponding strategy for converting the retrieved documents in feed entries.com.sun.syndication.feed.synd.SyndFeed
getFeed(String query, int count, int start, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata)
Creates a new feed from the result of an HQL query and a corresponding strategy for converting the retrieved documents in feed entries, filling in the feed meta data.com.sun.syndication.feed.synd.SyndFeed
getFeed(List<Object> list, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams)
Computes a new feed from a list of source items and a corresponding strategy for converting them in feed entriescom.sun.syndication.feed.synd.SyndFeed
getFeed(List<Object> list, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata)
Computes a new feed from a list of source items and a corresponding strategy for converting them in feed entries, filling in the feed meta data.com.sun.syndication.feed.synd.SyndEntry
getFeedEntry()
Creates an empty feed entrycom.sun.syndication.feed.synd.SyndImage
getFeedImage()
Creates an empty feed imagecom.sun.syndication.feed.synd.SyndImage
getFeedImage(String url, String link, String title, String description)
Creates a new feed image having the given properties.String
getFeedOutput(com.sun.syndication.feed.synd.SyndFeed feed, String type)
Converts a feed into its string representation using the specified syntaxString
getFeedOutput(String query, int count, int start, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata, String type)
String
getFeedOutput(List<Object> list, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata, String type)
com.sun.syndication.feed.synd.SyndFeed
getFeeds(String sfeeds)
com.sun.syndication.feed.synd.SyndFeed
getFeeds(String sfeeds, boolean force)
com.sun.syndication.feed.synd.SyndFeed
getFeeds(String sfeeds, boolean ignoreInvalidFeeds, boolean force)
FeedPlugin
getPlugin()
Deprecated.SyndEntrySourceApi
getSyndEntryArticleSource()
Instantiates the default strategy for converting articles in feed entries.SyndEntrySourceApi
getSyndEntryArticleSource(Map<String,Object> params)
Instantiates the default strategy for converting articles in feed entries, allowing you to customize it through parameters.SyndEntrySourceApi
getSyndEntryDocumentSource()
SyndEntrySourceApi
getSyndEntryDocumentSource(Map<String,Object> params)
Instantiates the default strategy for converting documents in feed entries.SyndEntrySourceApi
getSyndEntrySource(String className)
SyndEntrySourceApi
getSyndEntrySource(String className, Map<String,Object> params)
Tries to instantiate a class implementing theSyndEntrySource
interface using the given parametersUpdateThread
getUpdateThread(String space)
com.sun.syndication.feed.synd.SyndFeed
getWebFeed(String query, int count, int start)
Instantiates the default document feed.com.sun.syndication.feed.synd.SyndFeed
getWebFeed(String query, int count, int start, Map<String,Object> metadata)
Instantiates the default document feed.com.sun.syndication.feed.synd.SyndFeed
getWebFeed(List<Object> list)
Instantiates the default document feed.com.sun.syndication.feed.synd.SyndFeed
getWebFeed(List<Object> list, Map<String,Object> metadata)
Instantiates the default document feed.String
getWebFeedOutput(String query, int count, int start, Map<String,Object> metadata, String type)
String
getWebFeedOutput(List<Object> list, Map<String,Object> metadata, String type)
boolean
startUpdateFeedsInSpace(String space, boolean fullContent, int scheduleTimer)
boolean
startUpdateFeedsInSpace(String space, int scheduleTimer)
void
stopUpdateFeedsInSpace(String space)
int
updateFeed(String feedname, String feedurl)
int
updateFeed(String feedname, String feedurl, boolean fullContent)
int
updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry)
int
updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, boolean force)
int
updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, boolean force, String space)
int
updateFeeds()
int
updateFeeds(String feedDoc)
int
updateFeeds(String feedDoc, boolean fullContent)
int
updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry)
int
updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry, boolean force)
int
updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry, boolean force, String space)
int
updateFeedsInSpace(String spaceReference, boolean fullContent, boolean force)
-
Methods inherited from class com.xpn.xwiki.plugin.PluginApi
getInternalPlugin, getProtectedPlugin, setPlugin
-
Methods inherited from class com.xpn.xwiki.api.Api
convert, convert, convert, convertAttachments, getAuthorizationManager, getContextualAuthorizationManager, getXWikiContext, hasAccess, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
-
-
-
-
Field Detail
-
FEED_PLUGIN_EXCEPTION
public static final String FEED_PLUGIN_EXCEPTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FeedPluginApi
public FeedPluginApi(FeedPlugin plugin, XWikiContext context)
-
-
Method Detail
-
getPlugin
@Deprecated public FeedPlugin getPlugin()
Deprecated.Return the inner plugin object, if the user has the required programming rights.- Returns:
- The wrapped plugin object.
-
getFeeds
public com.sun.syndication.feed.synd.SyndFeed getFeeds(String sfeeds) throws IOException
- Throws:
IOException
-
getFeeds
public com.sun.syndication.feed.synd.SyndFeed getFeeds(String sfeeds, boolean force) throws IOException
- Throws:
IOException
-
getFeeds
public com.sun.syndication.feed.synd.SyndFeed getFeeds(String sfeeds, boolean ignoreInvalidFeeds, boolean force) throws IOException
- Throws:
IOException
-
getFeed
public com.sun.syndication.feed.synd.SyndFeed getFeed(String sfeed) throws IOException
- Throws:
IOException
-
getFeed
public com.sun.syndication.feed.synd.SyndFeed getFeed(String sfeed, boolean force) throws IOException
- Throws:
IOException
-
getFeed
public com.sun.syndication.feed.synd.SyndFeed getFeed(String sfeed, boolean ignoreInvalidFeeds, boolean force) throws IOException
- Throws:
IOException
-
updateFeeds
public int updateFeeds() throws XWikiException
- Throws:
XWikiException
-
updateFeeds
public int updateFeeds(String feedDoc) throws XWikiException
- Throws:
XWikiException
-
updateFeeds
public int updateFeeds(String feedDoc, boolean fullContent) throws XWikiException
- Throws:
XWikiException
-
updateFeeds
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry) throws XWikiException
- Throws:
XWikiException
-
updateFeeds
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry, boolean force) throws XWikiException
- Throws:
XWikiException
-
updateFeeds
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry, boolean force, String space) throws XWikiException
- Throws:
XWikiException
-
updateFeedsInSpace
public int updateFeedsInSpace(String spaceReference, boolean fullContent, boolean force) throws XWikiException
- Throws:
XWikiException
-
updateFeed
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry)
-
updateFeed
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, boolean force)
-
updateFeed
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, boolean force, String space)
-
startUpdateFeedsInSpace
public boolean startUpdateFeedsInSpace(String space, int scheduleTimer) throws XWikiException
- Throws:
XWikiException
-
startUpdateFeedsInSpace
public boolean startUpdateFeedsInSpace(String space, boolean fullContent, int scheduleTimer) throws XWikiException
- Throws:
XWikiException
-
stopUpdateFeedsInSpace
public void stopUpdateFeedsInSpace(String space) throws XWikiException
- Throws:
XWikiException
-
getUpdateThread
public UpdateThread getUpdateThread(String space)
-
getActiveUpdateThreads
public Collection<String> getActiveUpdateThreads()
-
getSyndEntrySource
public SyndEntrySourceApi getSyndEntrySource(String className, Map<String,Object> params)
Tries to instantiate a class implementing theSyndEntrySource
interface using the given parameters- Parameters:
className
- the name of a class implementingSyndEntrySource
interfaceparams
- constructor parameters- Returns:
- a new SyndEntrySource instance
-
getSyndEntrySource
public SyndEntrySourceApi getSyndEntrySource(String className)
- See Also:
getSyndEntrySource(String, Map)
-
getSyndEntryDocumentSource
public SyndEntrySourceApi getSyndEntryDocumentSource(Map<String,Object> params)
Instantiates the default strategy for converting documents in feed entries.- Parameters:
params
- strategy parameters- Returns:
- a new
SyndEntrySourceApi
wrapping aSyndEntryDocumentSource
object
-
getSyndEntryDocumentSource
public SyndEntrySourceApi getSyndEntryDocumentSource()
- See Also:
getSyndEntryDocumentSource(Map)
-
getSyndEntryArticleSource
public SyndEntrySourceApi getSyndEntryArticleSource()
Instantiates the default strategy for converting articles in feed entries.- Returns:
- a new
SyndEntrySourceApi
-
getSyndEntryArticleSource
public SyndEntrySourceApi getSyndEntryArticleSource(Map<String,Object> params)
Instantiates the default strategy for converting articles in feed entries, allowing you to customize it through parameters.- Returns:
- a new
SyndEntrySourceApi
-
getFeedEntry
public com.sun.syndication.feed.synd.SyndEntry getFeedEntry()
Creates an empty feed entry- Returns:
- a new feed entry
-
getFeedImage
public com.sun.syndication.feed.synd.SyndImage getFeedImage()
Creates an empty feed image- Returns:
- a new feed image
-
getFeedImage
public com.sun.syndication.feed.synd.SyndImage getFeedImage(String url, String link, String title, String description)
Creates a new feed image having the given properties.- Parameters:
url
- image URLtitle
- image titledescription
- image description- Returns:
- a new feed image
-
getDefaultFeedImage
public com.sun.syndication.feed.synd.SyndImage getDefaultFeedImage()
Creates a new instance of the default feed image. The default image file name is taken from the logo skin preference. If this preference is missing, logo.png is used instead.- Returns:
- a new feed image
-
getFeed
public com.sun.syndication.feed.synd.SyndFeed getFeed()
Creates an empty feed- Returns:
- a new feed
-
getFeed
public com.sun.syndication.feed.synd.SyndFeed getFeed(List<Object> list, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams)
Computes a new feed from a list of source items and a corresponding strategy for converting them in feed entries- Parameters:
list
- the list of source itemssourceApi
- the strategy to use for computing feed entries from source itemssourceParams
- strategy parameters- Returns:
- a new feed
-
getDocumentFeed
public com.sun.syndication.feed.synd.SyndFeed getDocumentFeed(List<Object> list, Map<String,Object> params)
Creates a new feed from a list of documents, using the default strategy for converting documents in feed entries. You can customize this strategy using strategy parameters.- Parameters:
list
- a list ofDocument
objects,XWikiDocument
objects or document namesparams
- strategy parameters- Returns:
- a new feed
- See Also:
Document
,getFeed(List, SyndEntrySourceApi, Map)
,SyndEntryDocumentSource
-
getArticleFeed
public com.sun.syndication.feed.synd.SyndFeed getArticleFeed(List<Object> list)
Creates a new feed from a list of articles, using the default strategy for converting articles in feed entries. By articles we mean any document containing anXWiki.ArticleClass
object.- Parameters:
list
- a list of articles- Returns:
- a new feed
- See Also:
Document
,getFeed(List, SyndEntrySourceApi, Map)
,SyndEntrySourceApi
-
getWebFeed
public com.sun.syndication.feed.synd.SyndFeed getWebFeed(List<Object> list)
Instantiates the default document feed.- Parameters:
list
- a list ofDocument
objects,XWikiDocument
objects or document names- Returns:
- a new feed
- See Also:
getDocumentFeed(List, Map)
-
getBlogFeed
public com.sun.syndication.feed.synd.SyndFeed getBlogFeed(List<Object> list)
Instantiates the default article feed.- Parameters:
list
- a list of articles (as document instances or document names)- Returns:
- a new feed
- See Also:
getArticleFeed(List)
-
getFeed
public com.sun.syndication.feed.synd.SyndFeed getFeed(String query, int count, int start, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams)
Creates a new feed from the result of an HQL query and a corresponding strategy for converting the retrieved documents in feed entries.- Parameters:
query
- the HQL query used for retrieving the documentscount
- the maximum number of documents to retrievestart
- the start indexsourceApi
- the strategy to use for computing feed entries from source itemssourceParams
- strategy parameters- Returns:
- a new feed
-
getDocumentFeed
public com.sun.syndication.feed.synd.SyndFeed getDocumentFeed(String query, int count, int start, Map<String,Object> params)
Creates a new feed from the result of an HQL query, using the default strategy for converting documents in feed entries. You can customize this strategy using strategy parameters.- Parameters:
query
- the HQL query used for retrieving the documentscount
- the maximum number of documents to retrievestart
- the start indexparams
- strategy parameters- Returns:
- a new feed
- See Also:
Document
,getFeed(String, int, int, SyndEntrySourceApi, Map)
,SyndEntryDocumentSource
-
getArticleFeed
public com.sun.syndication.feed.synd.SyndFeed getArticleFeed(String query, int count, int start)
Creates a new feed from the result of an HQL query, using the default strategy for converting articles in feed entries. By articles we mean any document containing aXWiki.ArticleClass
object.- Parameters:
query
- the HQL query used for retrieving the articlescount
- the maximum number of articles to retrievestart
- the start index- Returns:
- a new feed
- See Also:
Document
,getFeed(String, int, int, SyndEntrySourceApi, Map)
,SyndEntrySourceApi
-
getWebFeed
public com.sun.syndication.feed.synd.SyndFeed getWebFeed(String query, int count, int start)
Instantiates the default document feed.- Parameters:
query
- the HQL query used for retrieving the documentscount
- the maximum number of documents to retrievestart
- the start index- Returns:
- a new feed
- See Also:
getDocumentFeed(String, int, int, Map)
-
getBlogFeed
public com.sun.syndication.feed.synd.SyndFeed getBlogFeed(String query, int count, int start)
Instantiates the default article feed.- Parameters:
query
- the HQL query used for retrieving the articlescount
- the maximum number of articles to retrievestart
- the start index- Returns:
- a new feed
- See Also:
getArticleFeed(String, int, int)
-
getFeed
public com.sun.syndication.feed.synd.SyndFeed getFeed(List<Object> list, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata)
Computes a new feed from a list of source items and a corresponding strategy for converting them in feed entries, filling in the feed meta data.- Parameters:
list
- the list of source itemssourceApi
- the strategy to use for computing feed entries from source itemssourceParams
- strategy parametersmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)- Returns:
- a new feed
-
getDocumentFeed
public com.sun.syndication.feed.synd.SyndFeed getDocumentFeed(List<Object> list, Map<String,Object> params, Map<String,Object> metadata)
Creates a new feed from a list of documents, using the default strategy for converting documents in feed entries, filling in the feed meta data. You can customize the default strategy by using strategy parameters.- Parameters:
list
- a list ofDocument
objects,XWikiDocument
objects or document namesparams
- strategy parametersmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)- Returns:
- a new feed
- See Also:
Document
,getFeed(List, SyndEntrySourceApi, Map, Map)
,SyndEntryDocumentSource
-
getArticleFeed
public com.sun.syndication.feed.synd.SyndFeed getArticleFeed(List<Object> list, Map<String,Object> metadata)
Creates a new feed from a list of articles, using the default strategy for converting articles in feed entries, filling in the feed meta data. By articles we mean any document containing anXWiki.ArticleClass
object.- Parameters:
list
- a list of articlesmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)- Returns:
- a new feed
- See Also:
Document
,getFeed(List, SyndEntrySourceApi, Map, Map)
,SyndEntrySourceApi
-
getWebFeed
public com.sun.syndication.feed.synd.SyndFeed getWebFeed(List<Object> list, Map<String,Object> metadata)
Instantiates the default document feed.- Parameters:
list
- a list ofDocument
objects,XWikiDocument
objects or document namesmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)- Returns:
- a new feed
- See Also:
getDocumentFeed(List, Map)
-
getBlogFeed
public com.sun.syndication.feed.synd.SyndFeed getBlogFeed(List<Object> list, Map<String,Object> metadata)
Instantiates the default article feed.- Parameters:
list
- a list of articles (as document instances or document names)metadata
- feed meta data (includes the author, description, copyright, encoding, url, title)- Returns:
- a new feed
- See Also:
getArticleFeed(List, Map)
-
getFeed
public com.sun.syndication.feed.synd.SyndFeed getFeed(String query, int count, int start, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata)
Creates a new feed from the result of an HQL query and a corresponding strategy for converting the retrieved documents in feed entries, filling in the feed meta data.- Parameters:
query
- the HQL query used for retrieving the documentscount
- the maximum number of documents to retrievestart
- the start indexsourceApi
- the strategy to use for computing feed entries from source itemssourceParams
- strategy parametersmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)- Returns:
- a new feed
-
getDocumentFeed
public com.sun.syndication.feed.synd.SyndFeed getDocumentFeed(String query, int count, int start, Map<String,Object> params, Map<String,Object> metadata)
Creates a new feed from the result of an HQL query, using the default strategy for converting documents in feed entries, filling in the feed meta data. You can customize the default strategy by using strategy parameters.- Parameters:
query
- the HQL query used for retrieving the documentscount
- the maximum number of documents to retrievestart
- the start indexparams
- strategy parametersmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)- Returns:
- a new feed
- See Also:
Document
,getFeed(String, int, int, SyndEntrySourceApi, Map, Map)
,SyndEntryDocumentSource
-
getArticleFeed
public com.sun.syndication.feed.synd.SyndFeed getArticleFeed(String query, int count, int start, Map<String,Object> metadata)
Creates a new feed from the result of an HQL query, using the default strategy for converting articles in feed entries, filling in the feed meta data. By articles we mean any document containing aXWiki.ArticleClass
object.- Parameters:
query
- the HQL query used for retrieving the articlescount
- the maximum number of articles to retrievestart
- the start indexmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)- Returns:
- a new feed
- See Also:
Document
,getFeed(String, int, int, SyndEntrySourceApi, Map, Map)
,SyndEntrySourceApi
-
getWebFeed
public com.sun.syndication.feed.synd.SyndFeed getWebFeed(String query, int count, int start, Map<String,Object> metadata)
Instantiates the default document feed.- Parameters:
query
- the HQL query used for retrieving the documentscount
- the maximum number of documents to retrievestart
- the start indexmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)- Returns:
- a new feed
- See Also:
getDocumentFeed(String, int, int, Map)
-
getBlogFeed
public com.sun.syndication.feed.synd.SyndFeed getBlogFeed(String query, int count, int start, Map<String,Object> metadata)
Instantiates the default article feed.- Parameters:
query
- the HQL query used for retrieving the articlescount
- the maximum number of articles to retrievestart
- the start indexmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)- Returns:
- a new feed
- See Also:
getArticleFeed(String, int, int, Map)
-
getBlogFeed
public com.sun.syndication.feed.synd.SyndFeed getBlogFeed(String query, int count, int start, String blogPostClassName, Map<String,Object> metadata)
Instantiates the default article feed.- Parameters:
query
- the HQL query used for retrieving the articlescount
- the maximum number of articles to retrievestart
- the start indexblogPostClassName
- The name of the Blog Class the data are retrieved from. If null the Default Blog Application is used.metadata
- feed meta data (includes the author, description, copyright, encoding, url, title)- Returns:
- a new feed
- See Also:
getArticleFeed(String, int, int, Map)
-
getFeedOutput
public String getFeedOutput(com.sun.syndication.feed.synd.SyndFeed feed, String type)
Converts a feed into its string representation using the specified syntax- Parameters:
feed
- any type of feed, implementing theSyndFeed
interfacetype
- the feed type (syntax) to use, null if none. It can be any version of RSS or Atom. Some possible values are "rss_1.0", "rss_2.0" and "atom_1.0"- Returns:
- the string representation of the given feed using the syntax associated with the specified feed type
-
getFeedOutput
public String getFeedOutput(List<Object> list, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata, String type)
-
getDocumentFeedOutput
public String getDocumentFeedOutput(List<Object> list, Map<String,Object> params, Map<String,Object> metadata, String type)
-
getArticleFeedOutput
public String getArticleFeedOutput(List<Object> list, Map<String,Object> metadata, String type)
-
getWebFeedOutput
public String getWebFeedOutput(List<Object> list, Map<String,Object> metadata, String type)
-
getBlogFeedOutput
public String getBlogFeedOutput(List<Object> list, Map<String,Object> metadata, String type)
-
getFeedOutput
public String getFeedOutput(String query, int count, int start, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata, String type)
-
getDocumentFeedOutput
public String getDocumentFeedOutput(String query, int count, int start, Map<String,Object> params, Map<String,Object> metadata, String type)
-
getArticleFeedOutput
public String getArticleFeedOutput(String query, int count, int start, Map<String,Object> metadata, String type)
-
getWebFeedOutput
public String getWebFeedOutput(String query, int count, int start, Map<String,Object> metadata, String type)
-
getBlogFeedOutput
public String getBlogFeedOutput(String query, int count, int start, Map<String,Object> metadata, String type)
-
-