public class FeedPlugin extends XWikiDefaultPlugin implements XWikiPluginInterface
Modifier and Type | Class and Description |
---|---|
static class |
FeedPlugin.EntriesComparator |
static class |
FeedPlugin.SyndEntryComparator |
Constructor and Description |
---|
FeedPlugin(String name,
String className,
XWikiContext context) |
Modifier and Type | Method and Description |
---|---|
void |
flushCache() |
Collection<String> |
getActiveUpdateThreads() |
BaseClass |
getAggregatorURLClass(XWikiContext context)
Deprecated.
since 11.10RC1
|
com.sun.syndication.feed.synd.SyndFeed |
getFeed(List<Object> list,
SyndEntrySource source,
Map<String,Object> sourceParams,
Map<String,Object> metadata,
XWikiContext context) |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(List<Object> list,
SyndEntrySource source,
Map<String,Object> sourceParams,
XWikiContext context) |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(String sfeed,
boolean ignoreInvalidFeeds,
boolean force,
XWikiContext context) |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(String sfeed,
boolean force,
XWikiContext context) |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(String query,
int count,
int start,
SyndEntrySource source,
Map<String,Object> sourceParams,
Map<String,Object> metadata,
XWikiContext context) |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(String query,
int count,
int start,
SyndEntrySource source,
Map<String,Object> sourceParams,
XWikiContext context) |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(String sfeed,
XWikiContext context) |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(XWikiContext context) |
com.sun.syndication.feed.synd.SyndEntry |
getFeedEntry(XWikiContext context) |
BaseClass |
getFeedEntryClass(XWikiContext context)
Deprecated.
since 11.10RC1
|
com.sun.syndication.feed.synd.SyndFeed |
getFeedForce(String sfeed,
boolean ignoreInvalidFeeds,
XWikiContext context) |
com.sun.syndication.feed.synd.SyndImage |
getFeedImage(XWikiContext context) |
Object |
getFeedInfosbyGuid(String feedDoc,
String guid,
XWikiContext context) |
Object |
getFeedInfosbyGuid(String guid,
XWikiContext context) |
String |
getFeedOutput(List<Object> list,
SyndEntrySource source,
Map<String,Object> sourceParams,
Map<String,Object> metadata,
String type,
XWikiContext context) |
String |
getFeedOutput(String query,
int count,
int start,
SyndEntrySource source,
Map<String,Object> sourceParams,
Map<String,Object> metadata,
String type,
XWikiContext context) |
String |
getFeedOutput(com.sun.syndication.feed.synd.SyndFeed feed,
String type,
XWikiContext context) |
com.sun.syndication.feed.synd.SyndFeed |
getFeeds(String sfeeds,
boolean ignoreInvalidFeeds,
boolean force,
XWikiContext context) |
com.sun.syndication.feed.synd.SyndFeed |
getFeeds(String sfeeds,
boolean force,
XWikiContext context) |
com.sun.syndication.feed.synd.SyndFeed |
getFeeds(String sfeeds,
XWikiContext context) |
String |
getName() |
Api |
getPluginApi(XWikiPluginInterface plugin,
XWikiContext context) |
SyndEntrySource |
getSyndEntrySource(String className,
Map<String,Object> params,
XWikiContext context) |
UpdateThread |
getUpdateThread(String space,
XWikiContext context) |
void |
init(XWikiContext context) |
void |
initCache(int iCapacity,
XWikiContext context) |
void |
initCache(XWikiContext context) |
protected void |
prepareCache(XWikiContext context) |
void |
removeUpdateThread(String space,
UpdateThread thread,
XWikiContext context) |
List<Object> |
search(String query,
XWikiContext context) |
boolean |
startUpdateFeedsInSpace(String space,
boolean fullContent,
int scheduleTimer,
XWikiContext context) |
void |
stopUpdateFeedsInSpace(String space,
XWikiContext context) |
int |
updateFeed(String feedname,
String feedurl,
boolean fullContent,
boolean oneDocPerEntry,
boolean force,
String space,
XWikiContext context) |
int |
updateFeed(String feedname,
String feedurl,
boolean fullContent,
boolean oneDocPerEntry,
boolean force,
XWikiContext context) |
int |
updateFeed(String feedname,
String feedurl,
boolean fullContent,
boolean oneDocPerEntry,
XWikiContext context) |
int |
updateFeed(String feedname,
String feedurl,
boolean oneDocPerEntry,
XWikiContext context) |
int |
updateFeed(String feedDocumentName,
String feedname,
String feedurl,
boolean fullContent,
boolean oneDocPerEntry,
boolean force,
String space,
XWikiContext context) |
int |
updateFeeds(String feedDoc,
boolean fullContent,
boolean oneDocPerEntry,
boolean force,
String space,
XWikiContext context) |
int |
updateFeeds(String feedDoc,
boolean fullContent,
boolean oneDocPerEntry,
boolean force,
XWikiContext context) |
int |
updateFeeds(String feedDoc,
boolean fullContent,
boolean oneDocPerEntry,
XWikiContext context) |
int |
updateFeeds(String feedDoc,
boolean fullContent,
XWikiContext context) |
int |
updateFeeds(String feedDoc,
XWikiContext context) |
int |
updateFeeds(XWikiContext context) |
int |
updateFeedsInSpace(String spaceReference,
boolean fullContent,
boolean oneDocPerEntry,
boolean force,
XWikiContext context) |
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, getClassName, getLocalization, insidePREHandler, localizePlainOrKey, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, insidePREHandler, outsidePREHandler, startRenderingHandler, virtualInit
public FeedPlugin(String name, String className, XWikiContext context)
public String getName()
getName
in interface XWikiPluginInterface
getName
in class XWikiDefaultPlugin
public Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
getPluginApi
in interface XWikiPluginInterface
getPluginApi
in class XWikiDefaultPlugin
public void flushCache()
flushCache
in class XWikiDefaultPlugin
public void init(XWikiContext context)
init
in interface XWikiPluginInterface
init
in class XWikiDefaultPlugin
public void initCache(XWikiContext context) throws XWikiException
XWikiException
public void initCache(int iCapacity, XWikiContext context) throws XWikiException
XWikiException
protected void prepareCache(XWikiContext context)
public com.sun.syndication.feed.synd.SyndFeed getFeeds(String sfeeds, XWikiContext context) throws IOException
IOException
public com.sun.syndication.feed.synd.SyndFeed getFeeds(String sfeeds, boolean force, XWikiContext context) throws IOException
IOException
public com.sun.syndication.feed.synd.SyndFeed getFeeds(String sfeeds, boolean ignoreInvalidFeeds, boolean force, XWikiContext context) throws IOException
IOException
public com.sun.syndication.feed.synd.SyndFeed getFeed(String sfeed, XWikiContext context) throws IOException
IOException
public com.sun.syndication.feed.synd.SyndFeed getFeed(String sfeed, boolean force, XWikiContext context) throws IOException
IOException
public com.sun.syndication.feed.synd.SyndFeed getFeed(String sfeed, boolean ignoreInvalidFeeds, boolean force, XWikiContext context) throws IOException
IOException
public com.sun.syndication.feed.synd.SyndFeed getFeedForce(String sfeed, boolean ignoreInvalidFeeds, XWikiContext context) throws IOException
IOException
public int updateFeeds(XWikiContext context) throws XWikiException
XWikiException
public int updateFeeds(String feedDoc, XWikiContext context) throws XWikiException
XWikiException
public int updateFeeds(String feedDoc, boolean fullContent, XWikiContext context) throws XWikiException
XWikiException
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry, XWikiContext context) throws XWikiException
XWikiException
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry, boolean force, XWikiContext context) throws XWikiException
XWikiException
public int updateFeeds(String feedDoc, boolean fullContent, boolean oneDocPerEntry, boolean force, String space, XWikiContext context) throws XWikiException
XWikiException
public int updateFeedsInSpace(String spaceReference, boolean fullContent, boolean oneDocPerEntry, boolean force, XWikiContext context) throws XWikiException
XWikiException
public boolean startUpdateFeedsInSpace(String space, boolean fullContent, int scheduleTimer, XWikiContext context) throws XWikiException
XWikiException
public void stopUpdateFeedsInSpace(String space, XWikiContext context) throws XWikiException
XWikiException
public void removeUpdateThread(String space, UpdateThread thread, XWikiContext context)
public UpdateThread getUpdateThread(String space, XWikiContext context)
public Collection<String> getActiveUpdateThreads()
public int updateFeed(String feedname, String feedurl, boolean oneDocPerEntry, XWikiContext context)
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, XWikiContext context)
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, boolean force, XWikiContext context)
public int updateFeed(String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, boolean force, String space, XWikiContext context)
public int updateFeed(String feedDocumentName, String feedname, String feedurl, boolean fullContent, boolean oneDocPerEntry, boolean force, String space, XWikiContext context)
@Deprecated public BaseClass getAggregatorURLClass(XWikiContext context) throws XWikiException
AggregatorURLClass
but the code has been moved to
AggregatorURLClassDocumentInitializer
.context
- the XWiki contextAggregatorURLClass
XWikiException
- if loading the class definition fails@Deprecated public BaseClass getFeedEntryClass(XWikiContext context) throws XWikiException
FeedEntryClass
but the code has been moved to
FeedEntryClassDocumentInitializer
.context
- the XWiki contextFeedEntryClass
XWikiException
- if loading the class definition failspublic List<Object> search(String query, XWikiContext context) throws XWikiException
XWikiException
public Object getFeedInfosbyGuid(String guid, XWikiContext context) throws XWikiException
XWikiException
public Object getFeedInfosbyGuid(String feedDoc, String guid, XWikiContext context) throws XWikiException
XWikiException
public SyndEntrySource getSyndEntrySource(String className, Map<String,Object> params, XWikiContext context) throws XWikiException
XWikiException
FeedPluginApi.getSyndEntrySource(String, Map)
public com.sun.syndication.feed.synd.SyndEntry getFeedEntry(XWikiContext context)
FeedPluginApi.getFeedEntry()
public com.sun.syndication.feed.synd.SyndImage getFeedImage(XWikiContext context)
FeedPluginApi.getFeedImage()
public com.sun.syndication.feed.synd.SyndFeed getFeed(XWikiContext context)
FeedPluginApi.getFeed()
public com.sun.syndication.feed.synd.SyndFeed getFeed(List<Object> list, SyndEntrySource source, Map<String,Object> sourceParams, XWikiContext context) throws XWikiException
XWikiException
FeedPluginApi.getFeed(List, SyndEntrySourceApi, Map)
public com.sun.syndication.feed.synd.SyndFeed getFeed(String query, int count, int start, SyndEntrySource source, Map<String,Object> sourceParams, XWikiContext context) throws XWikiException
public com.sun.syndication.feed.synd.SyndFeed getFeed(List<Object> list, SyndEntrySource source, Map<String,Object> sourceParams, Map<String,Object> metadata, XWikiContext context) throws XWikiException
XWikiException
FeedPluginApi.getFeed(List, SyndEntrySourceApi, Map, Map)
public com.sun.syndication.feed.synd.SyndFeed getFeed(String query, int count, int start, SyndEntrySource source, Map<String,Object> sourceParams, Map<String,Object> metadata, XWikiContext context) throws XWikiException
public String getFeedOutput(com.sun.syndication.feed.synd.SyndFeed feed, String type, XWikiContext context)
public String getFeedOutput(List<Object> list, SyndEntrySource source, Map<String,Object> sourceParams, Map<String,Object> metadata, String type, XWikiContext context) throws XWikiException
public String getFeedOutput(String query, int count, int start, SyndEntrySource source, Map<String,Object> sourceParams, Map<String,Object> metadata, String type, XWikiContext context) throws XWikiException
Copyright © 2004–2021 XWiki. All rights reserved.