Package net.bluemind.todolist.api
Interface ITodoList
- All Superinterfaces:
IChangelogSupport
,ICountingSupport
,ICrudByIdSupport<VTodo>
,IReadByIdSupport<VTodo>
,IRestoreCrudSupport<VTodo>
,IRestoreItemCrudSupport<VTodo>
,IRestoreSupport<VTodo>
,ISortingSupport
@Path("/todolist/{containerUid}")
public interface ITodoList
extends IChangelogSupport, 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 allVTodo
UIDs of this Todolistvoid
CopyVTodo
s to another Todolistvoid
Creates a newVTodo
entry.void
Delete aVTodo
getByIcsUid
(String uid) Returns allVTodo
matching the given ICS unique identifier.getComplete
(String uid) Fetch aVTodo
by its unique UIDvoid
MoveVTodo
s to another TodolistmultipleGet
(List<String> uids) Fetch multipleVTodo
s by their unique UIDsvoid
reset()
Delete allVTodo
s of this Todolistsearch
(VTodoQuery query) SearchVTodo
's byVTodoQuery
sync
(Long since, VTodoChanges changes) Client/Server synchronization ofVTodo
s.void
Modifies an existingVTodo
.updates
(VTodoChanges changes) Updates multipleVTodo
s.Methods inherited from interface net.bluemind.core.container.api.IChangelogSupport
allIds, changeset, changesetById, filteredChangesetById, getVersion, itemChangelog
Methods inherited from interface net.bluemind.core.container.api.ICountingSupport
count
Methods inherited from interface net.bluemind.core.container.api.ICrudByIdSupport
createById, deleteById, multipleDeleteById, updateById
Methods inherited from interface net.bluemind.core.container.api.IReadByIdSupport
getCompleteById, multipleGetById
Methods inherited from interface net.bluemind.core.container.api.IRestoreSupport
get, itemValueExists, restore
Methods inherited from interface net.bluemind.core.container.api.ISortingSupport
sortedIds
-
Method Details
-
all
List all Tasks of a Todolist container- Returns:
- All
VTodo
of the container - Throws:
ServerFault
- common error object
-
create
Creates a newVTodo
entry.- Parameters:
uid
- Unique entry UIDtodo
-VTodo
values- Throws:
ServerFault
- common error object
-
update
Modifies an existingVTodo
.- Parameters:
uid
- Unique entry UIDtodo
-VTodo
values- Throws:
ServerFault
- common error object
-
getComplete
@GET @Path("{uid}/complete") ItemValue<VTodo> getComplete(@PathParam("uid") String uid) throws ServerFault Fetch aVTodo
by its unique UID- Specified by:
getComplete
in interfaceIRestoreItemCrudSupport<VTodo>
- Parameters:
uid
- Unique entry UID- Returns:
ItemValue
containing aVTodo
- Throws:
ServerFault
- common error object
-
multipleGet
Fetch multipleVTodo
s by their unique UIDs- Parameters:
uids
- list of unique UIDs- Returns:
- list of
ItemValue
s containingVTodo
s - Throws:
ServerFault
- common error object
-
delete
Delete aVTodo
- Specified by:
delete
in interfaceIRestoreCrudSupport<VTodo>
- Parameters:
uid
- unique UID- Throws:
ServerFault
- common error object
-
search
SearchVTodo
's byVTodoQuery
- Parameters:
query
-VTodoQuery
- Returns:
ListResult
of the matchingItemValue
s containing aVTodo
- Throws:
ServerFault
- common error object
-
updates
Updates multipleVTodo
s.- Parameters:
changes
-VTodoChanges
containing 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 ofVTodo
s. Applies client changes and returns server updates happened sincesince
parameter.- Parameters:
since
- timestamp of the requested server updateschanges
- client updates- Returns:
ContainerChangeset
containing the server updates- Throws:
ServerFault
- common error object
-
copy
@POST @Path("_copy/{destContainerUid}") void copy(List<String> uids, @PathParam("destContainerUid") String descContainerUid) throws ServerFault CopyVTodo
s 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 MoveVTodo
s to another Todolist- Parameters:
uids
- list of unique UIDsdescContainerUid
- the destination Todolist container UID- Throws:
ServerFault
- common error object
-
reset
Delete allVTodo
s of this Todolist- Throws:
ServerFault
- common error object
-
allUids
Retrieve allVTodo
UIDs 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 allVTodo
matching the given ICS unique identifier.- Parameters:
uid
- the ICS unique identifier- Returns:
- the list of matching
VTodo
- Throws:
ServerFault
-