public class TodoListService extends java.lang.Object implements ITodoList
| Constructor and Description |
|---|
TodoListService(javax.sql.DataSource pool,
org.elasticsearch.client.Client esearchClient,
Container container,
BmContext bmContext) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ItemValue<VTodo>> |
all()
List all items from container
|
java.util.List<java.lang.String> |
allUids()
Returns all the items uid from the container
|
ContainerChangeset<java.lang.String> |
changeset(java.lang.Long since) |
ContainerChangeset<java.lang.Long> |
changesetById(java.lang.Long since) |
ContainerChangelog |
containerChangelog(java.lang.Long since) |
void |
copy(java.util.List<java.lang.String> uids,
java.lang.String descContainerUid)
Copy entries from one Todo List to another one
|
void |
create(java.lang.String uid,
VTodo todo)
Creates a new
VTodo entry. |
void |
delete(java.lang.String uid)
Delete
VTodo entry |
ItemValue<VTodo> |
getComplete(java.lang.String uid)
Fetch a
VTodo from its unique uid |
long |
getVersion() |
ItemChangelog |
itemChangelog(java.lang.String itemUid,
java.lang.Long since) |
void |
move(java.util.List<java.lang.String> uids,
java.lang.String descContainerUid)
Move entries from one Todo list to another one
|
java.util.List<ItemValue<VTodo>> |
multipleGet(java.util.List<java.lang.String> uids)
Fetch multiple
VTodos from theirs uniques uids |
void |
reset() |
ListResult<ItemValue<VTodo>> |
search(VTodoQuery query)
ElasticSearch based
VTodo search |
ContainerChangeset<java.lang.String> |
sync(java.lang.Long since,
VTodoChanges changes)
Apply changes sent by client and return changes that happens on server since
since parameter. |
void |
update(java.lang.String uid,
VTodo todo)
Modifies an existing
VTodo entry. |
ContainerUpdatesResult |
updates(VTodoChanges changes)
Updates multiples entries at once (should be transactional: if one operation
fail, nothing is written)
|
public java.util.List<ItemValue<VTodo>> all() throws ServerFault
ITodoListall in interface ITodoListVTodo of the containerServerFaultpublic void create(java.lang.String uid,
VTodo todo)
throws ServerFault
ITodoListVTodo entry.create in interface ITodoListuid - uid of the entrytodo - value of the entryServerFaultpublic void update(java.lang.String uid,
VTodo todo)
throws ServerFault
ITodoListVTodo entry.update in interface ITodoListuid - uid of the entrytodo - value of the entryServerFaultpublic ItemValue<VTodo> getComplete(java.lang.String uid) throws ServerFault
ITodoListVTodo from its unique uidgetComplete in interface ITodoListItemValueServerFaultpublic java.util.List<ItemValue<VTodo>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
ITodoListVTodos from theirs uniques uidsmultipleGet in interface ITodoListList> ServerFaultpublic void delete(java.lang.String uid)
throws ServerFault
ITodoListVTodo entrydelete in interface ITodoListServerFaultpublic ListResult<ItemValue<VTodo>> search(VTodoQuery query) throws ServerFault
ITodoListVTodo searchsearch in interface ITodoListServerFaultpublic ContainerChangelog containerChangelog(java.lang.Long since) throws ServerFault
containerChangelog in interface IChangelogSupportContainerChangelogServerFaultpublic ContainerChangeset<java.lang.String> changeset(java.lang.Long since) throws ServerFault
changeset in interface IChangelogSupportContainerChangesetServerFaultpublic ContainerChangeset<java.lang.Long> changesetById(java.lang.Long since) throws ServerFault
changesetById in interface IChangelogSupportContainerChangeset with internal
numeric idsServerFaultpublic ItemChangelog itemChangelog(java.lang.String itemUid, java.lang.Long since) throws ServerFault
itemChangelog in interface IChangelogSupportContainerChangelogServerFaultpublic ContainerUpdatesResult updates(VTodoChanges changes) throws ServerFault
ITodoListupdates in interface ITodoListServerFaultpublic ContainerChangeset<java.lang.String> sync(java.lang.Long since, VTodoChanges changes) throws ServerFault
ITodoListsince parameter.sync in interface ITodoListServerFaultpublic void copy(java.util.List<java.lang.String> uids,
java.lang.String descContainerUid)
throws ServerFault
ITodoListcopy in interface ITodoListServerFaultpublic void move(java.util.List<java.lang.String> uids,
java.lang.String descContainerUid)
throws ServerFault
ITodoListmove in interface ITodoListServerFaultpublic void reset()
throws ServerFault
reset in interface ITodoListServerFaultpublic long getVersion()
throws ServerFault
getVersion in interface IChangelogSupportServerFaultpublic java.util.List<java.lang.String> allUids()
throws ServerFault
ITodoListallUids in interface ITodoListServerFaultCopyright © 2021. All Rights Reserved.