Package net.bluemind.addressbook.api
Interface IAddressBook
- All Superinterfaces:
IChangelogSupport
,ICountingSupport
,ICrudByIdSupport<VCard>
,IReadByIdSupport<VCard>
,IRestoreCrudSupport<VCard>
,IRestoreItemCrudSupport<VCard>
,IRestoreSupport<VCard>
,ISortingSupport
@Path("/addressbooks/{containerUid}")
public interface IAddressBook
extends IChangelogSupport, 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 containervoid
Copy entries from one AddressBook to another onevoid
Creates a newVCard
entry.void
Delete vcard entryvoid
deletePhoto
(String uid) getComplete
(String uid) Fetch aVCard
from its unique uidbyte[]
A scaled-down (22px x 22px) version of the photoFetch aVCardInfo
from its unique uidbyte[]
void
Move entries from one AddressBook to another onemultipleGet
(List<String> uids) Fetch multipleVCard
s from theirs uniques uidsvoid
reset()
search
(VCardQuery query) ElasticSearch based vcard searchvoid
sync
(Long since, VCardChanges changes) CLIENT_WIN stylevoid
Touch aVCard
.void
Modifies an existingVCard
entry.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
allIds, changeset, changesetById, filteredChangesetById, getVersion, itemChangelog
Methods inherited from interface net.bluemind.core.container.api.ICountingSupport
count
Methods inherited from interface net.bluemind.core.container.api.ICrudByIdSupport
createById, deleteById, multipleDeleteById, updateById
Methods inherited from interface net.bluemind.core.container.api.IReadByIdSupport
getCompleteById, multipleGetById
Methods inherited from interface net.bluemind.core.container.api.IRestoreSupport
get, itemValueExists, restore
Methods inherited from interface net.bluemind.core.container.api.ISortingSupport
sortedIds
-
Method Details
-
allUids
List all items from container- Returns:
- Throws:
ServerFault
-
create
Creates a newVCard
entry.- Parameters:
uid
- uid of the entrycard
- value of the entry- Throws:
ServerFault
-
update
Modifies an existingVCard
entry.- Parameters:
uid
- uid of the entrycard
- value of the entry- Throws:
ServerFault
-
getComplete
Fetch aVCard
from its unique uid- Specified by:
getComplete
in interfaceIRestoreItemCrudSupport<VCard>
- Parameters:
uid
-- Returns:
ItemValue<VCard>
- Throws:
ServerFault
-
multipleGet
Fetch multipleVCard
s from theirs uniques uids- Parameters:
uids
-- Returns:
List<ItemValue<VCard>>
- Throws:
ServerFault
-
getInfo
Fetch aVCardInfo
from its unique uid- Parameters:
uid
-- Returns:
- Throws:
ServerFault
-
delete
Delete vcard entry- Specified by:
delete
in 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
-