public class FeedPluginApi extends PluginApi<FeedPlugin>
Modifier and Type | Field and Description |
---|---|
static String |
FEED_PLUGIN_EXCEPTION |
Constructor and Description |
---|
FeedPluginApi(FeedPlugin plugin,
XWikiContext context) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getActiveUpdateThreads() |
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.
|
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.
|
String |
getArticleFeedOutput(List<Object> list,
Map<String,Object> metadata,
String type) |
String |
getArticleFeedOutput(String query,
int count,
int start,
Map<String,Object> metadata,
String type) |
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.
|
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,
Map<String,Object> metadata)
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.
|
String |
getBlogFeedOutput(List<Object> list,
Map<String,Object> metadata,
String type) |
String |
getBlogFeedOutput(String query,
int count,
int start,
Map<String,Object> metadata,
String type) |
String |
getBlogFeedOutput(String query,
int count,
int start,
String blogPostClassName,
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(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.
|
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.
|
String |
getDocumentFeedOutput(List<Object> list,
Map<String,Object> params,
Map<String,Object> metadata,
String type) |
String |
getDocumentFeedOutput(String query,
int count,
int start,
Map<String,Object> params,
Map<String,Object> metadata,
String type) |
com.sun.syndication.feed.synd.SyndFeed |
getFeed()
Creates an empty feed
|
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
|
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.
|
com.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.SyndEntry |
getFeedEntry()
Creates an empty feed entry
|
com.sun.syndication.feed.synd.SyndImage |
getFeedImage()
Creates an empty feed image
|
com.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(List<Object> list,
SyndEntrySourceApi sourceApi,
Map<String,Object> sourceParams,
Map<String,Object> metadata,
String type) |
String |
getFeedOutput(String query,
int count,
int start,
SyndEntrySourceApi sourceApi,
Map<String,Object> sourceParams,
Map<String,Object> metadata,
String type) |
String |
getFeedOutput(com.sun.syndication.feed.synd.SyndFeed feed,
String type)
Converts a feed into its string representation using the specified syntax
|
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 the
SyndEntrySource interface using the given parameters |
UpdateThread |
getUpdateThread(String space) |
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.
|
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.
|
String |
getWebFeedOutput(List<Object> list,
Map<String,Object> metadata,
String type) |
String |
getWebFeedOutput(String query,
int count,
int start,
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) |
getInternalPlugin, getProtectedPlugin, setPlugin
convert, convert, convert, convertAttachments, getAuthorizationManager, getContextualAuthorizationManager, getXWikiContext, hasAccess, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
public static final String FEED_PLUGIN_EXCEPTION
public FeedPluginApi(FeedPlugin plugin, XWikiContext context)
@Deprecated public FeedPlugin getPlugin()
PluginApi.getInternalPlugin()
public com.sun.syndication.feed.synd.SyndFeed getFeeds(String sfeeds) throws IOException
IOException
public com.sun.syndication.feed.synd.SyndFeed getFeeds(String sfeeds, boolean force) throws IOException
IOException
public com.sun.syndication.feed.synd.SyndFeed getFeeds(String sfeeds, boolean ignoreInvalidFeeds, boolean force) throws IOException
IOException
public com.sun.syndication.feed.synd.SyndFeed getFeed(String sfeed) throws IOException
IOException
public com.sun.syndication.feed.synd.SyndFeed getFeed(String sfeed, boolean force) throws IOException
IOException
public com.sun.syndication.feed.synd.SyndFeed getFeed(String sfeed, boolean ignoreInvalidFeeds, boolean force) throws IOException
IOException
public int updateFeeds() throws XWikiException
XWikiException
public int updateFeeds(String feedDoc) throws XWikiException
XWikiException
public int updateFeeds(String feedDoc, boolean fullContent) throws XWikiException
XWikiException
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry) throws XWikiException
XWikiException
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry, boolean force) throws XWikiException
XWikiException
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry, boolean force, String space) throws XWikiException
XWikiException
public int updateFeedsInSpace(String spaceReference, boolean fullContent, boolean force) throws XWikiException
XWikiException
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry)
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, boolean force)
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, boolean force, String space)
public boolean startUpdateFeedsInSpace(String space, int scheduleTimer) throws XWikiException
XWikiException
public boolean startUpdateFeedsInSpace(String space, boolean fullContent, int scheduleTimer) throws XWikiException
XWikiException
public void stopUpdateFeedsInSpace(String space) throws XWikiException
XWikiException
public UpdateThread getUpdateThread(String space)
public Collection<String> getActiveUpdateThreads()
public SyndEntrySourceApi getSyndEntrySource(String className, Map<String,Object> params)
SyndEntrySource
interface using the given parametersclassName
- the name of a class implementing SyndEntrySource
interfaceparams
- constructor parameterspublic SyndEntrySourceApi getSyndEntrySource(String className)
getSyndEntrySource(String, Map)
public SyndEntrySourceApi getSyndEntryDocumentSource(Map<String,Object> params)
params
- strategy parametersSyndEntrySourceApi
wrapping a SyndEntryDocumentSource
objectpublic SyndEntrySourceApi getSyndEntryDocumentSource()
getSyndEntryDocumentSource(Map)
public SyndEntrySourceApi getSyndEntryArticleSource()
SyndEntrySourceApi
public SyndEntrySourceApi getSyndEntryArticleSource(Map<String,Object> params)
SyndEntrySourceApi
public com.sun.syndication.feed.synd.SyndEntry getFeedEntry()
public com.sun.syndication.feed.synd.SyndImage getFeedImage()
public com.sun.syndication.feed.synd.SyndImage getFeedImage(String url, String link, String title, String description)
url
- image URLtitle
- image titledescription
- image descriptionpublic com.sun.syndication.feed.synd.SyndImage getDefaultFeedImage()
public com.sun.syndication.feed.synd.SyndFeed getFeed()
public com.sun.syndication.feed.synd.SyndFeed getFeed(List<Object> list, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams)
list
- the list of source itemssourceApi
- the strategy to use for computing feed entries from source itemssourceParams
- strategy parameterspublic com.sun.syndication.feed.synd.SyndFeed getDocumentFeed(List<Object> list, Map<String,Object> params)
list
- a list of Document
objects, XWikiDocument
objects or document namesparams
- strategy parametersDocument
,
getFeed(List, SyndEntrySourceApi, Map)
,
SyndEntryDocumentSource
public com.sun.syndication.feed.synd.SyndFeed getArticleFeed(List<Object> list)
XWiki.ArticleClass
object.list
- a list of articlesDocument
,
getFeed(List, SyndEntrySourceApi, Map)
,
SyndEntrySourceApi
public com.sun.syndication.feed.synd.SyndFeed getWebFeed(List<Object> list)
list
- a list of Document
objects, XWikiDocument
objects or document namesgetDocumentFeed(List, Map)
public com.sun.syndication.feed.synd.SyndFeed getBlogFeed(List<Object> list)
list
- a list of articles (as document instances or document names)getArticleFeed(List)
public com.sun.syndication.feed.synd.SyndFeed getFeed(String query, int count, int start, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams)
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 parameterspublic com.sun.syndication.feed.synd.SyndFeed getDocumentFeed(String query, int count, int start, Map<String,Object> params)
query
- the HQL query used for retrieving the documentscount
- the maximum number of documents to retrievestart
- the start indexparams
- strategy parametersDocument
,
getFeed(String, int, int, SyndEntrySourceApi, Map)
,
SyndEntryDocumentSource
public com.sun.syndication.feed.synd.SyndFeed getArticleFeed(String query, int count, int start)
XWiki.ArticleClass
object.query
- the HQL query used for retrieving the articlescount
- the maximum number of articles to retrievestart
- the start indexDocument
,
getFeed(String, int, int, SyndEntrySourceApi, Map)
,
SyndEntrySourceApi
public com.sun.syndication.feed.synd.SyndFeed getWebFeed(String query, int count, int start)
query
- the HQL query used for retrieving the documentscount
- the maximum number of documents to retrievestart
- the start indexgetDocumentFeed(String, int, int, Map)
public com.sun.syndication.feed.synd.SyndFeed getBlogFeed(String query, int count, int start)
query
- the HQL query used for retrieving the articlescount
- the maximum number of articles to retrievestart
- the start indexgetArticleFeed(String, int, int)
public com.sun.syndication.feed.synd.SyndFeed getFeed(List<Object> list, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata)
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)public com.sun.syndication.feed.synd.SyndFeed getDocumentFeed(List<Object> list, Map<String,Object> params, Map<String,Object> metadata)
list
- a list of Document
objects, XWikiDocument
objects or document namesparams
- strategy parametersmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)Document
,
getFeed(List, SyndEntrySourceApi, Map, Map)
,
SyndEntryDocumentSource
public com.sun.syndication.feed.synd.SyndFeed getArticleFeed(List<Object> list, Map<String,Object> metadata)
XWiki.ArticleClass
object.list
- a list of articlesmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)Document
,
getFeed(List, SyndEntrySourceApi, Map, Map)
,
SyndEntrySourceApi
public com.sun.syndication.feed.synd.SyndFeed getWebFeed(List<Object> list, Map<String,Object> metadata)
list
- a list of Document
objects, XWikiDocument
objects or document namesmetadata
- feed meta data (includes the author, description, copyright, encoding, url, title)getDocumentFeed(List, Map)
public com.sun.syndication.feed.synd.SyndFeed getBlogFeed(List<Object> list, Map<String,Object> metadata)
list
- a list of articles (as document instances or document names)metadata
- feed meta data (includes the author, description, copyright, encoding, url, title)getArticleFeed(List, Map)
public com.sun.syndication.feed.synd.SyndFeed getFeed(String query, int count, int start, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata)
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)public com.sun.syndication.feed.synd.SyndFeed getDocumentFeed(String query, int count, int start, Map<String,Object> params, Map<String,Object> metadata)
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)Document
,
getFeed(String, int, int, SyndEntrySourceApi, Map, Map)
,
SyndEntryDocumentSource
public com.sun.syndication.feed.synd.SyndFeed getArticleFeed(String query, int count, int start, Map<String,Object> metadata)
XWiki.ArticleClass
object.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)Document
,
getFeed(String, int, int, SyndEntrySourceApi, Map, Map)
,
SyndEntrySourceApi
public com.sun.syndication.feed.synd.SyndFeed getWebFeed(String query, int count, int start, Map<String,Object> metadata)
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)getDocumentFeed(String, int, int, Map)
public com.sun.syndication.feed.synd.SyndFeed getBlogFeed(String query, int count, int start, Map<String,Object> metadata)
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)getArticleFeed(String, int, int, Map)
public com.sun.syndication.feed.synd.SyndFeed getBlogFeed(String query, int count, int start, String blogPostClassName, Map<String,Object> metadata)
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)getArticleFeed(String, int, int, Map)
public String getFeedOutput(com.sun.syndication.feed.synd.SyndFeed feed, String type)
feed
- any type of feed, implementing the SyndFeed
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"public String getFeedOutput(List<Object> list, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata, String type)
public String getDocumentFeedOutput(List<Object> list, Map<String,Object> params, Map<String,Object> metadata, String type)
public String getArticleFeedOutput(List<Object> list, Map<String,Object> metadata, String type)
public String getWebFeedOutput(List<Object> list, Map<String,Object> metadata, String type)
public String getBlogFeedOutput(List<Object> list, Map<String,Object> metadata, String type)
public String getFeedOutput(String query, int count, int start, SyndEntrySourceApi sourceApi, Map<String,Object> sourceParams, Map<String,Object> metadata, String type)
public String getDocumentFeedOutput(String query, int count, int start, Map<String,Object> params, Map<String,Object> metadata, String type)
public String getArticleFeedOutput(String query, int count, int start, Map<String,Object> metadata, String type)
public String getWebFeedOutput(String query, int count, int start, Map<String,Object> metadata, String type)
public String getBlogFeedOutput(String query, int count, int start, Map<String,Object> metadata, String type)
Copyright © 2004–2021 XWiki. All rights reserved.