public final boolean addRelease(scrum.server.release.Release release) { if (release == null) throw new IllegalArgumentException("release == null"); boolean added = this.releasesIds.add(release.getId()); if (added) updateLastModified(); if (added) fireModified("releases+=" + release); return added; }
public final boolean removeRelease(scrum.server.release.Release release) { if (release == null) throw new IllegalArgumentException("release == null"); if (this.releasesIds == null) return false; boolean removed = this.releasesIds.remove(release.getId()); if (removed) updateLastModified(); if (removed) fireModified("releases-=" + release); return removed; }
public final boolean addReleases(Collection<scrum.server.release.Release> releases) { if (releases == null) throw new IllegalArgumentException("releases == null"); boolean added = false; for (scrum.server.release.Release release : releases) { added = added | this.releasesIds.add(release.getId()); } return added; }
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); }
public final boolean containsRelease(scrum.server.release.Release release) { if (release == null) return false; return this.releasesIds.contains(release.getId()); }