Package org.openiam.email.service
Class MailDataServiceImpl
- java.lang.Object
-
- org.openiam.email.service.MailDataServiceImpl
-
- All Implemented Interfaces:
MailDataService
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Service("mailDataService") public class MailDataServiceImpl extends Object implements MailDataService, org.springframework.context.ApplicationContextAware
-
-
Field Summary
Fields Modifier and Type Field Description static org.springframework.context.ApplicationContext
ac
protected AuditLogHelper
auditLogHelper
-
Constructor Summary
Constructors Constructor Description MailDataServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendEmail(String from, String to, String cc, String bcc, String subject, String msg, boolean isHtmlFormat, String attachmentPath, Date executionDateTime)
void
sendEmail(String from, String to, String cc, String bcc, String subject, String msg, boolean isHtmlFormat, String attachmentPath, Date executionDateTime, Integer priority)
void
sendEmails(String from, List<String> to, List<String> cc, List<String> bcc, String subject, String msg, boolean isHtmlFormat, List<String> attachmentPath, Date executionDateTime)
sending a email from one user to multiple user,cc and bcc having multiple attachement at a time.void
sendEmails(String from, List<String> to, List<String> cc, List<String> bcc, String subject, String msg, boolean isHtmlFormat, List<String> attachmentPath, Date executionDateTime, Integer priority)
boolean
sendNotification(NotificationRequest req)
Sends out a notification based on the information defined in the notification request.void
sendNotifications(List<NotificationRequest> requests)
method is used to send multiple notifications.void
sendTestEmail(String to, String subject, String msg, boolean isHtmlFormat, MailboxConfiguration configuration)
sending a email from one user to multiple user,cc and bcc having multiple attachement at a time.void
sendToGroup(String groupId)
Sends an email all users in a specific groupvoid
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
tweetMessage(String status)
mmethod used to update status over twitter.void
tweetPrivateMessage(String userid, String msg)
sending out direct private mq to authorized user on twitter.
-
-
-
Field Detail
-
auditLogHelper
@Autowired protected AuditLogHelper auditLogHelper
-
ac
public static org.springframework.context.ApplicationContext ac
-
-
Method Detail
-
sendToGroup
public void sendToGroup(String groupId)
Description copied from interface:MailDataService
Sends an email all users in a specific group- Specified by:
sendToGroup
in interfaceMailDataService
-
sendEmail
public void sendEmail(String from, String to, String cc, String bcc, String subject, String msg, boolean isHtmlFormat, String attachmentPath, Date executionDateTime, Integer priority) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
sendEmail
public void sendEmail(String from, String to, String cc, String bcc, String subject, String msg, boolean isHtmlFormat, String attachmentPath, Date executionDateTime) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
sendEmails
public void sendEmails(String from, List<String> to, List<String> cc, List<String> bcc, String subject, String msg, boolean isHtmlFormat, List<String> attachmentPath, Date executionDateTime) throws BasicDataServiceException
Description copied from interface:MailDataService
sending a email from one user to multiple user,cc and bcc having multiple attachement at a time.- Specified by:
sendEmails
in interfaceMailDataService
- Throws:
BasicDataServiceException
-
sendEmails
public void sendEmails(String from, List<String> to, List<String> cc, List<String> bcc, String subject, String msg, boolean isHtmlFormat, List<String> attachmentPath, Date executionDateTime, Integer priority) throws BasicDataServiceException
- Specified by:
sendEmails
in interfaceMailDataService
- Throws:
BasicDataServiceException
-
sendNotification
public boolean sendNotification(NotificationRequest req)
Description copied from interface:MailDataService
Sends out a notification based on the information defined in the notification request.- Specified by:
sendNotification
in interfaceMailDataService
-
sendTestEmail
public void sendTestEmail(String to, String subject, String msg, boolean isHtmlFormat, MailboxConfiguration configuration) throws BasicDataServiceException
Description copied from interface:MailDataService
sending a email from one user to multiple user,cc and bcc having multiple attachement at a time.- Specified by:
sendTestEmail
in interfaceMailDataService
- Throws:
BasicDataServiceException
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
tweetPrivateMessage
public void tweetPrivateMessage(String userid, String msg)
Description copied from interface:MailDataService
sending out direct private mq to authorized user on twitter.- Specified by:
tweetPrivateMessage
in interfaceMailDataService
-
tweetMessage
public void tweetMessage(String status)
Description copied from interface:MailDataService
mmethod used to update status over twitter.- Specified by:
tweetMessage
in interfaceMailDataService
-
sendNotifications
public void sendNotifications(List<NotificationRequest> requests)
Description copied from interface:MailDataService
method is used to send multiple notifications.- Specified by:
sendNotifications
in interfaceMailDataService
- Parameters:
requests
- - set of all collected notifications to be sent
-
-