@Path(value="/addressbooks/{containerUid}") public interface IAddressBook extends IChangelogSupport, ICrudByIdSupport<VCard>, ICountingSupport, ISortingSupport, IDataShardSupport
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
allUids()
List all items from container
|
void |
copy(java.util.List<java.lang.String> uids,
java.lang.String descContainerUid)
Copy entries from one AddressBook to another one
|
void |
create(java.lang.String uid,
VCard card)
Creates a new
VCard entry. |
Ack |
createById(long id,
VCard value) |
void |
delete(java.lang.String uid)
Delete vcard entry
|
void |
deleteById(long id) |
void |
deletePhoto(java.lang.String uid) |
ItemValue<VCard> |
getComplete(java.lang.String uid)
Fetch a
VCard from its unique uid |
ItemValue<VCard> |
getCompleteById(long id) |
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) |
void |
move(java.util.List<java.lang.String> uids,
java.lang.String descContainerUid)
Move entries from one AddressBook to another one
|
java.util.List<ItemValue<VCard>> |
multipleGet(java.util.List<java.lang.String> uids)
Fetch multiple
VCard s from theirs uniques uids |
java.util.List<ItemValue<VCard>> |
multipleGetById(java.util.List<java.lang.Long> ids)
Fetch multiple
VCard s from theirs uniques ids |
void |
reset() |
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 |
update(java.lang.String uid,
VCard card)
Modifies an existing
VCard entry. |
Ack |
updateById(long id,
VCard value) |
ContainerUpdatesResult |
updates(VCardChanges changes)
Updates multiples entries at once (should be transactional: if one operation
fail, nothing is written)
|
allIds, changeset, changesetById, containerChangelog, filteredChangesetById, getVersion, itemChangelog
multipleDeleteById
count
xfer
@GET @Path(value="_all") java.util.List<java.lang.String> allUids()
ServerFault
@PUT @Path(value="{uid}") void create(@PathParam(value="uid") java.lang.String uid, VCard card)
VCard
entry.uid
- uid of the entrycard
- value of the entryServerFault
@PUT @Path(value="id/{id}") Ack createById(@PathParam(value="id") long id, VCard value)
createById
in interface ICrudByIdSupport<VCard>
@GET @Path(value="id/{id}") ItemValue<VCard> getCompleteById(@PathParam(value="id") long id)
getCompleteById
in interface ICrudByIdSupport<VCard>
@POST @Path(value="id/{id}") Ack updateById(@PathParam(value="id") long id, VCard value)
updateById
in interface ICrudByIdSupport<VCard>
@DELETE @Path(value="id/{id}") void deleteById(@PathParam(value="id") long id)
deleteById
in interface ICrudByIdSupport<VCard>
@POST @Path(value="{uid}") void update(@PathParam(value="uid") java.lang.String uid, VCard card)
VCard
entry.uid
- uid of the entrycard
- value of the entryServerFault
@GET @Path(value="{uid}/complete") ItemValue<VCard> getComplete(@PathParam(value="uid") java.lang.String uid)
VCard
from its unique uiduid
- ItemValue
ServerFault
@POST @Path(value="_mget") java.util.List<ItemValue<VCard>> multipleGet(java.util.List<java.lang.String> uids)
VCard
s from theirs uniques uidsuids
- List>
ServerFault
@POST @Path(value="_mgetById") java.util.List<ItemValue<VCard>> multipleGetById(java.util.List<java.lang.Long> ids)
VCard
s from theirs uniques idsids
- List>
ServerFault
@GET @Path(value="{uid}/info") ItemValue<VCardInfo> getInfo(@PathParam(value="uid") java.lang.String uid)
VCardInfo
from its unique uiduid
- ServerFault
@DELETE @Path(value="{uid}") void delete(@PathParam(value="uid") java.lang.String uid)
uid
- ServerFault
@POST @Path(value="_search") ListResult<ItemValue<VCardInfo>> search(VCardQuery query)
query
- ServerFault
@PUT @Path(value="_mupdates") ContainerUpdatesResult updates(VCardChanges changes)
changes
- ServerFault
@POST @Path(value="_sync") ContainerChangeset<java.lang.String> sync(@QueryParam(value="since") java.lang.Long since, VCardChanges changes)
since
- changes
- ServerFault
@POST @Path(value="{uid}/photo") void setPhoto(@PathParam(value="uid") java.lang.String uid, byte[] photo)
@GET @Path(value="{uid}/photo") @Produces(value="image/png") byte[] getPhoto(@PathParam(value="uid") java.lang.String uid)
@DELETE @Path(value="{uid}/photo") void deletePhoto(@PathParam(value="uid") java.lang.String uid)
@GET @Path(value="{uid}/icon") @Produces(value="image/png") byte[] getIcon(@PathParam(value="uid") java.lang.String uid)
uid
- ServerFault
@POST @Path(value="_copy/{destContainerUid}") void copy(java.util.List<java.lang.String> uids, @PathParam(value="destContainerUid") java.lang.String descContainerUid)
uids
- descContainerUid
- ServerFault
@POST @Path(value="_move/{destContainerUid}") void move(java.util.List<java.lang.String> uids, @PathParam(value="destContainerUid") java.lang.String descContainerUid)
uids
- descContainerUid
- ServerFault
@POST @Path(value="_reset") void reset()
ServerFault
@POST @Path(value="_sorted") java.util.List<java.lang.Long> sortedIds(SortDescriptor sorted)
ISortingSupport
sortedIds
in interface ISortingSupport
sorted
- sorting criteriaItemValue.internalId
sortedCopyright © 2021. All Rights Reserved.