public class NoteService extends java.lang.Object implements INote
| Constructor and Description | 
|---|
NoteService(javax.sql.DataSource pool,
           org.elasticsearch.client.Client esearchClient,
           Container container,
           BmContext bmContext)  | 
| 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 | 
ContainerChangeset<java.lang.String> | 
changeset(java.lang.Long since)  | 
ContainerChangeset<java.lang.Long> | 
changesetById(java.lang.Long since)  | 
ContainerChangelog | 
containerChangelog(java.lang.Long since)  | 
Count | 
count(ItemFlagFilter filter)
Count items matching an  
ItemFlagFilter | 
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 | 
ContainerChangeset<ItemVersion> | 
filteredChangesetById(java.lang.Long since,
                     ItemFlagFilter filter)  | 
VNote | 
get(java.lang.String uid)  | 
ItemValue<VNote> | 
getComplete(java.lang.String uid)
Fetch a  
VNote by its unique UID | 
ItemValue<VNote> | 
getCompleteById(long id)
 | 
long | 
getVersion()  | 
ItemChangelog | 
itemChangelog(java.lang.String itemUid,
             java.lang.Long since)  | 
void | 
multipleDeleteById(java.util.List<java.lang.Long> ids)  | 
java.util.List<ItemValue<VNote>> | 
multipleGet(java.util.List<java.lang.String> uids)
Fetch multiple  
VNotes by their unique UIDs | 
java.util.List<ItemValue<VNote>> | 
multipleGetById(java.util.List<java.lang.Long> ids)
Fetch multiple  
VNotes by their unique IDs | 
void | 
reset()
Delete all  
VNotes of this user | 
void | 
restore(ItemValue<VNote> noteItem,
       boolean isCreate)  | 
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  
VNotes. | 
void | 
xfer(java.lang.String serverUid)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallIdspublic java.util.List<ItemValue<VNote>> all() throws ServerFault
INoteall in interface INoteVNote of the containerServerFault - common error objectpublic void create(java.lang.String uid,
                   VNote note)
            throws ServerFault
INoteVNote entry.create in interface INoteuid - Unique entry UIDnote - VNote valuesServerFault - common error objectpublic void update(java.lang.String uid,
                   VNote note)
            throws ServerFault
INoteVNote.update in interface INoteuid - Unique entry UIDnote - VNote valuesServerFault - common error objectpublic ItemValue<VNote> getComplete(java.lang.String uid) throws ServerFault
INoteVNote by its unique UIDgetComplete in interface INoteuid - Unique entry UIDItemValue containing a
         VNoteServerFault - common error objectpublic java.util.List<ItemValue<VNote>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
INoteVNotes by their unique UIDsmultipleGet in interface INoteuids - list of unique UIDsItemValues
         containing VNotesServerFault - common error objectpublic java.util.List<ItemValue<VNote>> multipleGetById(java.util.List<java.lang.Long> ids) throws ServerFault
INoteVNotes by their unique IDsmultipleGetById in interface IReadByIdSupport<VNote>multipleGetById in interface INoteids - list of unique IDsItemValues
         containing VNotesServerFault - common error objectpublic void delete(java.lang.String uid)
            throws ServerFault
INoteVNotedelete in interface IRestoreCrudSupport<VNote>delete in interface INoteuid - unique UIDServerFault - common error objectpublic ContainerChangelog containerChangelog(java.lang.Long since) throws ServerFault
containerChangelog in interface IChangelogSupportContainerChangelogServerFaultpublic ContainerChangeset<java.lang.String> changeset(java.lang.Long since) throws ServerFault
changeset in interface IChangelogSupportContainerChangesetServerFaultpublic ContainerChangeset<java.lang.Long> changesetById(java.lang.Long since) throws ServerFault
changesetById in interface IChangelogSupportContainerChangeset with internal
         numeric idsServerFaultpublic ContainerChangeset<ItemVersion> filteredChangesetById(java.lang.Long since, ItemFlagFilter filter) throws ServerFault
filteredChangesetById in interface IChangelogSupportfilter - to exclude some items (eg. deleted items)ContainerChangeset with internal
         numeric ids matching the given filterServerFaultpublic ItemChangelog itemChangelog(java.lang.String itemUid, java.lang.Long since) throws ServerFault
itemChangelog in interface IChangelogSupportContainerChangelogServerFaultpublic void reset()
           throws ServerFault
INoteVNotes of this userreset in interface INoteServerFault - common error objectpublic long getVersion()
                throws ServerFault
getVersion in interface IChangelogSupportServerFaultpublic Count count(ItemFlagFilter filter) throws ServerFault
ICountingSupportItemFlagFiltercount in interface ICountingSupportServerFaultpublic ItemValue<VNote> getCompleteById(long id)
INotegetCompleteById in interface IReadByIdSupport<VNote>getCompleteById in interface INoteid - internal idItemValue
         containing a VNotepublic Ack updateById(long id, VNote value)
INoteVNoteupdateById in interface ICrudByIdSupport<VNote>updateById in interface INoteid - internal idvalue - VNoteAck containing the new
         version numberpublic Ack createById(long id, VNote value)
INoteVNotecreateById in interface ICrudByIdSupport<VNote>createById in interface INoteid - internal idvalue - VNoteAck containing the new
         version numberpublic void deleteById(long id)
INoteVNotedeleteById in interface ICrudByIdSupport<VNote>deleteById in interface INoteid - internal idpublic java.util.List<java.lang.String> allUids()
                                         throws ServerFault
INoteVNote UIDs of this userallUids in interface INoteServerFault - common error objectpublic java.util.List<java.lang.Long> sortedIds(SortDescriptor sorted) throws ServerFault
INotesortedIds in interface ISortingSupportsortedIds in interface INotesorted - sorting criteriaServerFault - common error objectpublic void xfer(java.lang.String serverUid)
          throws ServerFault
xfer in interface IDataShardSupportServerFaultpublic void multipleDeleteById(java.util.List<java.lang.Long> ids)
                        throws ServerFault
multipleDeleteById in interface ICrudByIdSupport<VNote>ServerFaultpublic ListResult<ItemValue<VNote>> search(VNoteQuery query) throws ServerFault
INoteVNote's by VNoteQuerysearch in interface INotequery - VNoteQueryListResult of the matching
         ItemValues containing a
         VNoteServerFault - common error objectpublic ContainerUpdatesResult updates(VNoteChanges changes) throws ServerFault
INoteVNotes.updates in interface INotechanges - VNoteChanges containing the requested updatesContainerUpdatesResultServerFault - common error objectpublic VNote get(java.lang.String uid)
get in interface IRestoreSupport<VNote>public void restore(ItemValue<VNote> noteItem, boolean isCreate)
restore in interface IRestoreSupport<VNote>Copyright © 2023. All Rights Reserved.