Class Notifications


  • public class Notifications
    extends Object
    This class implements a set of utilities for notifications.

    These can be somewhat unwieldy in Sailpoint for straightforward operations like “send an email template with these arguments to one person”.

    • Method Detail

      • notify

        public static void notify​(sailpoint.api.SailPointContext context,
                                  String singleRecipient,
                                  String emailTemplate,
                                  Map<String,​Object> parameters)
                           throws sailpoint.tools.GeneralException
        Sends an email notification to the given users with the given arguments
        Parameters:
        context - A sailpoint context
        singleRecipient - The recipient, which can be a user or a workgroup or an email address
        emailTemplate - The email template to send
        parameters - The parameters to use for the template
        Throws:
        sailpoint.tools.GeneralException - if a send failure occurs
      • notify

        public static void notify​(sailpoint.api.SailPointContext context,
                                  String singleRecipient,
                                  String cc,
                                  String emailTemplate,
                                  Map<String,​Object> parameters)
                           throws sailpoint.tools.GeneralException
        Sends an email notification to the given users with the given arguments
        Parameters:
        context - A sailpoint context
        singleRecipient - The recipient, which can be a user or a workgroup or an email address
        cc - Optional user or email to CC the email to
        emailTemplate - The email template to send
        parameters - The parameters to use for the template
        Throws:
        sailpoint.tools.GeneralException - if a send failure occurs
      • notify

        public static void notify​(sailpoint.api.SailPointContext context,
                                  List<String> recipients,
                                  String cc,
                                  String emailTemplate,
                                  Map<String,​Object> parameters)
                           throws sailpoint.tools.GeneralException
        Sends an email notification to the given users with the given arguments
        Parameters:
        context - A sailpoint context
        recipients - The recipients, which can be a user or a workgroup
        cc - Optional user or email to CC the email to
        emailTemplate - The email template to send
        parameters - The parameters to use for the template
        Throws:
        sailpoint.tools.GeneralException - if a send failure occurs