@Role
@Unstable
public interface LiveDataEntryStore
Modifier and Type | Method and Description |
---|---|
LiveData |
get(LiveDataQuery query)
Executes a query on the live data.
|
Optional<Map<String,Object>> |
get(Object entryId) |
default Optional<Object> |
get(Object entryId,
String property) |
default Optional<Map<String,Object>> |
remove(Object entryId)
Removes an existing entry.
|
default Optional<Object> |
save(Map<String,Object> entry)
Creates a new entry or updates an existing one.
|
default Optional<Object> |
update(Object entryId,
String property,
Object value)
Updates a property of a live data entry.
|
Optional<Map<String,Object>> get(Object entryId) throws LiveDataException
entryId
- identifies the entry to returnLiveDataException
- if retrieving the specified entry failsdefault Optional<Object> get(Object entryId, String property) throws LiveDataException
entryId
- identifies the entry whose property value to returnproperty
- the property whose value to returnLiveDataException
- if retrieving the specified property failsLiveData get(LiveDataQuery query) throws LiveDataException
query
- the query used to filter and sort the live data entriesLiveDataException
- if the live data query execution failsdefault Optional<Object> save(Map<String,Object> entry) throws LiveDataException
entry
- the entry to saveLiveDataException
- if saving the given entry failsdefault Optional<Object> update(Object entryId, String property, Object value) throws LiveDataException
entryId
- the entry to updateproperty
- the property to updatevalue
- the new property valueLiveDataException
- if updating the specified property failsdefault Optional<Map<String,Object>> remove(Object entryId) throws LiveDataException
entryId
- identifies the entry to removetrue
if the entry was removed, false
otherwiseLiveDataException
- if removing the specified entry failsCopyright © 2004–2021 XWiki. All rights reserved.