Interface IAddressBook
- All Superinterfaces:
IChangelogSupport, ICountingSupport, ICrudByIdSupport<VCard>, IGetSupport<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>, IGetSupport<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 one.voidCreates 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 one.multipleGet(List<String> uids) Fetch multipleVCards from theirs uniques uidsIndex/Offset based GETvoidreset()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 IChangelogSupport
changeset, changesetById, filteredChangesetById, getVersionMethods inherited from interface ICountingSupport
countMethods inherited from interface ICrudByIdSupport
createById, deleteById, multipleDeleteById, multipleDeleteById, updateByIdMethods inherited from interface IItemChangelogSupport
itemChangelogMethods inherited from interface IReadByIdSupport
getCompleteById, multipleGetByIdMethods inherited from interface IRestoreSupport
get, itemValueExists, restoreMethods inherited from interface ISortingSupport
sortedIds, sortedUids
-
Method Details
-
allUids
-
create
-
update
-
getComplete
Fetch aVCardfrom its unique uid- Specified by:
getCompletein interfaceIGetSupport<VCard>- Specified by:
getCompletein interfaceIRestoreItemCrudSupport<VCard>- Parameters:
uid-- Returns:
ItemValue<VCard>- Throws:
net.bluemind.core.api.fault.ServerFault
-
getLight
-
multipleGet
-
getInfo
-
delete
Delete vcard entry- Specified by:
deletein interfaceIRestoreCrudSupport<VCard>- Parameters:
uid-- Throws:
net.bluemind.core.api.fault.ServerFault
-
range
@GET @Path("_range") net.bluemind.core.api.ListResult<ItemValue<VCardInfo>> range(@QueryParam("offset") Integer offset, @QueryParam("size") Integer size) Index/Offset based GET- Parameters:
offset- the database offsetsize- max number of elements requested- Returns:
- ListResult of all items matching the range
- Throws:
net.bluemind.core.api.fault.ServerFault
-
search
@POST @Path("_search") net.bluemind.core.api.ListResult<ItemValue<VCardInfo>> search(VCardQuery query) ElasticSearch based vcard search- Parameters:
query- the vcard search query- Returns:
- Throws:
net.bluemind.core.api.fault.ServerFault
-
updates
Updates multiples entries at once (should be transactional: if one operation fail, nothing is written)- Parameters:
changes-- Throws:
net.bluemind.core.api.fault.ServerFault
-
sync
@POST @Path("_sync") ContainerChangeset<String> sync(@QueryParam("since") Long since, VCardChanges changes) CLIENT_WIN style- Parameters:
since-changes-- Returns:
- Throws:
net.bluemind.core.api.fault.ServerFault
-
setPhoto
-
getPhoto
-
deletePhoto
-
getIcon
A scaled-down (22px x 22px) version of the photo- Parameters:
uid-- Returns:
- Throws:
net.bluemind.core.api.fault.ServerFault
-
copy
@POST @Path("_copy/{destContainerUid}") void copy(List<String> uids, @PathParam("destContainerUid") String descContainerUid) Copy entries from one AddressBook to another one. A copy keeps the uid of its entry, unless the destination already holds an entry with this uid: the copy then gets a new uid.- Parameters:
uids-descContainerUid-- Throws:
net.bluemind.core.api.fault.ServerFault
-
move
@POST @Path("_move/{destContainerUid}") void move(List<String> uids, @PathParam("destContainerUid") String descContainerUid) Move entries from one AddressBook to another one. A moved entry keeps its uid and overwrites the entry with the same uid in the destination, photo included. Moving entries to their own AddressBook does nothing.- Parameters:
uids-descContainerUid-- Throws:
net.bluemind.core.api.fault.ServerFault
-
reset
@POST @Path("_reset") void reset()- Throws:
net.bluemind.core.api.fault.ServerFault
-
touch
-