public class MailClient extends Object
Constructor and Description |
---|
MailClient()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addScope(org.gcube.common.core.scope.GCUBEScope scope)
Add information to mail Client for the given scope
|
ArrayList<String> |
getNotificationMailForScopeAndDomain(String scope,
String domain) |
Map<String,MailRecipientHelper> |
getScopeMap() |
ArrayList<String> |
getSummaryMailForScope(String scope) |
void |
initialize()
Initialization
|
void |
sendMailNotification(String message,
Notification not,
String groupName,
String domain)
Send a mail notification
|
void |
sendMailSummary(String message,
String groupName)
Send mail summary
|
void |
setScopeMap(Map<String,MailRecipientHelper> scopeMap) |
public void initialize()
public void addScope(org.gcube.common.core.scope.GCUBEScope scope) throws Exception
scope
- the scopeException
- Exceptionpublic Map<String,MailRecipientHelper> getScopeMap()
public void setScopeMap(Map<String,MailRecipientHelper> scopeMap)
public void sendMailSummary(String message, String groupName)
message
- the message to sendgroupName
- the group to send the message topublic void sendMailNotification(String message, Notification not, String groupName, String domain)
not
- the notificationgroupName
- the group to send the message topublic ArrayList<String> getNotificationMailForScopeAndDomain(String scope, String domain)
scope
- domain
- Copyright © 2014. All Rights Reserved.