/** * Get issue * * @param repository * @param issueNumber * @return issue * @throws IOException */ public Issue getIssue(IRepositoryIdProvider repository, String issueNumber) throws IOException { String repoId = getId(repository); return getIssue(repoId, issueNumber); }
/** * Delete the issue comment with the given id * * @param repository * @param commentId * @throws IOException */ public void deleteComment(IRepositoryIdProvider repository, String commentId) throws IOException { String repoId = getId(repository); deleteComment(repoId, commentId); }
/** * Create issue * * @param repository * @param issue * @return created issue * @throws IOException */ public Issue createIssue(IRepositoryIdProvider repository, Issue issue) throws IOException { String repoId = getId(repository); return createIssue(repoId, issue); }
/** * Edit issue comment * * @param repository * @param comment * @return edited comment * @throws IOException */ public Comment editComment(IRepositoryIdProvider repository, Comment comment) throws IOException { String repoId = getId(repository); return editComment(repoId, comment); }
/** * Get an issue's comments * * @param repository * @param issueNumber * @return list of comments * @throws IOException */ public List<Comment> getComments(IRepositoryIdProvider repository, String issueNumber) throws IOException { String repoId = getId(repository); return getComments(repoId, issueNumber); }
/** * Edit issue * * @param repository * @param issue * @return created issue * @throws IOException */ public Issue editIssue(IRepositoryIdProvider repository, Issue issue) throws IOException { String repoId = getId(repository); return editIssue(repoId, issue); }
/** * Create comment on specified issue number * * @param repository * @param issueNumber * @param comment * @return created issue * @throws IOException */ public Comment createComment(IRepositoryIdProvider repository, String issueNumber, String comment) throws IOException { String repoId = getId(repository); return createComment(repoId, issueNumber, comment); }
/** * Get page iterator over issues query * * @param repository * @param filterData * @param size * page size * @param start * starting page number * @return iterator */ public PageIterator<Issue> pageIssues(IRepositoryIdProvider repository, Map<String, String> filterData, int start, int size) { String repoId = getId(repository); PagedRequest<Issue> request = createIssuesRequest(repoId, filterData, start, size); return createPageIterator(request); }
String id = getId(repository); if (state == null) throw new IllegalArgumentException("State cannot be null"); //$NON-NLS-1$