@Component @Named(value="liveData") @Singleton @Unstable public class LiveDataScriptService extends Object implements org.xwiki.script.service.ScriptService
Modifier and Type | Field and Description |
---|---|
static String |
ROLEHINT
The role hint of this component.
|
Constructor and Description |
---|
LiveDataScriptService() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
effectiveConfig(Map<String,Object> liveDataConfig)
Computes the effective live data configuration by normalizing the given configuration (i.e.
|
String |
effectiveConfig(String liveDataConfigJSON)
Computes the effective live data configuration by normalizing the given configuration (i.e.
|
<S extends org.xwiki.script.service.ScriptService> |
get(String serviceName) |
LiveData |
query(Map<String,Object> queryConfig)
Executes a live data query.
|
LiveData |
query(String queryConfigJSON)
Executes a live data query.
|
public static final String ROLEHINT
public LiveData query(Map<String,Object> queryConfig)
queryConfig
- the live data query configurationpublic LiveData query(String queryConfigJSON)
queryConfigJSON
- the live data query configurationpublic Map<String,Object> effectiveConfig(Map<String,Object> liveDataConfig)
liveDataConfig
- the live data configuration to start withpublic String effectiveConfig(String liveDataConfigJSON)
liveDataConfigJSON
- the live data configuration to start withpublic <S extends org.xwiki.script.service.ScriptService> S get(String serviceName)
S
- the type of the ScriptService
serviceName
- the name of the sub ScriptService
ScriptService
or null of none could be foundCopyright © 2004–2022 XWiki. All rights reserved.