Package org.openiam.srvc.common
Interface MailService
-
- All Known Implementing Classes:
MailServiceImpl
public interface MailServiceProvides methods to be able to send emails and send direct mq to authorized users.- Author:
- suneet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsendActivationLink(String userId, String login, String managedSystemId)generate and send activation link.voidsendEmail(String from, String to, String cc, String subject, String msg, String attachment, boolean isHtmlFormat)sending a email to one user,cc and having one attachment at time.voidsendEmailByDateTime(String from, String to, String cc, String subject, String msg, String attachment, boolean isHtmlFormat, Date executionDateTime)sending a email to one user,cc and having one attachment at time.voidsendEmailByUserIds(String from, List<String> userIds, String subject, String msg, String attachment, boolean isHtmlFormat)sending a email to users with id in userIds parameter.voidsendEmails(String from, String[] to, String[] cc, String[] bcc, String subject, String msg, boolean isHtmlFormat, String[] attachmentPath)sending a email from one user to multiple user,cc and bcc having multiple attachement at a time.voidsendEmailsByDateTime(String from, String[] to, String[] cc, String[] bcc, String subject, String msg, boolean isHtmlFormat, String[] attachmentPath, Date executionDateTime)sending a email from one user to multiple user,cc and bcc having multiple attachement at a time.booleansendNotification(NotificationRequest req)Sends out a notification based on the information defined in the notification request.voidsendToAllUsers()Sends an email all users with OpenIAMvoidsendToGroup(String groupId)Sends an email all users in a specific groupvoidtweetMessage(String status)method used to update status over twitter.voidtweetPrivateMessage(String userid, String msg)sending out direct private mq to authorized user on twitter.
-
-
-
Method Detail
-
sendToAllUsers
void sendToAllUsers()
Sends an email all users with OpenIAM
-
sendToGroup
void sendToGroup(String groupId)
Sends an email all users in a specific group- Parameters:
groupId-
-
sendNotification
boolean sendNotification(NotificationRequest req)
Sends out a notification based on the information defined in the notification request.- Parameters:
req-
-
sendEmailByDateTime
void sendEmailByDateTime(String from, String to, String cc, String subject, String msg, String attachment, boolean isHtmlFormat, Date executionDateTime)
sending a email to one user,cc and having one attachment at time.- Parameters:
from-to-cc-subject-msg-attachment-isHtmlFormat-executionDateTime- - execution time
-
sendEmail
void sendEmail(String from, String to, String cc, String subject, String msg, String attachment, boolean isHtmlFormat)
sending a email to one user,cc and having one attachment at time.- Parameters:
from-to-cc-subject-msg-attachment-isHtmlFormat-
-
sendEmails
void sendEmails(String from, String[] to, String[] cc, String[] bcc, String subject, String msg, boolean isHtmlFormat, String[] attachmentPath)
sending a email from one user to multiple user,cc and bcc having multiple attachement at a time.- Parameters:
from-to-cc-bcc-subject-msg-isHtmlFormat-attachmentPath-
-
sendEmailsByDateTime
void sendEmailsByDateTime(String from, String[] to, String[] cc, String[] bcc, String subject, String msg, boolean isHtmlFormat, String[] attachmentPath, Date executionDateTime)
sending a email from one user to multiple user,cc and bcc having multiple attachement at a time.- Parameters:
from-to-cc-bcc-subject-msg-isHtmlFormat-attachmentPath-executionDateTime- - execution time
-
tweetPrivateMessage
void tweetPrivateMessage(String userid, String msg)
sending out direct private mq to authorized user on twitter.- Parameters:
userid-msg-
-
tweetMessage
void tweetMessage(String status)
method used to update status over twitter.- Parameters:
status-
-
sendActivationLink
void sendActivationLink(String userId, String login, String managedSystemId)
generate and send activation link.- Parameters:
userId-login-managedSystemId-
-
-