Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 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;
 }
Beispiel #4
0
 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);
 }
Beispiel #5
0
 public final boolean containsRelease(scrum.server.release.Release release) {
   if (release == null) return false;
   return this.releasesIds.contains(release.getId());
 }