@Path(value="/addressbooks/{containerUid}") public interface IAddressBook extends IChangelogSupport
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. |
void |
createById(long id,
VCard card) |
void |
delete(java.lang.String uid)
Delete vcard entry
|
void |
deletePhoto(java.lang.String uid) |
ItemValue<VCard> |
getComplete(java.lang.String uid)
Fetch a
VCard from its unique 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) |
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 |
void |
reset() |
ListResult<ItemValue<VCardInfo>> |
search(VCardQuery query)
ElasticSearch based vcard search
|
void |
setPhoto(java.lang.String uid,
byte[] photo) |
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. |
ContainerUpdatesResult |
updates(VCardChanges changes)
Updates multiples entries at once (should be transactional: if one
operation fail, nothing is written)
|
changeset, changesetById, containerChangelog, getVersion, itemChangelog
@GET java.util.List<java.lang.String> allUids() throws ServerFault
ServerFault
@PUT @Path(value="{uid}") void create(@PathParam(value="uid") java.lang.String uid, VCard card) throws ServerFault
VCard
entry.uid
- uid of the entrycard
- value of the entryServerFault
@PUT @Path(value="_byId") void createById(@QueryParam(value="id") long id, VCard card) throws ServerFault
ServerFault
@POST @Path(value="{uid}") void update(@PathParam(value="uid") java.lang.String uid, VCard card) throws ServerFault
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) throws ServerFault
VCard
from its unique uiduid
- ItemValue
ServerFault
@POST @Path(value="_mget") java.util.List<ItemValue<VCard>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
VCard
s from theirs uniques uidsuids
- List>
ServerFault
@GET @Path(value="{uid}/info") ItemValue<VCardInfo> getInfo(@PathParam(value="uid") java.lang.String uid) throws ServerFault
VCardInfo
from its unique uiduid
- ServerFault
@DELETE @Path(value="{uid}") void delete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
uid
- ServerFault
@POST @Path(value="_search") ListResult<ItemValue<VCardInfo>> search(VCardQuery query) throws ServerFault
query
- ServerFault
@PUT @Path(value="_mupdates") ContainerUpdatesResult updates(VCardChanges changes) throws ServerFault
changes
- ServerFault
@POST @Path(value="_sync") ContainerChangeset<java.lang.String> sync(@QueryParam(value="since") java.lang.Long since, VCardChanges changes) throws ServerFault
since
- changes
- ServerFault
@POST @Path(value="{uid}/photo") void setPhoto(@PathParam(value="uid") java.lang.String uid, byte[] photo) throws ServerFault
ServerFault
@GET @Path(value="{uid}/photo") @Produces(value="image/png") byte[] getPhoto(@PathParam(value="uid") java.lang.String uid) throws ServerFault
ServerFault
@DELETE @Path(value="{uid}/photo") void deletePhoto(@PathParam(value="uid") java.lang.String uid) throws ServerFault
ServerFault
@GET @Path(value="{uid}/icon") @Produces(value="image/png") byte[] getIcon(@PathParam(value="uid") java.lang.String uid) throws ServerFault
uid
- ServerFault
@POST @Path(value="_copy/{destContainerUid}") void copy(java.util.List<java.lang.String> uids, @PathParam(value="destContainerUid") java.lang.String descContainerUid) throws ServerFault
uids
- descContainerUid
- ServerFault
@POST @Path(value="_move/{destContainerUid}") void move(java.util.List<java.lang.String> uids, @PathParam(value="destContainerUid") java.lang.String descContainerUid) throws ServerFault
uids
- descContainerUid
- ServerFault
@POST @Path(value="_reset") void reset() throws ServerFault
ServerFault
Copyright © 2021. All Rights Reserved.