public class AddressBookService extends java.lang.Object implements IInCoreAddressBook
| Constructor and Description | 
|---|
AddressBookService(javax.sql.DataSource dataSource,
                  org.elasticsearch.client.Client esearchClient,
                  Container container,
                  BmContext context)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.List<ItemValue<VCard>> | 
all()  | 
java.util.List<java.lang.String> | 
allUids()
List all items from container 
 | 
ContainerChangeset<java.lang.String> | 
changeset(java.lang.Long since)  | 
ContainerChangeset<java.lang.Long> | 
changesetById(java.lang.Long since)  | 
ContainerChangelog | 
containerChangelog(java.lang.Long since)  | 
void | 
copy(java.util.List<java.lang.String> uids,
    java.lang.String descContainerUid)
Copy entries from one AddressBook to another one 
 | 
Count | 
count(ItemFlagFilter filter)
Count items matching an  
ItemFlagFilter | 
void | 
create(java.lang.String uid,
      VCard card)
Creates a new  
VCard entry. | 
Ack | 
createById(long id,
          VCard card)  | 
void | 
delete(java.lang.String uid)
Delete vcard entry 
 | 
void | 
deleteById(long id)  | 
void | 
deletePhoto(java.lang.String uid)  | 
void | 
emitNotification()  | 
ContainerChangeset<ItemVersion> | 
filteredChangesetById(java.lang.Long since,
                     ItemFlagFilter filter)  | 
java.util.List<java.lang.String> | 
findByEmail(java.lang.String email)  | 
VCard | 
get(java.lang.String uid)  | 
ItemValue<VCard> | 
getComplete(java.lang.String uid)
Fetch a  
VCard from its unique uid | 
ItemValue<VCard> | 
getCompleteById(long uid)  | 
byte[] | 
getIcon(java.lang.String uid)
A scaled-down (22px x 22px) version of the photo 
 | 
ItemValue<VCardInfo> | 
getInfo(java.lang.String uid)
Fetch a  
VCardInfo from its unique uid | 
byte[] | 
getPhoto(java.lang.String uid)  | 
long | 
getVersion()  | 
ItemChangelog | 
itemChangelog(java.lang.String itemUid,
             java.lang.Long since)  | 
void | 
move(java.util.List<java.lang.String> uids,
    java.lang.String descContainerUid)
Move entries from one AddressBook to another one 
 | 
void | 
multipleDeleteById(java.util.List<java.lang.Long> ids)  | 
java.util.List<ItemValue<VCard>> | 
multipleGet(java.util.List<java.lang.String> uids)
Fetch multiple  
VCards from theirs uniques uids | 
java.util.List<ItemValue<VCard>> | 
multipleGetById(java.util.List<java.lang.Long> ids)
Fetch multiple  
VCards from theirs uniques ids | 
void | 
reset()  | 
void | 
restore(ItemValue<VCard> cardItem,
       boolean isCreate)  | 
ListResult<ItemValue<VCardInfo>> | 
search(VCardQuery query)
ElasticSearch based vcard search 
 | 
void | 
setPhoto(java.lang.String uid,
        byte[] photo)  | 
java.util.List<java.lang.Long> | 
sortedIds(SortDescriptor sorted)
Returns all items in a container matching a sort criteria 
 | 
ContainerChangeset<java.lang.String> | 
sync(java.lang.Long since,
    VCardChanges changes)
CLIENT_WIN style 
 | 
void | 
touch(java.lang.String uid)
Touch a  
VCard. | 
void | 
update(java.lang.String uid,
      VCard card)
Modifies an existing  
VCard entry. | 
Ack | 
updateById(long id,
          VCard card)  | 
ContainerUpdatesResult | 
updates(VCardChanges changes)
Updates multiples entries at once (should be transactional: if one operation
 fail, nothing is written) 
 | 
void | 
xfer(java.lang.String serverUid)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallIdspublic java.util.List<java.lang.String> allUids()
IAddressBookallUids in interface IAddressBookpublic void create(java.lang.String uid,
                   VCard card)
IAddressBookVCard entry.create in interface IAddressBookuid - uid of the entrycard - value of the entrypublic Ack createById(long id, VCard card)
createById in interface IAddressBookcreateById in interface ICrudByIdSupport<VCard>public void update(java.lang.String uid,
                   VCard card)
