Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 public final boolean containsAuthor(scrum.server.admin.User author) {
   if (author == null) return false;
   return this.authorsIds.contains(author.getId());
 }