Package net.bluemind.todolist.api
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(net.bluemind.core.container.api.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 UIDsvoidreset()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 net.bluemind.core.container.api.IChangelogSupport
changeset, changesetById, filteredChangesetById, getVersionMethods inherited from interface net.bluemind.core.container.api.ICountingSupport
countMethods inherited from interface net.bluemind.core.container.api.ICrudByIdSupport
createById, deleteById, multipleDeleteById, multipleDeleteById, updateByIdMethods inherited from interface net.bluemind.core.container.api.IItemChangelogSupport
itemChangelogMethods inherited from interface net.bluemind.core.container.api.IReadByIdSupport
getCompleteById, multipleGetByIdMethods inherited from interface net.bluemind.core.container.api.IRestoreSupport
get, itemValueExists, restoreMethods inherited from interface net.bluemind.core.container.api.ISortingSupport
sortedIds
-
Method Details
-
all
List all Tasks of a Todolist container- Returns:
- All
VTodoof the container - Throws:
ServerFault- common error object
-
create
Creates a newVTodoentry.- Parameters:
uid- Unique entry UIDtodo-VTodovalues- Throws:
ServerFault- common error object
-
update
Modifies an existingVTodo.- Parameters:
uid- Unique entry UIDtodo-VTodovalues- Throws:
ServerFault- common error object
-
getComplete
@GET @Path("{uid}/complete") ItemValue<VTodo> getComplete(@PathParam("uid") String uid) throws ServerFault Fetch aVTodoby its unique UID- Specified by:
getCompletein interfaceIRestoreItemCrudSupport<VTodo>- Parameters:
uid- Unique entry UID- Returns:
ItemValuecontaining aVTodo- Throws:
ServerFault- common error object
-
multipleGet
Fetch multipleVTodos by their unique UIDs- Parameters:
uids- list of unique UIDs- Returns:
- list of
ItemValues containingVTodos - Throws:
ServerFault- common error object
-
delete
Delete aVTodo- Specified by:
deletein interfaceIRestoreCrudSupport<VTodo>- Parameters:
uid- unique UID- Throws:
ServerFault- common error object
-
search
SearchVTodo's byVTodoQuery- Parameters:
query-VTodoQuery- Returns:
ListResultof the matchingItemValues containing aVTodo- Throws:
ServerFault- common error object
-
updates
Updates multipleVTodos.- Parameters:
changes-VTodoChangescontaining the requested updates- Returns:
ContainerUpdatesResult- Throws:
ServerFault- common error object
-
sync
@POST @Path("_sync") ContainerChangeset<String> sync(@QueryParam("since") Long since, VTodoChanges changes) throws 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:
ServerFault- common error object
-
copy
@POST @Path("_copy/{destContainerUid}") void copy(List<String> uids, @PathParam("destContainerUid") String descContainerUid) throws ServerFault CopyVTodos to another Todolist- Parameters:
uids- list of unique UIDsdescContainerUid- the destination Todolist container UID- Throws:
ServerFault- common error object
-
move
@POST @Path("_move/{destContainerUid}") void move(List<String> uids, @PathParam("destContainerUid") String descContainerUid) throws ServerFault MoveVTodos to another Todolist- Parameters:
uids- list of unique UIDsdescContainerUid- the destination Todolist container UID- Throws:
ServerFault- common error object
-
reset
Delete allVTodos of this Todolist- Throws:
ServerFault- common error object
-
allUids
Retrieve allVTodoUIDs of this Todolist- Returns:
- List of UIDs
- Throws:
ServerFault- common error object
-
getByIcsUid
@GET @Path("_icsuid/{uid}") List<ItemValue<VTodo>> getByIcsUid(@PathParam("uid") String uid) throws ServerFault Returns allVTodomatching the given ICS unique identifier.- Parameters:
uid- the ICS unique identifier- Returns:
- the list of matching
VTodo - Throws:
ServerFault
-