@Path(value="/todolist/{containerUid}") public interface ITodoList extends IChangelogSupport, ICountingSupport, ICrudByIdSupport<VTodo>, ISortingSupport, IDataShardSupport
ITodoUids
. Use
IContainers.all(net.bluemind.core.container.api.ContainerQuery)
to lookup all
containers of specific type.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 |
void |
copy(java.util.List<java.lang.String> uids,
java.lang.String descContainerUid)
Copy
VTodo s to another Todolist |
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 |
ItemValue<VTodo> |
getComplete(java.lang.String uid)
Fetch a
VTodo by its unique UID |
ItemValue<VTodo> |
getCompleteById(long id)
|
void |
move(java.util.List<java.lang.String> uids,
java.lang.String descContainerUid)
Move
VTodo s to another Todolist |
java.util.List<ItemValue<VTodo>> |
multipleGet(java.util.List<java.lang.String> uids)
Fetch multiple
VTodo s by their unique UIDs |
java.util.List<ItemValue<VTodo>> |
multipleGetById(java.util.List<java.lang.Long> ids)
Fetch multiple
VTodo s by their unique IDs |
void |
reset()
Delete all
VTodo s of this Todolist |
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
VTodo s. |
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
VTodo s. |
allIds, changeset, changesetById, containerChangelog, filteredChangesetById, getVersion, itemChangelog
count
multipleDeleteById
xfer
@GET java.util.List<ItemValue<VTodo>> all() throws ServerFault
VTodo
of the containerServerFault
- common error object@PUT @Path(value="{uid}") void create(@PathParam(value="uid") java.lang.String uid, VTodo todo) throws ServerFault
VTodo
entry.uid
- Unique entry UIDtodo
- VTodo
valuesServerFault
- common error object@POST @Path(value="{uid}") void update(@PathParam(value="uid") java.lang.String uid, VTodo todo) throws ServerFault
VTodo
.uid
- Unique entry UIDtodo
- VTodo
valuesServerFault
- common error object@GET @Path(value="{uid}/complete") ItemValue<VTodo> getComplete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
VTodo
by its unique UIDuid
- Unique entry UIDItemValue
containing a
VTodo
ServerFault
- common error object@POST @Path(value="_mget") java.util.List<ItemValue<VTodo>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
VTodo
s by their unique UIDsuids
- list of unique UIDsItemValue
s
containing VTodo
sServerFault
- common error object@POST @Path(value="_mgetById") java.util.List<ItemValue<VTodo>> multipleGetById(java.util.List<java.lang.Long> ids) throws ServerFault
VTodo
s by their unique IDsids
- list of unique IDsItemValue
s
containing VTodo
sServerFault
- common error object@DELETE @Path(value="{uid}") void delete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
VTodo
uid
- unique UIDServerFault
- common error object@POST @Path(value="_search") ListResult<ItemValue<VTodo>> search(VTodoQuery query) throws ServerFault
VTodo
's by VTodoQuery
query
- VTodoQuery
ListResult
of the matching
ItemValue
s containing a
VTodo
ServerFault
- common error object@PUT @Path(value="_mupdates") ContainerUpdatesResult updates(VTodoChanges changes) throws ServerFault
VTodo
s.changes
- VTodoChanges
containing the requested updatesContainerUpdatesResult
ServerFault
- common error object@POST @Path(value="_sync") ContainerChangeset<java.lang.String> sync(@QueryParam(value="since") java.lang.Long since, VTodoChanges changes) throws ServerFault
VTodo
s. Applies client changes and
returns server updates happened since since
parameter.since
- timestamp of the requested server updateschanges
- client updatesContainerChangeset
containing the server updatesServerFault
- common error object@POST @Path(value="_copy/{destContainerUid}") void copy(java.util.List<java.lang.String> uids, @PathParam(value="destContainerUid") java.lang.String descContainerUid) throws ServerFault
VTodo
s to another Todolistuids
- list of unique UIDsdescContainerUid
- the destination Todolist container UIDServerFault
- common error object@POST @Path(value="_move/{destContainerUid}") void move(java.util.List<java.lang.String> uids, @PathParam(value="destContainerUid") java.lang.String descContainerUid) throws ServerFault
VTodo
s to another Todolistuids
- list of unique UIDsdescContainerUid
- the destination Todolist container UIDServerFault
- common error object@POST @Path(value="_reset") void reset() throws ServerFault
VTodo
s of this TodolistServerFault
- common error object@GET @Path(value="{id}/completeById") ItemValue<VTodo> getCompleteById(@PathParam(value="id") long id)
getCompleteById
in interface ICrudByIdSupport<VTodo>
id
- internal idItemValue
containing a VTodo
@POST @Path(value="id/{id}") Ack updateById(@PathParam(value="id") long id, VTodo value)
VTodo
updateById
in interface ICrudByIdSupport<VTodo>
id
- internal idvalue
- VTodo
Ack
containing the new
version number@PUT @Path(value="id/{id}") Ack createById(@PathParam(value="id") long id, VTodo value)
VTodo
createById
in interface ICrudByIdSupport<VTodo>
id
- internal idvalue
- VTodo
Ack
containing the new
version number@DELETE @Path(value="id/{id}") void deleteById(@PathParam(value="id") long id)
VTodo
deleteById
in interface ICrudByIdSupport<VTodo>
id
- internal id@GET @Path(value="_all") java.util.List<java.lang.String> allUids() throws ServerFault
VTodo
UIDs of this TodolistServerFault
- common error object@POST @Path(value="_sorted") java.util.List<java.lang.Long> sortedIds(SortDescriptor sorted) throws ServerFault
sortedIds
in interface ISortingSupport
{@link
- net.bluemind.core.container.model.SortDescriptor}ServerFault
- common error objectCopyright © 2021. All Rights Reserved.