@Unstable
public interface LiveDataEntriesResource
LiveDataSource
.Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addEntry(String sourceId,
String namespace,
Entry entry)
Adds the given entry to the specified live data source.
|
Entries |
getEntries(String sourceId,
String namespace,
List<String> properties,
List<String> matchAll,
List<String> sort,
List<Boolean> descending,
long offset,
int limit)
Provides the list of live data entries.
|
Entries getEntries(String sourceId, String namespace, List<String> properties, List<String> matchAll, List<String> sort, List<Boolean> descending, long offset, int limit) throws Exception
/liveData/sources/liveTable/entries?
namespace=wiki%3Axwiki&
sourceParams.className=Help.Applications.Movies.Code.MoviesClass&
sourceParams.translationPrefix=movies.livetable.&
properties=doc.title&
properties=genre&
properties=releaseDate&
properties=director&
properties=_actions&
filters.doc.title=contains%3Amee&
matchAll=doc.title&
sort=releaseDate&
descending=false&
offset=0&
limit=10
sourceId
- indicates the LiveDataSource
component implementationnamespace
- the component manager name-space where to look for LiveDataSource
implementations; if
not specified then the context / current name-space is usedproperties
- the list of properties to include in the returned live data entriesmatchAll
- the list of properties for which to match all filter constraintssort
- the list of properties to sort ondescending
- indicates the sort direction for the properties specified by the sort
parameteroffset
- the index of the first entry to returnlimit
- the maximum number of entries to returnException
- if retrieving the live data entries failsjavax.ws.rs.core.Response addEntry(String sourceId, String namespace, Entry entry) throws Exception
sourceId
- indicates the LiveDataSource
component implementationnamespace
- the component manager name-space where to look for LiveDataSource
implementations; if
not specified then the context / current name-space is usedentry
- the entry to addException
- if adding the entry failsCopyright © 2004–2022 XWiki. All rights reserved.