1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- /*
- * SonarQube
- * Copyright (C) 2009-2020 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.api.batch.postjob;
-
- import org.sonar.api.batch.AnalysisMode;
- import org.sonar.api.batch.postjob.issue.PostJobIssue;
- import org.sonar.api.config.Configuration;
-
- /**
- * See {@link PostJob#execute(PostJobContext)}
- * @since 5.2
- */
- public interface PostJobContext {
-
- /**
- * Get configuration of the current project.
- * @since 6.5
- */
- Configuration config();
-
- /**
- * @deprecated since 7.3 preview mode deprecated since 6.6
- */
- @Deprecated
- AnalysisMode analysisMode();
-
- // ----------- Only available in preview mode --------------
-
- /**
- * All the unresolved issues of the project, including the issues reported by end-users. Only available in preview/issues mode.
- * @throw {@link UnsupportedOperationException} if not in preview/issues mode. To test the mode you can use {@link #analysisMode()}.
- * @deprecated since 7.3 the preview/issues mode is deprecated since 6.7
- */
- @Deprecated
- Iterable<PostJobIssue> issues();
-
- /**
- * All the issues of this project that have been marked as resolved during this scan. Only available in preview/issues mode.
- * @throw {@link UnsupportedOperationException} if not in preview mode. To test the mode you can use {@link #analysisMode()}.
- * @deprecated since 7.3 the preview/issues mode is deprecated since 6.7
- */
- @Deprecated
- Iterable<PostJobIssue> resolvedIssues();
-
- }
|