Interface NewsSourceFactory


  • @Role
    @Unstable
    public interface NewsSourceFactory
    Create a News Source instance. Examples of possible news sources from where to get news about XWiki:
    • XWiki Blog
    • Discourse Forum
    Example usage: List<NewsSourceItem> items = sourceFactory.create(...).withRange(...).forCategories(...).build ();
    Since:
    15.1RC1
    Version:
    $Id: bb3f599422c129dbbea6eede455ac6b93a9d0a55 $
    • Method Detail

      • create

        NewsSource create​(Map<String,​String> parameters)
                   throws NewsException
        Parameters:
        parameters - the source-dependent list of parameters to configure the source
        Returns:
        the News source instance
        Throws:
        NewsException - when there's a problem creating the news source (e.g. not specific RSS URL for XWiki Blog source type)