/** * 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); }
public GitlabNote createNote(GitlabIssue issue, String message) throws IOException { return createNote(String.valueOf(issue.getProjectId()), issue.getIid(), message); }
public List<GitlabNote> getNotes(GitlabIssue issue) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getIid() + GitlabNote.URL; return Arrays.asList(retrieve().to(tailUrl, GitlabNote[].class)); }
public List<GitlabNote> getNotes(GitlabIssue issue) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getIid() + GitlabNote.URL; return Arrays.asList(retrieve().to(tailUrl, GitlabNote[].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 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); }
public GitlabNote getNote(GitlabIssue issue, Integer noteId) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getIid() + GitlabNote.URL + "/" + noteId; return retrieve().to(tailUrl, GitlabNote.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 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); }
/** * 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); }
public GitlabNote getNote(GitlabIssue issue, Integer noteId) throws IOException { String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/" + issue.getIid() + GitlabNote.URL + "/" + noteId; return retrieve().to(tailUrl, GitlabNote.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); }