Package org.openiam.srvc.common
Class MailServiceImpl
- java.lang.Object
-
- org.openiam.srvc.AbstractApiService
-
- org.openiam.srvc.common.MailServiceImpl
-
- All Implemented Interfaces:
MailService
@Service("mailService") public class MailServiceImpl extends AbstractApiService implements MailService
-
-
Field Summary
Fields Modifier and Type Field Description protected UserRabbitMQServiceuserMQService-
Fields inherited from class org.openiam.srvc.AbstractApiService
applicationContext, log, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description MailServiceImpl(MailServiceQueue queue)
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class org.openiam.srvc.AbstractApiService
broadcast, crudRequest, getBooleanValue, getIntValue, getIntValue, getRabbitMqQueue, getResponse, getResponse, getValue, getValue, getValueList, getValueList, idRequest, manageApiRequest, manageApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, membershipRequestProcessing, membershipRequestProcessing, publish, publish, sendAsync, sendAsync
-
-
-
-
Field Detail
-
userMQService
@Autowired protected UserRabbitMQService userMQService
-
-
Constructor Detail
-
MailServiceImpl
@Autowired public MailServiceImpl(MailServiceQueue queue)
-
-
Method Detail
-
sendToAllUsers
public void sendToAllUsers()
Description copied from interface:MailServiceSends an email all users with OpenIAM- Specified by:
sendToAllUsersin interfaceMailService
-
sendToGroup
public void sendToGroup(String groupId)
Description copied from interface:MailServiceSends an email all users in a specific group- Specified by:
sendToGroupin interfaceMailService
-
sendEmail
public void sendEmail(String from, String to, String cc, String subject, String msg, String attachment, boolean isHtmlFormat)
Description copied from interface:MailServicesending a email to one user,cc and having one attachment at time.- Specified by:
sendEmailin interfaceMailService
-
sendEmailByDateTime
public void sendEmailByDateTime(String from, String to, String cc, String subject, String msg, String attachment, boolean isHtmlFormat, Date executionDateTime)
Description copied from interface:MailServicesending a email to one user,cc and having one attachment at time.- Specified by:
sendEmailByDateTimein interfaceMailServiceexecutionDateTime- - execution time
-
sendEmails
public void sendEmails(String from, String[] to, String[] cc, String[] bcc, String subject, String msg, boolean isHtmlFormat, String[] attachmentPath)
Description copied from interface:MailServicesending a email from one user to multiple user,cc and bcc having multiple attachement at a time.- Specified by:
sendEmailsin interfaceMailService
-
sendEmailsByDateTime
public void sendEmailsByDateTime(String from, String[] to, String[] cc, String[] bcc, String subject, String msg, boolean isHtmlFormat, String[] attachmentPath, Date executionDateTime)
Description copied from interface:MailServicesending a email from one user to multiple user,cc and bcc having multiple attachement at a time.- Specified by:
sendEmailsByDateTimein interfaceMailServiceexecutionDateTime- - execution time
-
sendNotification
public boolean sendNotification(NotificationRequest req)
Description copied from interface:MailServiceSends out a notification based on the information defined in the notification request.- Specified by:
sendNotificationin interfaceMailService
-
tweetPrivateMessage
public void tweetPrivateMessage(String userid, String msg)
Description copied from interface:MailServicesending out direct private mq to authorized user on twitter.- Specified by:
tweetPrivateMessagein interfaceMailService
-
tweetMessage
public void tweetMessage(String status)
Description copied from interface:MailServicemethod used to update status over twitter.- Specified by:
tweetMessagein interfaceMailService
-
sendActivationLink
public void sendActivationLink(String userId, String login, String managedSystemId)
Description copied from interface:MailServicegenerate and send activation link.- Specified by:
sendActivationLinkin interfaceMailService
-
sendEmailByUserIds
public void sendEmailByUserIds(String from, List<String> userIds, String subject, String msg, String attachment, boolean isHtmlFormat)
Description copied from interface:MailServicesending a email to users with id in userIds parameter.- Specified by:
sendEmailByUserIdsin interfaceMailService
-
-