@Override public String getKey() { return String.valueOf(gitlabIssue.getId()); }
/** * Delete an Issue Note * * @param issue The issue * @param noteToDelete The note to delete * @throws IOException on gitlab api call error */ public void deleteNote(GitlabIssue issue, GitlabNote noteToDelete) throws IOException { deleteNote(String.valueOf(issue.getProjectId()), issue.getId(), noteToDelete); }
/** * Delete an Issue Note * * @param issue The issue * @param noteToDelete The note to delete * @throws IOException on gitlab api call error */ public void deleteNote(GitlabIssue issue, GitlabNote noteToDelete) throws IOException { deleteNote(String.valueOf(issue.getProjectId()), issue.getId(), noteToDelete); }
/** * Delete an Issue Note * * @param issue The issue * @param noteToDelete The note to delete * @throws IOException on gitlab api call error */ public void deleteNote(GitlabIssue issue, GitlabNote noteToDelete) throws IOException { deleteNote(String.valueOf(issue.getProjectId()), issue.getId(), noteToDelete); }
/** * Get all awards for an issue note * * @param issue * @param noteId */ public List<GitlabAward> getAllAwards(GitlabIssue issue, Integer noteId) { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabNote.URL + noteId + GitlabAward.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabAward[].class); }
/** * Get all awards for an issue * * @param issue */ public List<GitlabAward> getAllAwards(GitlabIssue issue) { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabAward[].class); }
/** * Get all awards for an issue note * * @param issue * @param noteId */ public List<GitlabAward> getAllAwards(GitlabIssue issue, Integer noteId) { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabNote.URL + noteId + GitlabAward.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabAward[].class); }
/** * Get a specific award for an issue * * @param issue * @param awardId * @throws IOException on gitlab api call error */ public GitlabAward getAward(GitlabIssue issue, Integer awardId) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + "/" + awardId; return retrieve().to(tailUrl, GitlabAward.class); }
/** * Get a specific award for an issue * * @param issue * @param awardId * @throws IOException on gitlab api call error */ public GitlabAward getAward(GitlabIssue issue, Integer awardId) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + "/" + awardId; return retrieve().to(tailUrl, GitlabAward.class); }
/** * Get all awards for an issue * * @param issue */ public List<GitlabAward> getAllAwards(GitlabIssue issue) { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabAward[].class); }
/** * Get a specific award for an issue * * @param issue * @param awardId * @throws IOException on gitlab api call error */ public GitlabAward getAward(GitlabIssue issue, Integer awardId) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + "/" + awardId; return retrieve().to(tailUrl, GitlabAward.class); }
/** * Get all awards for an issue note * * @param issue * @param noteId */ public List<GitlabAward> getAllAwards(GitlabIssue issue, Integer noteId) { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabNote.URL + noteId + GitlabAward.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabAward[].class); }
/** * Get a specific award for an issue note * * @param issue * @param noteId * @param awardId * @throws IOException on gitlab api call error */ public GitlabAward getAward(GitlabIssue issue, Integer noteId, Integer awardId) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabNote.URL + noteId + GitlabAward.URL + "/" + awardId; return retrieve().to(tailUrl, GitlabAward.class); }
/** * Get all awards for an issue * * @param issue */ public List<GitlabAward> getAllAwards(GitlabIssue issue) { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + PARAM_MAX_ITEMS_PER_PAGE; return retrieve().getAll(tailUrl, GitlabAward[].class); }
/** * Get a specific award for an issue note * * @param issue * @param noteId * @param awardId * @throws IOException on gitlab api call error */ public GitlabAward getAward(GitlabIssue issue, Integer noteId, Integer awardId) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabNote.URL + noteId + GitlabAward.URL + "/" + awardId; return retrieve().to(tailUrl, GitlabAward.class); }
/** * Delete an award for an issue * * @param issue * @param award * @throws IOException on gitlab api call error */ public void deleteAward(GitlabIssue issue, GitlabAward award) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + "/" + award.getId(); retrieve().method(DELETE).to(tailUrl, Void.class); }
/** * Delete an award for an issue * * @param issue * @param award * @throws IOException on gitlab api call error */ public void deleteAward(GitlabIssue issue, GitlabAward award) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + "/" + award.getId(); retrieve().method(DELETE).to(tailUrl, Void.class); }
/** * Delete an award for an issue note * * @param issue * @param noteId * @param award * @throws IOException on gitlab api call error */ public void deleteAward(GitlabIssue issue, Integer noteId, GitlabAward award) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabNote.URL + noteId + GitlabAward.URL + "/" + award.getId(); retrieve().method(DELETE).to(tailUrl, Void.class); }
/** * Delete an award for an issue * * @param issue * @param award * @throws IOException on gitlab api call error */ public void deleteAward(GitlabIssue issue, GitlabAward award) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabAward.URL + "/" + award.getId(); retrieve().method(DELETE).to(tailUrl, Void.class); }
/** * Delete an award for an issue note * * @param issue * @param noteId * @param award * @throws IOException on gitlab api call error */ public void deleteAward(GitlabIssue issue, Integer noteId, GitlabAward award) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getId() + GitlabNote.URL + noteId + GitlabAward.URL + "/" + award.getId(); retrieve().method(DELETE).to(tailUrl, Void.class); }