private void fillClosedIssues(ContextBuilder context) { List<Issue> issues = new ArrayList<Issue>(project.getClosedIssues()); Collections.sort(issues, Issue.CLOSE_DATE_COMPARATOR); for (Issue issue : issues) { fillIssue(context.addSubContext("closedIssues"), issue); } }
private void fillIdeas(ContextBuilder context) { List<Issue> issues = new ArrayList<Issue>(project.getOpenIdeas()); Collections.sort(issues, Issue.ACCEPT_DATE_COMPARATOR); for (Issue issue : issues) { fillIssue(context.addSubContext("ideas"), issue); } }
private void fillBugs(ContextBuilder context) { List<Issue> issues = new ArrayList<Issue>(project.getBugsInCurrentRelease()); Collections.sort(issues, Issue.ACCEPT_DATE_COMPARATOR); for (Issue issue : issues) { fillIssue(context.addSubContext("bugs"), issue); } }
private void fillProductBacklog(ContextBuilder context) { List<Requirement> requirements = new ArrayList<Requirement>(project.getRequirements()); Collections.sort(requirements, project.getRequirementsOrderComparator()); for (Requirement requirement : requirements) { if (requirement.isClosed() || requirement.isInCurrentSprint()) continue; fillStory(context.addSubContext("stories"), requirement); } }
private void fillBlog(ContextBuilder context) { List<BlogEntry> entries = new ArrayList<BlogEntry>(project.getBlogEntrys()); Collections.sort(entries); for (BlogEntry entry : entries) { if (!entry.isPublished()) continue; fillBlogEntry(context.addSubContext("entries"), entry); } }
private void fillComments(ContextBuilder context, AEntity entity) { CommentDao commentDao = (CommentDao) entity.getDaoService().getDaoByClass(Comment.class); Collection<Comment> comments = commentDao.getPublishedCommentsByParent(entity); comments = Utl.sort(comments); for (Comment comment : comments) { fillComment(context.addSubContext("comments"), comment); } }
private void fillReleases(ContextBuilder context) { List<Release> releases = new ArrayList<Release>(project.getReleases()); Collections.sort(releases, Release.DATE_REVERSE_COMPARATOR); for (Release release : releases) { if (!release.isReleased()) continue; fillRelease(context.addSubContext("releases"), release); } }
private void fillIssues(ContextBuilder context) { List<Issue> issues = new ArrayList<Issue>(project.getBugsInCurrentRelease()); Collections.sort(issues, Issue.ACCEPT_DATE_COMPARATOR); for (Issue issue : project.getIssues()) { if (!issue.isPublished()) continue; fillIssue(context.addSubContext("issues"), issue); } }
private void fillSprintBacklog(ContextBuilder context) { Sprint sprint = project.getCurrentSprint(); context.put("label", sprint.getLabel()); context.put("goal", wiki2html(sprint.getGoal())); context.put("begin", sprint.getBegin().toString(Date.FORMAT_LONGMONTH_DAY_YEAR)); context.put("end", sprint.getEnd().toString(Date.FORMAT_LONGMONTH_DAY_YEAR)); Release release = sprint.getRelease(); if (release != null) context.put("release", release.getLabel()); List<Requirement> requirements = new ArrayList<Requirement>(sprint.getRequirements()); Collections.sort(requirements, project.getRequirementsOrderComparator()); for (Requirement requirement : requirements) { fillStory(context.addSubContext("stories"), requirement); } }
private void fillStories(ContextBuilder context) { for (Requirement requirement : project.getRequirements()) { if (requirement.isClosed()) continue; fillStory(context.addSubContext("stories"), requirement); } }