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) |
ItemValue<Mailshare> |
getComplete(java.lang.String uid)
Fetch a
Mailshare from its unique uid |
byte[] |
getIcon(java.lang.String uid) |
byte[] |
getPhoto(java.lang.String uid) |
void |
setPhoto(java.lang.String uid,
byte[] photo) |
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
setPhoto
in interface IDirEntryPhotoSupport
ServerFault
public void deletePhoto(java.lang.String uid) throws ServerFault
deletePhoto
in interface IDirEntryPhotoSupport
ServerFault
public byte[] getPhoto(java.lang.String uid) throws ServerFault
getPhoto
in interface IDirEntryPhotoSupport
ServerFault
public byte[] getIcon(java.lang.String uid) throws ServerFault
getIcon
in interface IDirEntryPhotoSupport
ServerFault
Copyright © 2021. All Rights Reserved.