Exemple #1
0
 public final boolean addAuthors(Collection<scrum.server.admin.User> authors) {
   if (authors == null) throw new IllegalArgumentException("authors == null");
   boolean added = false;
   for (scrum.server.admin.User author : authors) {
     added = added | this.authorsIds.add(author.getId());
   }
   return added;
 }
Exemple #2
0
 public final boolean addAuthor(scrum.server.admin.User author) {
   if (author == null) throw new IllegalArgumentException("author == null");
   boolean added = this.authorsIds.add(author.getId());
   if (added) updateLastModified();
   if (added) fireModified("authors+=" + author);
   return added;
 }
Exemple #3
0
 public final boolean removeAuthor(scrum.server.admin.User author) {
   if (author == null) throw new IllegalArgumentException("author == null");
   if (this.authorsIds == null) return false;
   boolean removed = this.authorsIds.remove(author.getId());
   if (removed) updateLastModified();
   if (removed) fireModified("authors-=" + author);
   return removed;
 }
Exemple #4
0
 public final boolean containsAuthor(scrum.server.admin.User author) {
   if (author == null) return false;
   return this.authorsIds.contains(author.getId());
 }