You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MutableAnalysisMetadataHolder.java 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2018 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. package org.sonar.server.computation.task.projectanalysis.analysis;
  21. import java.util.Map;
  22. import javax.annotation.Nullable;
  23. import org.sonar.server.qualityprofile.QualityProfile;
  24. public interface MutableAnalysisMetadataHolder extends AnalysisMetadataHolder {
  25. /**
  26. * @throws IllegalStateException if organizations enabled flag has already been set
  27. */
  28. MutableAnalysisMetadataHolder setOrganizationsEnabled(boolean isOrganizationsEnabled);
  29. /**
  30. * @throws IllegalStateException if the organization uuid has already been set
  31. */
  32. MutableAnalysisMetadataHolder setOrganization(Organization organization);
  33. /**
  34. * @throws IllegalStateException if the analysis uuid has already been set
  35. */
  36. MutableAnalysisMetadataHolder setUuid(String uuid);
  37. /**
  38. * @throws IllegalStateException if the analysis date has already been set
  39. */
  40. MutableAnalysisMetadataHolder setAnalysisDate(long date);
  41. /**
  42. * @throws IllegalStateException if baseAnalysis has already been set
  43. */
  44. MutableAnalysisMetadataHolder setBaseAnalysis(@Nullable Analysis baseAnalysis);
  45. /**
  46. * @throws IllegalStateException if cross project duplication flag has already been set
  47. */
  48. MutableAnalysisMetadataHolder setCrossProjectDuplicationEnabled(boolean isCrossProjectDuplicationEnabled);
  49. /**
  50. * @throws IllegalStateException if branch has already been set
  51. */
  52. MutableAnalysisMetadataHolder setBranch(Branch branch);
  53. /**
  54. * @throws IllegalStateException if pull request id has already been set
  55. */
  56. MutableAnalysisMetadataHolder setPullRequestId(String pullRequestId);
  57. /**
  58. * @throws IllegalStateException if project has already been set
  59. */
  60. MutableAnalysisMetadataHolder setProject(Project project);
  61. /**
  62. * @throws IllegalStateException if root component ref has already been set
  63. */
  64. MutableAnalysisMetadataHolder setRootComponentRef(int rootComponentRef);
  65. /**
  66. * @throws IllegalStateException if QProfile by language has already been set
  67. */
  68. MutableAnalysisMetadataHolder setQProfilesByLanguage(Map<String, QualityProfile> qprofilesByLanguage);
  69. /**
  70. * @throws IllegalStateException if Plugins by key has already been set
  71. */
  72. MutableAnalysisMetadataHolder setScannerPluginsByKey(Map<String, ScannerPlugin> pluginsByKey);
  73. }