public interface IDirEntryPhotoSupport
Modifier and Type | Method and Description |
---|---|
void |
deletePhoto(java.lang.String uid)
Delete the photo associated to the
DirEntry |
byte[] |
getIcon(java.lang.String uid)
Retrieve the icon/avatar associated to the
DirEntry |
byte[] |
getPhoto(java.lang.String uid)
Retrieve the photo associated to the
DirEntry |
void |
setPhoto(java.lang.String uid,
byte[] photo)
Set a photo, needs to be in PNG format
|
@POST @Path(value="{uid}/photo") @Consumes(value="image/png") void setPhoto(@PathParam(value="uid") java.lang.String uid, byte[] photo) throws ServerFault
uid
- the directory entry uidphoto
- the photo dataServerFault
- common error object@GET @Path(value="{uid}/photo") @Produces(value="image/png") byte[] getPhoto(@PathParam(value="uid") java.lang.String uid) throws ServerFault
DirEntry
uid
- the directory entry uidServerFault
- common error object@DELETE @Path(value="{uid}/photo") void deletePhoto(@PathParam(value="uid") java.lang.String uid) throws ServerFault
DirEntry
uid
- the directory entry uidServerFault
- common error object@GET @Path(value="{uid}/icon") @Produces(value="image/png") byte[] getIcon(@PathParam(value="uid") java.lang.String uid) throws ServerFault
DirEntry
uid
- the directory entry uidServerFault
- common error objectCopyright © 2021. All Rights Reserved.