Package net.bluemind.notes.api
Interface INote
- All Superinterfaces:
IChangelogSupport
,ICountingSupport
,ICrudByIdSupport<VNote>
,IReadByIdSupport<VNote>
,IRestoreCrudSupport<VNote>
,IRestoreItemCrudSupport<VNote>
,IRestoreSupport<VNote>
,ISortingSupport
@Path("/notes/{containerUid}")
public interface INote
extends IChangelogSupport, ICountingSupport, ICrudByIdSupport<VNote>, ISortingSupport, IRestoreItemCrudSupport<VNote>
Notes API. All methods work on Notes in a specific container identified by a
unique UID. Use
IContainers.all(net.bluemind.core.container.api.ContainerQuery)
to
lookup all containers of specific type.-
Method Summary
Modifier and TypeMethodDescriptionall()
List all Notes of a containerallUids()
Retrieve allVNote
UIDs of this uservoid
Creates a newVNote
entry.void
Delete aVNote
Export allVNote
from a notes container as json stream (VNote)getComplete
(String uid) Fetch aVNote
by its unique UIDmultipleGet
(List<String> uids) Fetch multipleVNote
s by their unique UIDsvoid
reset()
Delete allVNote
s of this usersearch
(VNoteQuery query) SearchVNote
's byVNoteQuery
void
Modifies an existingVNote
.updates
(VNoteChanges changes) Updates multipleVNote
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, 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 Notes of a container- Returns:
- All
VNote
of the container - Throws:
ServerFault
- common error object
-
create
Creates a newVNote
entry.- Parameters:
uid
- Unique entry UIDnote
-VNote
values- Throws:
ServerFault
- common error object
-
update
Modifies an existingVNote
.- Parameters:
uid
- Unique entry UIDnote
-VNote
values- Throws:
ServerFault
- common error object
-
getComplete
@GET @Path("{uid}/complete") ItemValue<VNote> getComplete(@PathParam("uid") String uid) throws ServerFault Fetch aVNote
by its unique UID- Specified by:
getComplete
in interfaceIRestoreItemCrudSupport<VNote>
- Parameters:
uid
- Unique entry UID- Returns:
ItemValue
containing aVNote
- Throws:
ServerFault
- common error object
-
multipleGet
Fetch multipleVNote
s by their unique UIDs- Parameters:
uids
- list of unique UIDs- Returns:
- list of
ItemValue
s containingVNote
s - Throws:
ServerFault
- common error object
-
delete
Delete aVNote
- Specified by:
delete
in interfaceIRestoreCrudSupport<VNote>
- Parameters:
uid
- unique UID- Throws:
ServerFault
- common error object
-
reset
Delete allVNote
s of this user- Throws:
ServerFault
- common error object
-
updates
Updates multipleVNote
s.- Parameters:
changes
-VNoteChanges
containing the requested updates- Returns:
ContainerUpdatesResult
- Throws:
ServerFault
- common error object
-
allUids
Retrieve allVNote
UIDs of this user- Returns:
- List of UIDs
- Throws:
ServerFault
- common error object
-
search
SearchVNote
's byVNoteQuery
- Parameters:
query
-VNoteQuery
- Returns:
ListResult
of the matchingItemValue
s containing aVNote
- Throws:
ServerFault
- common error object
-
exportAll
Export allVNote
from a notes container as json stream (VNote)- Returns:
Stream
of VNote list.- Throws:
ServerFault
- common error object
-