Interface ITodoList
- All Superinterfaces:
IChangelogSupport, ICountingSupport, ICrudByIdSupport<VTodo>, IItemChangelogSupport, IReadByIdSupport<VTodo>, IRestoreCrudSupport<VTodo>, IRestoreItemCrudSupport<VTodo>, IRestoreSupport<VTodo>, ISortingSupport
@Path("/todolist/{containerUid}")
public interface ITodoList
extends IChangelogSupport, IItemChangelogSupport, ICountingSupport, ICrudByIdSupport<VTodo>, ISortingSupport, IRestoreItemCrudSupport<VTodo>
Todolist API. All methods work on Todos in a specific container identified by
a unique UID, see
ITodoUids. Use
IContainers.all(ContainerQuery) to lookup all
containers of specific type.-
Method Summary
Modifier and TypeMethodDescriptionall()List all Tasks of a Todolist containerallUids()Retrieve allVTodoUIDs of this TodolistvoidCopyVTodos to another TodolistvoidCreates a newVTodoentry.voidDelete aVTodogetByIcsUid(String uid) Returns allVTodomatching the given ICS unique identifier.getComplete(String uid) Fetch aVTodoby its unique UIDvoidMoveVTodos to another TodolistmultipleGet(List<String> uids) Fetch multipleVTodos by their unique UIDsmultipleGetByRange(VTodoRange range) Fetch multipleVTodoidentified by the given rangemultipleGetWithOffset(Integer from, Integer size) Index/Offset based GETvoidreset()Delete allVTodos of this Todolistsearch(VTodoQuery query) SearchVTodo's byVTodoQuerysync(Long since, VTodoChanges changes) Client/Server synchronization ofVTodos.voidModifies an existingVTodo.updates(VTodoChanges changes) Updates multipleVTodos.Methods inherited from interface IChangelogSupport
changeset, changesetById, filteredChangesetById, getVersionMethods inherited from interface ICountingSupport
countMethods inherited from interface ICrudByIdSupport
createById, deleteById, multipleDeleteById, multipleDeleteById, updateByIdMethods inherited from interface IItemChangelogSupport
itemChangelogMethods inherited from interface IReadByIdSupport
getCompleteById, multipleGetByIdMethods inherited from interface IRestoreSupport
get, itemValueExists, restoreMethods inherited from interface ISortingSupport
sortedIds, sortedUids
-
Method Details
-
all
-
create
-
update
-
getComplete
@GET @Path("{uid}/complete") ItemValue<VTodo> getComplete(@PathParam("uid") String uid) throws net.bluemind.core.api.fault.ServerFault Fetch aVTodoby its unique UID- Specified by:
getCompletein interfaceIRestoreItemCrudSupport<VTodo>- Parameters:
uid- Unique entry UID- Returns:
ItemValuecontaining aVTodo- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
multipleGet
-
delete
@DELETE @Path("{uid}") void delete(@PathParam("uid") String uid) throws net.bluemind.core.api.fault.ServerFault Delete aVTodo- Specified by:
deletein interfaceIRestoreCrudSupport<VTodo>- Parameters:
uid- unique UID- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
search
@POST @Path("_search") net.bluemind.core.api.ListResult<ItemValue<VTodo>> search(VTodoQuery query) throws net.bluemind.core.api.fault.ServerFault SearchVTodo's byVTodoQuery- Parameters:
query-VTodoQuery- Returns:
ListResultof the matchingItemValues containing aVTodo- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
multipleGetByRange
@POST @Path("_mget_range") net.bluemind.core.api.ListResult<ItemValue<VTodo>> multipleGetByRange(VTodoRange range) throws net.bluemind.core.api.fault.ServerFault Fetch multipleVTodoidentified by the given range- Parameters:
range-VTodoRange- Returns:
- all matching
VTodo - Throws:
net.bluemind.core.api.fault.ServerFault
-
multipleGetWithOffset
@GET @Path("_mget_offset") net.bluemind.core.api.ListResult<ItemValue<VTodo>> multipleGetWithOffset(@QueryParam("from") Integer from, @QueryParam("size") Integer size) throws net.bluemind.core.api.fault.ServerFault Index/Offset based GET- Parameters:
size- max number of elements requestedoffset- the database offset- Returns:
- ListResult of all items matching the range
- Throws:
net.bluemind.core.api.fault.ServerFault
-
updates
@PUT @Path("_mupdates") ContainerUpdatesResult updates(VTodoChanges changes) throws net.bluemind.core.api.fault.ServerFault Updates multipleVTodos.- Parameters:
changes-VTodoChangescontaining the requested updates- Returns:
ContainerUpdatesResult- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
sync
@POST @Path("_sync") ContainerChangeset<String> sync(@QueryParam("since") Long since, VTodoChanges changes) throws net.bluemind.core.api.fault.ServerFault Client/Server synchronization ofVTodos. Applies client changes and returns server updates happened sincesinceparameter.- Parameters:
since- timestamp of the requested server updateschanges- client updates- Returns:
ContainerChangesetcontaining the server updates- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
copy
@POST @Path("_copy/{destContainerUid}") void copy(List<String> uids, @PathParam("destContainerUid") String descContainerUid) throws net.bluemind.core.api.fault.ServerFault CopyVTodos to another Todolist- Parameters:
uids- list of unique UIDsdescContainerUid- the destination Todolist container UID- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
move
@POST @Path("_move/{destContainerUid}") void move(List<String> uids, @PathParam("destContainerUid") String descContainerUid) throws net.bluemind.core.api.fault.ServerFault MoveVTodos to another Todolist- Parameters:
uids- list of unique UIDsdescContainerUid- the destination Todolist container UID- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
reset
@POST @Path("_reset") void reset() throws net.bluemind.core.api.fault.ServerFaultDelete allVTodos of this Todolist- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
allUids
-
getByIcsUid
@GET @Path("_icsuid/{uid}") List<ItemValue<VTodo>> getByIcsUid(@PathParam("uid") String uid) throws net.bluemind.core.api.fault.ServerFault Returns allVTodomatching the given ICS unique identifier.- Parameters:
uid- the ICS unique identifier- Returns:
- the list of matching
VTodo - Throws:
net.bluemind.core.api.fault.ServerFault
-