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 UserRabbitMQService
userMQService
-
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 void
sendActivationLink(String userId, String login, String managedSystemId)
generate and send activation link.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.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.void
sendEmailByUserIds(String from, List<String> userIds, String subject, String msg, String attachment, boolean isHtmlFormat)
sending a email to users with id in userIds parameter.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.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.boolean
sendNotification(NotificationRequest req)
Sends out a notification based on the information defined in the notification request.void
sendToAllUsers()
Sends an email all users with OpenIAMvoid
sendToGroup(String groupId)
Sends an email all users in a specific groupvoid
tweetMessage(String status)
method used to update status over twitter.void
tweetPrivateMessage(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:MailService
Sends an email all users with OpenIAM- Specified by:
sendToAllUsers
in interfaceMailService
-
sendToGroup
public void sendToGroup(String groupId)
Description copied from interface:MailService
Sends an email all users in a specific group- Specified by:
sendToGroup
in interfaceMailService
-
sendEmail
public void sendEmail(String from, String to, String cc, String subject, String msg, String attachment, boolean isHtmlFormat)
Description copied from interface:MailService
sending a email to one user,cc and having one attachment at time.- Specified by:
sendEmail
in 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:MailService
sending a email to one user,cc and having one attachment at time.- Specified by:
sendEmailByDateTime
in interfaceMailService
executionDateTime
- - 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:MailService
sending a email from one user to multiple user,cc and bcc having multiple attachement at a time.- Specified by:
sendEmails
in 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:MailService
sending a email from one user to multiple user,cc and bcc having multiple attachement at a time.- Specified by:
sendEmailsByDateTime
in interfaceMailService
executionDateTime
- - execution time
-
sendNotification
public boolean sendNotification(NotificationRequest req)
Description copied from interface:MailService
Sends out a notification based on the information defined in the notification request.- Specified by:
sendNotification
in interfaceMailService
-
tweetPrivateMessage
public void tweetPrivateMessage(String userid, String msg)
Description copied from interface:MailService
sending out direct private mq to authorized user on twitter.- Specified by:
tweetPrivateMessage
in interfaceMailService
-
tweetMessage
public void tweetMessage(String status)
Description copied from interface:MailService
method used to update status over twitter.- Specified by:
tweetMessage
in interfaceMailService
-
sendActivationLink
public void sendActivationLink(String userId, String login, String managedSystemId)
Description copied from interface:MailService
generate and send activation link.- Specified by:
sendActivationLink
in interfaceMailService
-
sendEmailByUserIds
public void sendEmailByUserIds(String from, List<String> userIds, String subject, String msg, String attachment, boolean isHtmlFormat)
Description copied from interface:MailService
sending a email to users with id in userIds parameter.- Specified by:
sendEmailByUserIds
in interfaceMailService
-
-