public class DefaultMessageManager extends Object implements MessageManagerClient
| Constructor and Description |
|---|
DefaultMessageManager(org.gcube.common.clients.delegates.ProxyDelegate<org.gcube.common.gxrest.request.GXWebTargetAdapterRequest> config) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String id) |
org.gcube.common.storagehub.model.messages.Message |
get(String id) |
List<? extends org.gcube.common.storagehub.model.items.Item> |
getAttachments(String messageId) |
List<org.gcube.common.storagehub.model.messages.Message> |
getReceivedMessages() |
List<org.gcube.common.storagehub.model.messages.Message> |
getReceivedMessages(int reduceBody) |
List<org.gcube.common.storagehub.model.messages.Message> |
getSentMessages() |
List<org.gcube.common.storagehub.model.messages.Message> |
getSentMessages(int reduceBody) |
String |
sendMessage(List<String> recipients,
String subject,
String body,
List<String> attachments) |
void |
setOpened(String id,
Boolean value) |
void |
setRead(String id,
Boolean value) |
public DefaultMessageManager(org.gcube.common.clients.delegates.ProxyDelegate<org.gcube.common.gxrest.request.GXWebTargetAdapterRequest> config)
public org.gcube.common.storagehub.model.messages.Message get(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
get in interface MessageManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<org.gcube.common.storagehub.model.messages.Message> getReceivedMessages(int reduceBody) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getReceivedMessages in interface MessageManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<org.gcube.common.storagehub.model.messages.Message> getSentMessages(int reduceBody) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getSentMessages in interface MessageManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<org.gcube.common.storagehub.model.messages.Message> getReceivedMessages() throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getReceivedMessages in interface MessageManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<org.gcube.common.storagehub.model.messages.Message> getSentMessages() throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getSentMessages in interface MessageManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic void setRead(String id, Boolean value) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
setRead in interface MessageManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic void setOpened(String id, Boolean value) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
setOpened in interface MessageManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String sendMessage(List<String> recipients, String subject, String body, List<String> attachments) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
sendMessage in interface MessageManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic void delete(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
delete in interface MessageManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<? extends org.gcube.common.storagehub.model.items.Item> getAttachments(String messageId) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getAttachments in interface MessageManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionCopyright © 2021. All Rights Reserved.