public class MailshareService extends java.lang.Object implements IMailshare
Constructor and Description |
---|
MailshareService(BmContext context,
Container container,
ItemValue<Domain> domain,
java.util.List<IMailshareHook> hooks) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemValue<Mailshare>> |
allComplete()
Fetches all Mailshares
|
void |
create(java.lang.String uid,
Mailshare mailshare)
Creates a new
Mailshare entry. |
TaskRef |
delete(java.lang.String uid)
Delete
Mailshare entry |
void |
deletePhoto(java.lang.String uid)
Delete the photo associated to the
DirEntry |
ItemValue<Mailshare> |
getComplete(java.lang.String uid)
Fetch a
Mailshare from its unique uid |
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
|
void |
update(java.lang.String uid,
Mailshare mailshare)
Modifies an existing
Mailshare entry. |
public MailshareService(BmContext context, Container container, ItemValue<Domain> domain, java.util.List<IMailshareHook> hooks) throws ServerFault
ServerFault
public void create(java.lang.String uid, Mailshare mailshare) throws ServerFault
IMailshare
Mailshare
entry.create
in interface IMailshare
uid
- uid of the entrymailshare
- value of the entryServerFault
public void update(java.lang.String uid, Mailshare mailshare) throws ServerFault
IMailshare
Mailshare
entry.update
in interface IMailshare
uid
- uid of the entrymailshare
- value of the entryServerFault
public ItemValue<Mailshare> getComplete(java.lang.String uid) throws ServerFault
IMailshare
Mailshare
from its unique uidgetComplete
in interface IMailshare
ItemValue
ServerFault
public java.util.List<ItemValue<Mailshare>> allComplete() throws ServerFault
IMailshare
allComplete
in interface IMailshare
ServerFault
public TaskRef delete(java.lang.String uid) throws ServerFault
IMailshare
Mailshare
entrydelete
in interface IMailshare
ServerFault
public void setPhoto(java.lang.String uid, byte[] photo) throws ServerFault
IDirEntryPhotoSupport
setPhoto
in interface IDirEntryPhotoSupport
uid
- the directory entry uidphoto
- the photo dataServerFault
- common error objectpublic void deletePhoto(java.lang.String uid) throws ServerFault
IDirEntryPhotoSupport
DirEntry
deletePhoto
in interface IDirEntryPhotoSupport
uid
- the directory entry uidServerFault
- common error objectpublic byte[] getPhoto(java.lang.String uid) throws ServerFault
IDirEntryPhotoSupport
DirEntry
getPhoto
in interface IDirEntryPhotoSupport
uid
- the directory entry uidServerFault
- common error objectpublic byte[] getIcon(java.lang.String uid) throws ServerFault
IDirEntryPhotoSupport
DirEntry
getIcon
in interface IDirEntryPhotoSupport
uid
- the directory entry uidServerFault
- common error objectCopyright © 2021. All Rights Reserved.