Class Notifications


  • public class Notifications
    extends java.lang.Object
    Configuration of notifications for deployment jobs. Supports a list of email addresses, and a list of roles for which email addresses are known. The currently supported roles are:
    • author: the author of the git commit of a given application package.
    Author:
    jonmv
    • Method Detail

      • of

        public static Notifications of​(java.util.Map<Notifications.When,​java.util.List<java.lang.String>> emailAddressesByWhen,
                                       java.util.Map<Notifications.When,​java.util.List<Notifications.Role>> emailRolesByWhen)
        Returns a new Notifications as specified by the given String input.
        Parameters:
        emailAddressesByWhen - What email addresses to notify, indexed by when to notify them.
        emailRolesByWhen - What roles to infer email addresses for, and notify, indexed by when to notify them.
        Returns:
        The Notifications as specified.
      • emailAddressesFor

        public java.util.Set<java.lang.String> emailAddressesFor​(Notifications.When when)
        Returns all email addresses to notify for the given condition.
      • emailRolesFor

        public java.util.Set<Notifications.Role> emailRolesFor​(Notifications.When when)
        Returns all roles for which email notification is to be sent for the given condition.