forked from myYearbook/jira-gerrit-plugin
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update javadoc to make JDK8 and doclint happy
- Loading branch information
Joe Hansche
committed
Jan 6, 2016
1 parent
4e6bc2c
commit 6d7a5ce
Showing
15 changed files
with
160 additions
and
164 deletions.
There are no files selected for viewing
16 changes: 8 additions & 8 deletions
16
src/main/java/com/meetme/plugins/jira/gerrit/data/GerritConfigurationImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 30 additions & 27 deletions
57
src/main/java/com/meetme/plugins/jira/gerrit/data/IssueReviewsManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,73 @@ | ||
/* | ||
* Copyright 2012 MeetMe, Inc. | ||
* | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. You may obtain a copy of the License at | ||
* | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License | ||
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
* or implied. See the License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package com.meetme.plugins.jira.gerrit.data; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
import net.sf.json.JSONObject; | ||
|
||
import com.atlassian.core.user.preferences.Preferences; | ||
import com.atlassian.jira.issue.Issue; | ||
import com.atlassian.jira.project.Project; | ||
import com.meetme.plugins.jira.gerrit.data.dto.GerritChange; | ||
import com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritQueryException; | ||
import com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritQueryHandler; | ||
|
||
import net.sf.json.JSONObject; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
public interface IssueReviewsManager { | ||
|
||
/** | ||
* Gets all Gerrit reviews related to the {@link Issue#getKey() issue key}. | ||
* | ||
* @param issueKey | ||
* | ||
* @param issueKey the JIRA issue key | ||
* @return A list of {@link JSONObject}s, as retrieved from Gerrit. | ||
* @throws GerritQueryException If any failure occurs while querying the Gerrit server. | ||
* @see GerritQueryHandler | ||
*/ | ||
public abstract List<GerritChange> getReviewsForIssue(String issueKey) throws GerritQueryException; | ||
List<GerritChange> getReviewsForIssue(String issueKey) throws GerritQueryException; | ||
|
||
/** | ||
* Gets all Gerrit reviews related to the {@link Project#getKey() project}. | ||
* | ||
* @param issueKey | ||
* | ||
* @param projectKey the JIRA Project key (i.e., {@code JIRA-123}'s projectKey would be {@code JIRA}) | ||
* @return A list of {@link JSONObject}s, as retrieved from Gerrit. | ||
* @throws GerritQueryException If any failure occurs while querying the Gerrit server. | ||
* @see GerritQueryHandler | ||
*/ | ||
public abstract List<GerritChange> getReviewsForProject(String projectKey) throws GerritQueryException; | ||
List<GerritChange> getReviewsForProject(String projectKey) throws GerritQueryException; | ||
|
||
/** | ||
* Performs an approval/review of a change. | ||
* | ||
* @param issueKey | ||
* @param change | ||
* @param args | ||
* @throws IOException | ||
* | ||
* @param issueKey the JIRA issue key | ||
* @param change the Gerrit change | ||
* @param args arguments to add to the approval | ||
* @param prefs the {@link Preferences} for the viewing user | ||
* @return whether the approval was successful | ||
* @throws IOException if so | ||
*/ | ||
public abstract boolean doApproval(String issueKey, GerritChange change, String args, Preferences prefs) throws IOException; | ||
boolean doApproval(String issueKey, GerritChange change, String args, Preferences prefs) throws IOException; | ||
|
||
/** | ||
* Performs approvals/reviews of all changes. | ||
* | ||
* @param issueKey | ||
* @param change | ||
* @param args | ||
* @param prefs | ||
* @throws IOException | ||
* | ||
* @param issueKey the JIRA issue key | ||
* @param changes the set of Gerrit changes | ||
* @param args arguments to add to each approval | ||
* @param prefs the {@link Preferences} for the viewing user | ||
* @return whether the approvals were successful | ||
* @throws IOException if so | ||
*/ | ||
public abstract boolean doApprovals(String issueKey, List<GerritChange> changes, String args, Preferences prefs) throws IOException; | ||
boolean doApprovals(String issueKey, List<GerritChange> changes, String args, Preferences prefs) throws IOException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.