diff options
Diffstat (limited to 'sonar-plugin-api')
5 files changed, 19 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Characteristic.java b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Characteristic.java index 1ea0eb7960d..2f670b2bb76 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Characteristic.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Characteristic.java @@ -25,6 +25,9 @@ import javax.annotation.CheckForNull; import java.util.Date; import java.util.List; +/** + * @since 4.1 + */ public interface Characteristic { Integer id(); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Requirement.java b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Requirement.java index 080726b97af..c72f97e163b 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Requirement.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/Requirement.java @@ -25,6 +25,9 @@ import org.sonar.api.technicaldebt.WorkUnit; import java.util.Date; +/** + * @since 4.1 + */ public interface Requirement { Integer id(); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/TechnicalDebtModel.java b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/TechnicalDebtModel.java index 10a5b832fc8..a4d1bf42509 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/TechnicalDebtModel.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/batch/TechnicalDebtModel.java @@ -26,12 +26,18 @@ import javax.annotation.CheckForNull; import java.util.List; +/** + * @since 4.1 + */ public interface TechnicalDebtModel { @CheckForNull Characteristic characteristicById(Integer id); @CheckForNull + Characteristic characteristicByKey(String key); + + @CheckForNull Requirement requirementsByRule(RuleKey ruleKey); @CheckForNull diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/Characteristic.java b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/Characteristic.java index 05cbe32ceb6..f42c6ea8564 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/Characteristic.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/Characteristic.java @@ -28,6 +28,9 @@ import org.sonar.api.technicaldebt.WorkUnit; import javax.annotation.CheckForNull; import javax.annotation.Nullable; +/** + * @since 4.1 + */ public class Characteristic { private Integer id; diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/TechnicalDebtManager.java b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/TechnicalDebtManager.java index acd3e33de4f..e013aee2be0 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/TechnicalDebtManager.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/technicaldebt/server/TechnicalDebtManager.java @@ -25,6 +25,10 @@ import org.sonar.api.rules.Rule; import java.util.List; +/** + * @since 4.1 + */ + public interface TechnicalDebtManager extends ServerComponent { List<Characteristic> findRootCharacteristics(); |