aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2019-04-05 14:00:49 +0200
committersonartech <sonartech@sonarsource.com>2019-04-23 10:37:55 +0200
commit592c6dbcca610db0fb1a217fd580d493fe13cc95 (patch)
tree78f33793787a75a1ccf189219e767f038382dfe7 /sonar-plugin-api
parent09a93fb52007589a5f49fca38af56a9c4dcde478 (diff)
downloadsonarqube-592c6dbcca610db0fb1a217fd580d493fe13cc95.tar.gz
sonarqube-592c6dbcca610db0fb1a217fd580d493fe13cc95.zip
SONAR-11916 Drop unused Java API EmailTemplate
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/EmailMessage.java115
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/EmailTemplate.java35
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/package-info.java24
3 files changed, 0 insertions, 174 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/EmailMessage.java b/sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/EmailMessage.java
deleted file mode 100644
index bff5faf873a..00000000000
--- a/sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/EmailMessage.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2019 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.plugins.emailnotifications.api;
-
-import org.apache.commons.lang.builder.ToStringBuilder;
-
-/**
- * @since 2.10
- */
-public class EmailMessage {
-
- private String from;
- private String to;
- private String subject;
- private String message;
- private String messageId;
-
- /**
- * @param from full name of user, who initiated this message or null, if message was initiated by Sonar
- */
- public EmailMessage setFrom(String from) {
- this.from = from;
- return this;
- }
-
- /**
- * @see #setFrom(String)
- */
- public String getFrom() {
- return from;
- }
-
- /**
- * @param to email address where to send this message
- */
- public EmailMessage setTo(String to) {
- this.to = to;
- return this;
- }
-
- /**
- * @see #setTo(String)
- */
- public String getTo() {
- return to;
- }
-
- /**
- * @param subject message subject
- */
- public EmailMessage setSubject(String subject) {
- this.subject = subject;
- return this;
- }
-
- /**
- * @see #setSubject(String)
- */
- public String getSubject() {
- return subject;
- }
-
- /**
- * @param message message body
- */
- public EmailMessage setMessage(String message) {
- this.message = message;
- return this;
- }
-
- /**
- * @see #setMessage(String)
- */
- public String getMessage() {
- return message;
- }
-
- /**
- * @param messageId id of message for threading
- */
- public EmailMessage setMessageId(String messageId) {
- this.messageId = messageId;
- return this;
- }
-
- /**
- * @see #setMessageId(String)
- */
- public String getMessageId() {
- return messageId;
- }
-
- @Override
- public String toString() {
- return ToStringBuilder.reflectionToString(this);
- }
-
-}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/EmailTemplate.java b/sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/EmailTemplate.java
deleted file mode 100644
index 39cde5bf407..00000000000
--- a/sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/EmailTemplate.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2019 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.plugins.emailnotifications.api;
-
-import org.sonar.api.ExtensionPoint;
-import org.sonar.api.server.ServerSide;
-import org.sonar.api.notifications.Notification;
-
-/**
- * @since 2.10
- */
-@ServerSide
-@ExtensionPoint
-public abstract class EmailTemplate {
-
- public abstract EmailMessage format(Notification notification);
-
-}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/package-info.java b/sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/package-info.java
deleted file mode 100644
index f7a0b2107cf..00000000000
--- a/sonar-plugin-api/src/main/java/org/sonar/plugins/emailnotifications/api/package-info.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2019 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-@ParametersAreNonnullByDefault
-package org.sonar.plugins.emailnotifications.api;
-
-import javax.annotation.ParametersAreNonnullByDefault;
-