IAddressBookVCard entry.update in interface IAddressBookuid - uid of the entrycard - value of the entrypublic Ack updateById(long id, VCard card)
updateById in interface IAddressBookupdateById in interface ICrudByIdSupport<VCard>public ItemValue<VCard> getComplete(java.lang.String uid)
IAddressBookVCard from its unique uidgetComplete in interface IAddressBookItemValuepublic ItemValue<VCard> getCompleteById(long uid)
getCompleteById in interface IAddressBookgetCompleteById in interface IReadByIdSupport<VCard>public java.util.List<ItemValue<VCard>> multipleGet(java.util.List<java.lang.String> uids)
IAddressBookVCards from theirs uniques uidsmultipleGet in interface IAddressBookList> public java.util.List<ItemValue<VCard>> multipleGetById(java.util.List<java.lang.Long> ids)
IAddressBookVCards from theirs uniques idsmultipleGetById in interface IAddressBookmultipleGetById in interface IReadByIdSupport<VCard>List> public ItemValue<VCardInfo> getInfo(java.lang.String uid)
IAddressBookVCardInfo from its unique uidgetInfo in interface IAddressBookpublic ListResult<ItemValue<VCardInfo>> search(VCardQuery query)
IAddressBooksearch in interface IAddressBookpublic void delete(java.lang.String uid)
IAddressBookdelete in interface IAddressBookdelete in interface IRestoreCrudSupport<VCard>public ContainerChangelog containerChangelog(java.lang.Long since)
containerChangelog in interface IChangelogSupportContainerChangelogpublic ItemChangelog itemChangelog(java.lang.String itemUid, java.lang.Long since)
itemChangelog in interface IChangelogSupportContainerChangelogpublic ContainerChangeset<java.lang.String> changeset(java.lang.Long since)
changeset in interface IChangelogSupportContainerChangesetpublic ContainerChangeset<java.lang.Long> changesetById(java.lang.Long since)
changesetById in interface IChangelogSupportContainerChangeset with internal
         numeric idspublic ContainerChangeset<ItemVersion> filteredChangesetById(java.lang.Long since, ItemFlagFilter filter)
filteredChangesetById in interface IChangelogSupportfilter - to exclude some items (eg. deleted items)ContainerChangeset with internal
         numeric ids matching the given filterpublic ContainerUpdatesResult updates(VCardChanges changes)
IAddressBookupdates in interface IAddressBookpublic ContainerChangeset<java.lang.String> sync(java.lang.Long since, VCardChanges changes)
IAddressBooksync in interface IAddressBookpublic void copy(java.util.List<java.lang.String> uids,
                 java.lang.String descContainerUid)
IAddressBookcopy in interface IAddressBookpublic void move(java.util.List<java.lang.String> uids,
                 java.lang.String descContainerUid)
IAddressBookmove in interface IAddressBookpublic void setPhoto(java.lang.String uid,
                     byte[] photo)
setPhoto in interface IAddressBookpublic void deletePhoto(java.lang.String uid)
deletePhoto in interface IAddressBookpublic byte[] getPhoto(java.lang.String uid)
getPhoto in interface IAddressBookpublic byte[] getIcon(java.lang.String uid)
IAddressBookgetIcon in interface IAddressBookpublic java.util.List<java.lang.String> findByEmail(java.lang.String email)
findByEmail in interface IInCoreAddressBookpublic void reset()
reset in interface IAddressBookpublic long getVersion()
getVersion in interface IChangelogSupportpublic void deleteById(long id)
deleteById in interface IAddressBookdeleteById in interface ICrudByIdSupport<VCard>public Count count(ItemFlagFilter filter)
ICountingSupportItemFlagFiltercount in interface ICountingSupportpublic java.util.List<java.lang.Long> sortedIds(SortDescriptor sorted)
ISortingSupportsortedIds in interface IAddressBooksortedIds in interface ISortingSupportsorted - sorting criteriaItemValue.internalId sortedpublic void xfer(java.lang.String serverUid)
xfer in interface IDataShardSupportpublic void multipleDeleteById(java.util.List<java.lang.Long> ids)
multipleDeleteById in interface ICrudByIdSupport<VCard>public void emitNotification()
public VCard get(java.lang.String uid)
get in interface IRestoreSupport<VCard>public void restore(ItemValue<VCard> cardItem, boolean isCreate)
restore in interface IRestoreSupport<VCard>public void touch(java.lang.String uid)
IAddressBookVCard.touch in interface IAddressBookuid - the unique identifier of the vcardCopyright © 2023. All Rights Reserved.