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 |
Mailshare |
get(java.lang.String uid) |
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 |
restore(ItemValue<Mailshare> item,
boolean isCreate) |
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
ServerFaultpublic void create(java.lang.String uid,
Mailshare mailshare)
throws ServerFault
IMailshareMailshare entry.create in interface IMailshareuid - uid of the entrymailshare - value of the entryServerFaultpublic void update(java.lang.String uid,
Mailshare mailshare)
throws ServerFault
IMailshareMailshare entry.update in interface IMailshareuid - uid of the entrymailshare - value of the entryServerFaultpublic ItemValue<Mailshare> getComplete(java.lang.String uid) throws ServerFault
IMailshareMailshare from its unique uidgetComplete in interface IRestoreDirEntryWithMailboxSupport<Mailshare>getComplete in interface IMailshareItemValueServerFaultpublic java.util.List<ItemValue<Mailshare>> allComplete() throws ServerFault
IMailshareallComplete in interface IMailshareServerFaultpublic TaskRef delete(java.lang.String uid) throws ServerFault
IMailshareMailshare entrydelete in interface IRestoreDirEntryWithMailboxSupport<Mailshare>delete in interface IMailshareServerFaultpublic void setPhoto(java.lang.String uid,
byte[] photo)
throws ServerFault
IDirEntryPhotoSupportsetPhoto in interface IDirEntryPhotoSupportuid - the directory entry uidphoto - the photo dataServerFault - common error objectpublic void deletePhoto(java.lang.String uid)
throws ServerFault
IDirEntryPhotoSupportDirEntrydeletePhoto in interface IDirEntryPhotoSupportuid - the directory entry uidServerFault - common error objectpublic byte[] getPhoto(java.lang.String uid)
throws ServerFault
IDirEntryPhotoSupportDirEntrygetPhoto in interface IDirEntryPhotoSupportuid - the directory entry uidServerFault - common error objectpublic byte[] getIcon(java.lang.String uid)
throws ServerFault
IDirEntryPhotoSupportDirEntrygetIcon in interface IDirEntryPhotoSupportuid - the directory entry uidServerFault - common error objectpublic Mailshare get(java.lang.String uid)
get in interface IRestoreSupport<Mailshare>public void restore(ItemValue<Mailshare> item, boolean isCreate)
restore in interface IRestoreSupport<Mailshare>Copyright © 2024. All Rights Reserved.