Class NotificationEmail

  • Direct Known Subclasses:
    ChangeEmail

    public abstract class NotificationEmail
    extends OutgoingEmail
    Common class for notifications that are related to a project and branch
    • Method Detail

      • includeWatchers

        protected void includeWatchers​(ProjectWatches.NotifyType type)
        Include users and groups that want notification of events.
      • includeWatchers

        protected void includeWatchers​(ProjectWatches.NotifyType type,
                                       boolean includeWatchersFromNotifyConfig)
        Include users and groups that want notification of events.
      • getWatchers

        protected abstract ProjectWatch.Watchers getWatchers​(ProjectWatches.NotifyType type,
                                                             boolean includeWatchersFromNotifyConfig)
                                                      throws com.google.gwtorm.server.OrmException
        Returns all watchers that are relevant
        Throws:
        com.google.gwtorm.server.OrmException
      • add

        protected void add​(RecipientType type,
                           com.google.gerrit.server.mail.send.ProjectWatch.Watchers.List list)
        Add users or email addresses to the TO, CC, or BCC list.
      • getSshHost

        public String getSshHost()
      • getShortProjectName

        protected static String getShortProjectName​(String projectName)
      • getInstanceAndProjectName

        protected static String getInstanceAndProjectName​(String instanceName,
                                                          String projectName)