Interface MailService

  • All Known Implementing Classes:
    MailServiceImpl

    public interface MailService
    Provides methods to be able to send emails and send direct mq to authorized users.
    Author:
    suneet
    • 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 -
      • sendEmailByUserIds

        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.
        Parameters:
        userIds -
        subject -
        msg -
        attachment -
        isHtmlFormat -