Example #1
0
 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);
   }
 }
Example #2
0
 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);
   }
 }
Example #3
0
 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);
   }
 }
Example #4
0
 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);
   }
 }
Example #5
0
 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);
   }
 }
Example #6
0
 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);
   }
 }
Example #7
0
 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);
   }
 }
Example #8
0
 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);
   }
 }
Example #9
0
 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);
   }
 }
Example #10
0
 private void fillStories(ContextBuilder context) {
   for (Requirement requirement : project.getRequirements()) {
     if (requirement.isClosed()) continue;
     fillStory(context.addSubContext("stories"), requirement);
   }
 }