@Path(value="/notes/{containerUid}") public interface INote extends IChangelogSupport, ICountingSupport, ICrudByIdSupport<VNote>, ISortingSupport, IDataShardSupport, IRestoreCrudSupport<VNote>
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<VNote>> |
all()
List all Notes of a container
|
java.util.List<java.lang.String> |
allUids()
Retrieve all
VNote UIDs of this user |
void |
create(java.lang.String uid,
VNote note)
Creates a new
VNote entry. |
Ack |
createById(long id,
VNote value)
Create a
VNote |
void |
delete(java.lang.String uid)
Delete a
VNote |
void |
deleteById(long id)
Delete a
VNote |
ItemValue<VNote> |
getComplete(java.lang.String uid)
Fetch a
VNote by its unique UID |
ItemValue<VNote> |
getCompleteById(long id)
|
java.util.List<ItemValue<VNote>> |
multipleGet(java.util.List<java.lang.String> uids)
Fetch multiple
VNote s by their unique UIDs |
java.util.List<ItemValue<VNote>> |
multipleGetById(java.util.List<java.lang.Long> ids)
Fetch multiple
VNote s by their unique IDs |
void |
reset()
Delete all
VNote s of this user |
ListResult<ItemValue<VNote>> |
search(VNoteQuery query)
Search
VNote 's by VNoteQuery |
java.util.List<java.lang.Long> |
sortedIds(SortDescriptor sorted)
Get a sorted list (IDs according to the sorted list of items) of internal IDs
|
void |
update(java.lang.String uid,
VNote note)
Modifies an existing
VNote . |
Ack |
updateById(long id,
VNote value)
Update a
VNote |
ContainerUpdatesResult |
updates(VNoteChanges changes)
Updates multiple
VNote s. |
allIds, changeset, changesetById, containerChangelog, filteredChangesetById, getVersion, itemChangelog
count
multipleDeleteById
xfer
get, restore
@GET java.util.List<ItemValue<VNote>> all() throws ServerFault
VNote
of the containerServerFault
- common error object@PUT @Path(value="{uid}") void create(@PathParam(value="uid") java.lang.String uid, VNote note) throws ServerFault
VNote
entry.uid
- Unique entry UIDnote
- VNote
valuesServerFault
- common error object@POST @Path(value="{uid}") void update(@PathParam(value="uid") java.lang.String uid, VNote note) throws ServerFault
VNote
.uid
- Unique entry UIDnote
- VNote
valuesServerFault
- common error object@GET @Path(value="{uid}/complete") ItemValue<VNote> getComplete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
VNote
by its unique UIDuid
- Unique entry UIDItemValue
containing a
VNote
ServerFault
- common error object@POST @Path(value="_mget") java.util.List<ItemValue<VNote>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
VNote
s by their unique UIDsuids
- list of unique UIDsItemValue
s
containing VNote
sServerFault
- common error object@POST @Path(value="_mgetById") java.util.List<ItemValue<VNote>> multipleGetById(java.util.List<java.lang.Long> ids) throws ServerFault
VNote
s by their unique IDsmultipleGetById
in interface IReadByIdSupport<VNote>
ids
- list of unique IDsItemValue
s
containing VNote
sServerFault
- common error object@DELETE @Path(value="{uid}") void delete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
VNote
delete
in interface IRestoreCrudSupport<VNote>
uid
- unique UIDServerFault
- common error object@POST @Path(value="_reset") void reset() throws ServerFault
VNote
s of this userServerFault
- common error object@PUT @Path(value="_mupdates") ContainerUpdatesResult updates(VNoteChanges changes) throws ServerFault
VNote
s.changes
- VNoteChanges
containing the requested updatesContainerUpdatesResult
ServerFault
- common error object@GET @Path(value="{id}/completeById") ItemValue<VNote> getCompleteById(@PathParam(value="id") long id)
getCompleteById
in interface IReadByIdSupport<VNote>
id
- internal idItemValue
containing a VNote
@POST @Path(value="id/{id}") Ack updateById(@PathParam(value="id") long id, VNote value)
VNote
updateById
in interface ICrudByIdSupport<VNote>
id
- internal idvalue
- VNote
Ack
containing the new
version number@PUT @Path(value="id/{id}") Ack createById(@PathParam(value="id") long id, VNote value)
VNote
createById
in interface ICrudByIdSupport<VNote>
id
- internal idvalue
- VNote
Ack
containing the new
version number@DELETE @Path(value="id/{id}") void deleteById(@PathParam(value="id") long id)
VNote
deleteById
in interface ICrudByIdSupport<VNote>
id
- internal id@GET @Path(value="_all") java.util.List<java.lang.String> allUids() throws ServerFault
VNote
UIDs of this userServerFault
- 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 object@POST @Path(value="_search") ListResult<ItemValue<VNote>> search(VNoteQuery query) throws ServerFault
VNote
's by VNoteQuery
query
- VNoteQuery
ListResult
of the matching
ItemValue
s containing a
VNote
ServerFault
- common error objectCopyright © 2024. All Rights Reserved.