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 Tasks of a Todolist container
|
java.util.List<java.lang.String> |
allUids()
Retrieve all
VTodo UIDs of this Todolist |
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
VTodos to another Todolist |
Count |
count(ItemFlagFilter filter)
Count items matching an
ItemFlagFilter |
void |
create(java.lang.String uid,
VTodo todo)
Creates a new
VTodo entry. |
Ack |
createById(long id,
VTodo value)
Create a
VTodo |
void |
delete(java.lang.String uid)
Delete a
VTodo |
void |
deleteById(long id)
Delete a
VTodo |
ContainerChangeset<ItemVersion> |
filteredChangesetById(java.lang.Long since,
ItemFlagFilter filter) |
VTodo |
get(java.lang.String uid) |
ItemValue<VTodo> |
getComplete(java.lang.String uid)
Fetch a
VTodo by its unique UID |
ItemValue<VTodo> |
getCompleteById(long id)
|
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
VTodos to another Todolist |
void |
multipleDeleteById(java.util.List<java.lang.Long> ids) |
java.util.List<ItemValue<VTodo>> |
multipleGet(java.util.List<java.lang.String> uids)
Fetch multiple
VTodos by their unique UIDs |
java.util.List<ItemValue<VTodo>> |
multipleGetById(java.util.List<java.lang.Long> ids)
Fetch multiple
VTodos by their unique IDs |
void |
reset()
Delete all
VTodos of this Todolist |
void |
restore(ItemValue<VTodo> todoItem,
boolean isCreate) |
ListResult<ItemValue<VTodo>> |
search(VTodoQuery query)
Search
VTodo's by VTodoQuery |
java.util.List<java.lang.Long> |
sortedIds(SortDescriptor sorted)
Get a sorted list (IDs according to the sorted list of items) of internal IDs
|
ContainerChangeset<java.lang.String> |
sync(java.lang.Long since,
VTodoChanges changes)
Client/Server synchronization of
VTodos. |
void |
update(java.lang.String uid,
VTodo todo)
Modifies an existing
VTodo. |
Ack |
updateById(long id,
VTodo value)
Update a
VTodo |
ContainerUpdatesResult |
updates(VTodoChanges changes)
Updates multiple
VTodos. |
void |
xfer(java.lang.String serverUid) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallIdspublic java.util.List<ItemValue<VTodo>> all() throws ServerFault
ITodoListall in interface ITodoListVTodo of the containerServerFault - common error objectpublic void create(java.lang.String uid,
VTodo todo)
throws ServerFault
ITodoListVTodo entry.create in interface ITodoListuid - Unique entry UIDtodo - VTodo valuesServerFault - common error objectpublic void update(java.lang.String uid,
VTodo todo)
throws ServerFault
ITodoListVTodo.update in interface ITodoListuid - Unique entry UIDtodo - VTodo valuesServerFault - common error objectpublic ItemValue<VTodo> getComplete(java.lang.String uid) throws ServerFault
ITodoListVTodo by its unique UIDgetComplete in interface ITodoListuid - Unique entry UIDItemValue containing a
VTodoServerFault - common error objectpublic java.util.List<ItemValue<VTodo>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
ITodoListVTodos by their unique UIDsmultipleGet in interface ITodoListuids - list of unique UIDsItemValues
containing VTodosServerFault - common error objectpublic java.util.List<ItemValue<VTodo>> multipleGetById(java.util.List<java.lang.Long> ids) throws ServerFault
ITodoListVTodos by their unique IDsmultipleGetById in interface IReadByIdSupport<VTodo>multipleGetById in interface ITodoListids - list of unique IDsItemValues
containing VTodosServerFault - common error objectpublic void delete(java.lang.String uid)
throws ServerFault
ITodoListVTododelete in interface IRestoreCrudSupport<VTodo>delete in interface ITodoListuid - unique UIDServerFault - common error objectpublic ListResult<ItemValue<VTodo>> search(VTodoQuery query) throws ServerFault
ITodoListVTodo's by VTodoQuerysearch in interface ITodoListquery - VTodoQueryListResult of the matching
ItemValues containing a
VTodoServerFault - common error objectpublic 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 ContainerChangeset<ItemVersion> filteredChangesetById(java.lang.Long since, ItemFlagFilter filter) throws ServerFault
filteredChangesetById in interface IChangelogSupportfilter - to exclude some items (eg. deleted items)ContainerChangeset with internal
numeric ids matching the given filterServerFaultpublic ItemChangelog itemChangelog(java.lang.String itemUid, java.lang.Long since) throws ServerFault
itemChangelog in interface IChangelogSupportContainerChangelogServerFaultpublic ContainerUpdatesResult updates(VTodoChanges changes) throws ServerFault
ITodoListVTodos.updates in interface ITodoListchanges - VTodoChanges containing the requested updatesContainerUpdatesResultServerFault - common error objectpublic ContainerChangeset<java.lang.String> sync(java.lang.Long since, VTodoChanges changes) throws ServerFault
ITodoListVTodos. Applies client changes and
returns server updates happened since since parameter.sync in interface ITodoListsince - timestamp of the requested server updateschanges - client updatesContainerChangeset
containing the server updatesServerFault - common error objectpublic void copy(java.util.List<java.lang.String> uids,
java.lang.String descContainerUid)
throws ServerFault
ITodoListVTodos to another Todolistcopy in interface ITodoListuids - list of unique UIDsdescContainerUid - the destination Todolist container UIDServerFault - common error objectpublic void move(java.util.List<java.lang.String> uids,
java.lang.String descContainerUid)
throws ServerFault
ITodoListVTodos to another Todolistmove in interface ITodoListuids - list of unique UIDsdescContainerUid - the destination Todolist container UIDServerFault - common error objectpublic void reset()
throws ServerFault
ITodoListVTodos of this Todolistreset in interface ITodoListServerFault - common error objectpublic long getVersion()
throws ServerFault
getVersion in interface IChangelogSupportServerFaultpublic Count count(ItemFlagFilter filter) throws ServerFault
ICountingSupportItemFlagFiltercount in interface ICountingSupportServerFaultpublic ItemValue<VTodo> getCompleteById(long id)
ITodoListgetCompleteById in interface IReadByIdSupport<VTodo>getCompleteById in interface ITodoListid - internal idItemValue
containing a VTodopublic Ack updateById(long id, VTodo value)
ITodoListVTodoupdateById in interface ICrudByIdSupport<VTodo>updateById in interface ITodoListid - internal idvalue - VTodoAck containing the new
version numberpublic Ack createById(long id, VTodo value)
ITodoListVTodocreateById in interface ICrudByIdSupport<VTodo>createById in interface ITodoListid - internal idvalue - VTodoAck containing the new
version numberpublic void deleteById(long id)
ITodoListVTododeleteById in interface ICrudByIdSupport<VTodo>deleteById in interface ITodoListid - internal idpublic java.util.List<java.lang.String> allUids()
throws ServerFault
ITodoListVTodo UIDs of this TodolistallUids in interface ITodoListServerFault - common error objectpublic java.util.List<java.lang.Long> sortedIds(SortDescriptor sorted) throws ServerFault
ITodoListsortedIds in interface ISortingSupportsortedIds in interface ITodoListsorted - sorting criteriaServerFault - common error objectpublic void xfer(java.lang.String serverUid)
throws ServerFault
xfer in interface IDataShardSupportServerFaultpublic void multipleDeleteById(java.util.List<java.lang.Long> ids)
throws ServerFault
multipleDeleteById in interface ICrudByIdSupport<VTodo>ServerFaultpublic VTodo get(java.lang.String uid)
get in interface IRestoreSupport<VTodo>public void restore(ItemValue<VTodo> todoItem, boolean isCreate)
restore in interface IRestoreSupport<VTodo>Copyright © 2023. All Rights Reserved.