private void fillComment(ContextBuilder context, Comment comment) { context.put("id", comment.getId()); context.put("text", wiki2html(comment.getText())); context.put("author", comment.getAuthorLabel()); context.put( "date", comment .getDateAndTime() .toString(DateAndTime.FORMAT_WEEKDAY_LONGMONTH_DAY_YEAR_HOUR_MINUTE)); }
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 fillRelease(ContextBuilder context, Release release) { context.put("id", release.getId()); context.put("reference", release.getReference()); context.put("label", release.getLabel()); context.put("note", wiki2html(release.getNote())); context.put("releaseNotes", wiki2html(release.getReleaseNotes())); context.put("releaseDate", release.getReleaseDate()); context.put("released", release.isReleased()); context.put("major", release.isMajor()); context.put("bugfix", release.isBugfix()); fillComments(context, release); }
private void fillIssue(ContextBuilder context, Issue issue) { context.put("id", issue.getId()); context.put("reference", issue.getReference()); context.put("label", issue.getLabel()); context.put("description", wiki2html(issue.getDescription())); context.put("statement", wiki2html(issue.getStatement())); context.put("statusText", issue.getStatusText()); if (issue.isOwnerSet()) context.put("owner", issue.getOwner().getName()); if (issue.isFixed()) context.put("fixed", "true"); fillComments(context, issue); }
private void fillProject(ContextBuilder context) { context.put("id", project.getId()); context.put("label", project.getLabel()); context.put("vision", project.getVision()); context.put("shortDescription", project.getShortDescription()); context.put("description", wiki2html(project.getDescription())); context.put("longDescription", wiki2html(project.getLongDescription())); Release currentRelease = project.getCurrentRelease(); context.put("currentRelease", currentRelease == null ? "?" : currentRelease.getLabel()); }
private void fillBlogEntry(ContextBuilder context, BlogEntry entry) { context.put("id", entry.getId()); context.put("reference", entry.getReference()); context.put("title", entry.getTitle()); context.put("text", wiki2html(entry.getText())); context.put("plainText", wiki2text(entry.getText())); DateAndTime date = entry.getDateAndTime(); context.put("date", date.toString(Date.FORMAT_LONGMONTH_DAY_YEAR)); context.put("rssDate", date.toString(DateAndTime.FORMAT_RFC822)); fillComments(context, entry); }
private void fillStory(ContextBuilder context, Requirement requirement) { context.put("id", requirement.getId()); context.put("reference", requirement.getReference()); context.put("label", requirement.getLabel()); context.put("description", wiki2html(requirement.getDescription())); context.put("testDescription", wiki2html(requirement.getTestDescription())); if (requirement.isEstimatedWorkSet() && !requirement.isDirty()) context.put("estimatedWork", requirement.getEstimatedWorkAsString()); fillComments(context, requirement); }
private void fillWiki(ContextBuilder context) { for (Wikipage page : project.getWikipages()) { context.put(page.getName(), wiki2html(page.getText())); } }