Package net.bluemind.notes.api
Interface INote
- All Superinterfaces:
IChangelogSupport,ICountingSupport,ICrudByIdSupport<VNote>,IItemChangelogSupport,IReadByIdSupport<VNote>,IRestoreCrudSupport<VNote>,IRestoreItemCrudSupport<VNote>,IRestoreSupport<VNote>,ISortingSupport
@Path("/notes/{containerUid}")
public interface INote
extends IChangelogSupport, IItemChangelogSupport, 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 allVNoteUIDs of this uservoidCreates a newVNoteentry.voidDelete aVNoteExport allVNotefrom a notes container as json stream (VNote)getComplete(String uid) Fetch aVNoteby its unique UIDmultipleGet(List<String> uids) Fetch multipleVNotes by their unique UIDsvoidreset()Delete allVNotes of this usersearch(VNoteQuery query) SearchVNote's byVNoteQueryvoidModifies an existingVNote.updates(VNoteChanges changes) Updates multipleVNotes.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 Notes of a container- Returns:
- All
VNoteof the container - Throws:
ServerFault- common error object
-
create
Creates a newVNoteentry.- Parameters:
uid- Unique entry UIDnote-VNotevalues- Throws:
ServerFault- common error object
-
update
Modifies an existingVNote.- Parameters:
uid- Unique entry UIDnote-VNotevalues- Throws:
ServerFault- common error object
-
getComplete
@GET @Path("{uid}/complete") ItemValue<VNote> getComplete(@PathParam("uid") String uid) throws ServerFault Fetch aVNoteby its unique UID- Specified by:
getCompletein interfaceIRestoreItemCrudSupport<VNote>- Parameters:
uid- Unique entry UID- Returns:
ItemValuecontaining aVNote- Throws:
ServerFault- common error object
-
multipleGet
Fetch multipleVNotes by their unique UIDs- Parameters:
uids- list of unique UIDs- Returns:
- list of
ItemValues containingVNotes - Throws:
ServerFault- common error object
-
delete
Delete aVNote- Specified by:
deletein interfaceIRestoreCrudSupport<VNote>- Parameters:
uid- unique UID- Throws:
ServerFault- common error object
-
reset
Delete allVNotes of this user- Throws:
ServerFault- common error object
-
updates
Updates multipleVNotes.- Parameters:
changes-VNoteChangescontaining the requested updates- Returns:
ContainerUpdatesResult- Throws:
ServerFault- common error object
-
allUids
Retrieve allVNoteUIDs of this user- Returns:
- List of UIDs
- Throws:
ServerFault- common error object
-
search
SearchVNote's byVNoteQuery- Parameters:
query-VNoteQuery- Returns:
ListResultof the matchingItemValues containing aVNote- Throws:
ServerFault- common error object
-
exportAll
Export allVNotefrom a notes container as json stream (VNote)- Returns:
Streamof VNote list.- Throws:
ServerFault- common error object
-