Package org.xwiki.whatsnew.script
Class NewsScriptService
- java.lang.Object
-
- org.xwiki.whatsnew.script.NewsScriptService
-
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component @Singleton @Named("whatsnew") @Unstable public class NewsScriptService extends Object implements org.xwiki.script.service.ScriptService
Script service to access the What's New API in a secure way from wiki pages by using scripting.- Since:
- 15.1RC1
- Version:
- $Id: d800c780a6966306dd3e6a869a371f2a68d0131b $
-
-
Constructor Summary
Constructors Constructor Description NewsScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewsConfiguration
getConfiguration()
NewsSource
getConfiguredNewsSource()
-
-
-
Method Detail
-
getConfiguredNewsSource
public NewsSource getConfiguredNewsSource() throws NewsException
- Returns:
- the composite new source defined in XWiki's configuration (i.e. a new source wrapping all configured news sources)
- Throws:
NewsException
- Since:
- 15.2RC1
-
getConfiguration
public NewsConfiguration getConfiguration()
- Returns:
- the configuration for the what's new feature (we need to be careful that it doesn't contain anything sensitive, which should be fine for that feature)
- Since:
- 15.2RC1
-
-