Package net.bluemind.addressbook.api
Interface IAddressBook
- All Superinterfaces:
IChangelogSupport,ICountingSupport,ICrudByIdSupport<VCard>,IItemChangelogSupport,IReadByIdSupport<VCard>,IRestoreCrudSupport<VCard>,IRestoreItemCrudSupport<VCard>,IRestoreSupport<VCard>,ISortingSupport
@Path("/addressbooks/{containerUid}")
public interface IAddressBook
extends IChangelogSupport, IItemChangelogSupport, ICrudByIdSupport<VCard>, ICountingSupport, ISortingSupport, IRestoreItemCrudSupport<VCard>
Addressbooks APIs. BlueMind provides client and server side implementations
of this interface.
-
Method Summary
Modifier and TypeMethodDescriptionallUids()List all items from containervoidCopy entries from one AddressBook to another onevoidCreates a newVCardentry.voidDelete vcard entryvoiddeletePhoto(String uid) getComplete(String uid) Fetch aVCardfrom its unique uidbyte[]A scaled-down (22px x 22px) version of the photoFetch aVCardInfofrom its unique uidbyte[]voidMove entries from one AddressBook to another onemultipleGet(List<String> uids) Fetch multipleVCards from theirs uniques uidsvoidreset()search(VCardQuery query) ElasticSearch based vcard searchvoidsync(Long since, VCardChanges changes) CLIENT_WIN stylevoidTouch aVCard.voidModifies an existingVCardentry.updates(VCardChanges changes) Updates multiples entries at once (should be transactional: if one operation fail, nothing is written)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
-
allUids
List all items from container- Returns:
- Throws:
ServerFault
-
create
Creates a newVCardentry.- Parameters:
uid- uid of the entrycard- value of the entry- Throws:
ServerFault
-
update
Modifies an existingVCardentry.- Parameters:
uid- uid of the entrycard- value of the entry- Throws:
ServerFault
-
getComplete
Fetch aVCardfrom its unique uid- Specified by:
getCompletein interfaceIRestoreItemCrudSupport<VCard>- Parameters:
uid-- Returns:
ItemValue<VCard>- Throws:
ServerFault
-
multipleGet
Fetch multipleVCards from theirs uniques uids- Parameters:
uids-- Returns:
List<ItemValue<VCard>>- Throws:
ServerFault
-
getInfo
Fetch aVCardInfofrom its unique uid- Parameters:
uid-- Returns:
- Throws:
ServerFault
-
delete
Delete vcard entry- Specified by:
deletein interfaceIRestoreCrudSupport<VCard>- Parameters:
uid-- Throws:
ServerFault
-
search
ElasticSearch based vcard search- Parameters:
query-- Returns:
- Throws:
ServerFault
-
updates
Updates multiples entries at once (should be transactional: if one operation fail, nothing is written)- Parameters:
changes-- Throws:
ServerFault
-
sync
@POST @Path("_sync") ContainerChangeset<String> sync(@QueryParam("since") Long since, VCardChanges changes) CLIENT_WIN style- Parameters:
since-changes-- Returns:
- Throws:
ServerFault
-
setPhoto
-
getPhoto
-
deletePhoto
-
getIcon
A scaled-down (22px x 22px) version of the photo- Parameters:
uid-- Returns:
- Throws:
ServerFault
-
copy
@POST @Path("_copy/{destContainerUid}") void copy(List<String> uids, @PathParam("destContainerUid") String descContainerUid) Copy entries from one AddressBook to another one- Parameters:
uids-descContainerUid-- Throws:
ServerFault
-
move
@POST @Path("_move/{destContainerUid}") void move(List<String> uids, @PathParam("destContainerUid") String descContainerUid) Move entries from one AddressBook to another one- Parameters:
uids-descContainerUid-- Throws:
ServerFault
-
reset
@POST @Path("_reset") void reset()- Throws:
ServerFault
-
touch
Touch aVCard.- Parameters:
uid- the unique identifier of the vcard
-