Exemplo n.º 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);
   }
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 10
0
 private void fillStories(ContextBuilder context) {
   for (Requirement requirement : project.getRequirements()) {
     if (requirement.isClosed()) continue;
     fillStory(context.addSubContext("stories"), requirement);
   }
 }